Help with LDAP Login

Hi, we are trying to configure against ldap, we use the following string to connect:

java.naming.provider.url="ldap:// Accounts,OU=CBFM,OU=User Environment,DC=fm,DC=xxxgrp,DC=net"

This returns:

Failed to login user 'davieoa'. Cause: javax.naming.NamingException: Cannot parse url: Environment,DC=fm,DC=xxxgrp,DC=net" [Root exception is Invalid URI: Environment,DC=fm,DC=xxxgrp,DC=net"]

Assuming that was because there are spaces in the name we added the escape characters %20


However this fails to authenticate:

Failed to login user 'davieoa' due to authentication error. Cause: Invalid credentials ([LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece

Please could you help ?


Owen Davies

1 comment
Comment actions Permalink

Hi Owen

It should point to the server, without specific containers, so correct syntax would be


Containers can be limited by separate parameter:

# The user base DN. Users are retrieved only from the LDAP subtree denoted by this DN. # This DN should be "relative" to the root specified by "java.naming.provider.url". # The search will be performed in LDAP subtree denoted by "java.naming.provider.url" and "teamcity.users.base" combined. teamcity.users.base=CN=users


Please sign in to leave a comment.