LDAP Directory Creation and Synchronization

Hi,

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

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
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
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

795 views 2 19
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