LDAP Directory Creation and Synchronization


I tried to create an LDAP User Directory in JIRA 5.2. I provided the following details:

Directory Type: Microsoft Active Directory

Port: 389

Base DN: ou=Users, dc=example, dc=com

LDAP Permissions: Read/Write

User Object Filter is (&(objectCategory=Person)(sAMAccountName=*))

When i give Save and Test, i got

Test basic connection : Succeeded

I gave authentication details and gave Test Settings. I got the following error.

Test Retrieve User: Failed

org.springframework.transaction.CannotCreateTransactionException: Could not create DirContext instance for transaction; nested exception is org.springframework.ldap.AuthenticationException: [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 32 - No Such Object]
For more information regarding LDAP error codes see Troubleshooting LDAP Error Codes.

How do i resolve this.

Thanks in advance.

1 answer

1 accepted

0 votes
Accepted answer

Hi Anandhi,

Instead of using ou=Users, dc=example, dc=com, try using just dc=example, dc=com as Base DN.

The ou=Users must be set on the Group Filter like (&(&(objectCategory=Person)(sAMAccountName=*))(ou=Users)).

Hope it helps

Hi Bruna,

I tried what you said. I got the following exception:

org.springframework.ldap.NoPermissionException: [LDAP: error code 50 - Search filter not permitted (attributes)]; nested exception is javax.naming.NoPermissionException: [LDAP: error code 50 - Search filter not permitted (attributes)]; remaining name 'dc=example,dc=com'

Can you tell me what to do to solve this???

Im new to all these stuff...:(

I created a new User directory with LDAP Authentication

Directory Type: OpenLDAP

BaseDN: dc=example,dc=com

UserName Attribute: sAMAccountName

I tested the settings and was successful.

I signed-up witha new user-id and password and email address.

But when i login with this username and password, i get the following error in the atlassian-security-logs:

'anandhi' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.

Please help me solve this problem. Thanks in advance...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,351 views 14 19
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