LDAP configuration error for API call fails for module "Special Users"
I am trying to call the api.. It fails ... I run a powershell command like this: I even tried to put plain password...
[2017-06-22 07:09:42,311] INFO [.50.30.24; http-nio-80-exec-30] - Login for username "usr" failed, see details below
[2017-06-22 07:09:42,311] INFO [.50.30.24; http-nio-80-exec-30] - Login for user "usr" failed for module "Special Users" (jetbrains.buildServer.serverSide.impl.auth.SpecialUsersLoginModule): jetbrains.buildServer.serverSide.auth.TeamCityFailedLoginException: Not a special user or login as special user is not allowed
[2017-06-22 07:09:42,311] INFO [.50.30.24; http-nio-80-exec-30] - Login for user "usr" failed for module "LDAP" (jetbrains.buildServer.serverSide.impl.auth.LDAPLoginModule): jetbrains.buildServer.serverSide.ldap.LdapError: LDAP search operation returned an error while searching for user entry by 'usr' to perform bind. While initializing LDAP connection. Inaccessible or wrong server specified in the LDAP configuration? Check 'java.naming.provider.url' property (current value: 'ldap://ourdomain.co.uk:389/DC=ourdomain,DC=co,DC=uk'). Original error: org.springframework.ldap.CommunicationException: ourdomain.co.uk:389; nested exception is javax.naming.CommunicationException: ourdomain.co.uk:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
[2017-06-22 07:09:42,311] WARN [.50.30.24; http-nio-80-exec-30] - Error occurred during HTTP authentication while processing request GET '/httpAuth/app/rest/server', from client 10.11.12.13:50032, no associated user: jetbrains.buildServer.serverSide.auth.AuthenticationFailedException: LDAP search operation returned an error while searching for user entry by 'usr' to perform bind. While initializing LDAP connection. Inaccessible or wrong server specified in the LDAP configuration? Check 'java.naming.provider.url' property (current value: 'ldap://ourdomain.co.uk:389/DC=ourdomain,DC=co,DC=uk'). Original error: org.springframework.ldap.CommunicationException: ourdomain.co.uk:389; nested exception is javax.naming.CommunicationException: ourdomain.co.uk:389 [Root exception is java.net.ConnectException: Connection timed out: connect] (enable debug to see stacktrace)
[2017-06-22 07:10:45,721] INFO [.50.30.24; http-nio-80-exec-40] - Login for username "usr" failed, see details below
Any guidance will be appreciated...
Thanks,
Ebru
Please sign in to leave a comment.
Hi Ebru,
The "Special Users" is not LDAP related, but it means that TeamCity has tried both to log in that user from the Special Users module (first message) or from the LDAP module (second message), and that it hasn't managed to find the user in any of those. Make sure that you have a user named "usr" available and that LDAP is properly configured: https://confluence.jetbrains.com/display/TCD10/LDAP+Integration