Error when log in with LDAP authentication

Hello al.

I've marked [url=https://answers.atlassian.com/questions/90897/solved-ldap-internal-authentication]this question[/url] solved but after migration of users from Internal Jira Directory to Internal with LDAP authentication User Directory, no LDAP user can log in.

Maybe I've changed something somewhere in configuration but I can't find where is the mistake.

Error encountered by the user :

Sorry, an error occurred trying to log you in - please try again.

Error found in catalina.out :

2012-10-15 08:54:14,284 TP-Processor1 ERROR anonymous 534x141x1 1vn84ba [My PC IP address] /rest/gadget/1.0/login [crowd.manager.application.ApplicationServiceGeneric] Directory 'LDAP Enfa' is not functional during authentication of '[my username]'. Skipped.
2012-10-15 08:54:14,284 TP-Processor1 ERROR anonymous 534x141x1 1vn84ba 172.26.3.20 /rest/gadget/1.0/login [jira.security.login.JiraSeraphAuthenticator] Error occurred while trying to authenticate user '[my username]'.

...

Caused by: org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'ou=[users group in LDAP],dc=[domain name],dc=local'

I've searched a lot on the Internet but can't find, or understand, a good solution to my problem.

Configuration of the Internal with LDAP authentication User Directory, called "LDAP Enfa" :

Directory Type : Open LDAP

Hostname : [LDAP server name].[domain].fr

Port : 389

Username : uid=[username for connection to LDAP server],ou=[users group in LDAP],dc=[domain name],dc=local

Password = [password for Username]

Copy User on Login : selected

Default Group Membership : GrpUtilisateurs,GrpEnfa <= these are internal Jira groups, no LDAP groups

Base DN : ou=[users group in LDAP],dc=[domain name],dc=local

User Name Attribute : uid

Additional User DN : [empty]

User Object Class : posixAccount

User Object Filter: (objectclass=posixAccount)

User Name RDN Attribute: uid

User First Name Attribute: givenName

User Last Name Attribute: sn

User Display Name Attribute: displayName

User Email Attribute: mail

Test settings is OK.

3 answers

1 accepted

This widget could not be displayed.

System Administrators have migrate our LDAP server and the Username for connection to LDAP server from Jira was missing on the nex server !

Problem solved !

Ah, there you go. Glad it works on your end now :)

This widget could not be displayed.

Hi Philippe,

The mentioned stack trace indicate that Confluence was not able to search the users on LDAP server using the current configuration. If you are sure that the above configuration is correct, you might want to double check if follow referral option is ticked.

For troubleshooting purposes, you might want to use Apache Studio to troubleshoot your issue. Use Confluence configuration to access your LDAP server using Apache Studio and see if you could search the user fine.

Also, you could use the following documentations for referral:

https://confluence.atlassian.com/display/CONFKB/LDAP+Error+Code+32
https://confluence.atlassian.com/display/JIRAKB/LDAP+Error+Code+32

Hope it helps.

Cheers,
Septa Cahyadiputra

This widget could not be displayed.

I ran in to a similar issue. I was able to fix it by adding the ldap .pem in to the java keystore for Jira.

Here are the instructions. Also do not for get to set your JAVA_HOME

https://confluence.atlassian.com/display/JIRA052/Connecting+to+SSL+services#ConnectingtoSSLservices-Importthepublickey.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

78 views 1 0
Join discussion

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