I'm unable to get my users to connect via LDAP

I've set up LDAP, but when I create a user it's unable to use their windows login.

5 answers

What error message do you get when you use the Test Settings feature in the user directory config page? It's unlikely anyone could help you unless you add a bit of details. There could be several possible explanations: firewall, network issues, permissions issues.

I'm not familiar with the "Test Settings" features. All the connections are there, it's just when I try to connect in the front end it's doesn't even record the failed attempts.

getting the following error according to Log Analyzer:

 

2014-05-20 10:47:15,673 QuartzScheduler_Worker-2 ERROR ServiceRunner [atlassian.crowd.directory.DbCachingDirectoryPoller] Error occurred while refreshing the cache for directory [ 10200 ].

com.atlassian.crowd.exception.OperationFailedException: java.util.concurrent.ExecutionException: com.atlassian.crowd.exception.OperationFailedException: org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name 'ou=aquaman,dc=avengers,dc=com'

 at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAllUsers(UsnChangedCacheRefresher.java:166)

 at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:78)

 at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:126)

 at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:1014)

 at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:75)

 ...

Caused by: javax.naming.NamingException: [LDAP: error code 1 - 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1]; remaining name 'ou=aquaman,dc=avengers,dc=com'

 at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)

 at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)

 at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)

 at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)

 at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)

 at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)

 at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)

 at javax.naming.directory.InitialDirContext.search(Unknown Source)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at org.springframework.ldap.transaction.compensating.manager.TransactionAwareDirContextInvocationHandler.invoke(TransactionAwareDirContextInvocationHandler.java:92)

 at com.sun.proxy.$Proxy2798.search(Unknown Source)

 at org.springframework.ldap.core.LdapTemplate$3.executeSearch(LdapTemplate.java:231)

 at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:293)

Hey Jorge!

Some questions:

  • When you're logged into JIRA, can you find the user in question via Cog Icon -> User Management
  • When you added the LDAP server, were you able to successfully connect to it?  Are you able to manually perform a sync?
  • Is the LDAP server the first server in your User Directory list?  JIRA checks directories from the top down.
  • Are the groups that the LDAP users belong to have login rights for JIRA?

Check those out and let me know what you find!

Thanks!

  1. Yes
  2. Yes/Yes
  3. Yes
  4. I've tried both with a user that  is part of the JIRA internal directory and newly created users using only the LDAP connection.

Already have. We the same LDAP service for other application and works fine.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

80 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you