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

Authentication with PHP API Client



i’m using the PHP API client from 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!

Testrail External Auth (LDAP) + API fails

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?


Thanks! That did the trick.