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

This widget could not be displayed.

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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

107 views 1 2
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