Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Authentication with PHP API Client


#1

Hi,

i’m using the PHP API client from https://github.com/gurock/testrail-api/tree/master/php. Our testrail installation 4.2 is configured with our LDAP. When i try to authenticate with a user and a generated API key, i’am getting the following:

‘TestRail API returned HTTP 401 (“External auth: Could not validate LDAP user, please check user name and password.”)’

Is there maybe currently an issue with user generated API keys and LDAP?

Thanks for help!
Philipp


Testrail External Auth (LDAP) + API fails
#2

Hi Philipp,

Thanks for the feedback. The problem is likely that you tried to use your LDAP/AD username + API key. You would need to use your email address + API key instead though. Could you try this?


#3

Thanks! That did the trick.