How to use OpenDJ with JIRA
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Some users prefer using OpenDJ as their directory server. However, this LDAP server is not officially supported by JIRA as mentioned in the Supported platforms.
This guide will help JIRA administrators configure the user directory specifically for the OpenDJ directory server.
LDIF
Examples of standard LDIF from OpenDJ looks something like this:
User
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
version: 1 dn: uid=abarnes,ou=People,dc=example,dc=com objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: person objectClass: top objectClass: posixAccount cn: Anne-Louise Barnes gidNumber: 1000 homeDirectory: /home/abarnes sn: Barnes uid: abarnes uidNumber: 1119 departmentNumber: 1000 facsimileTelephoneNumber: +1 408 555 4661 givenName: Anne-Louise l: Lysaker mail: abarnes@example.com manager: uid=scarter, ou=People, dc=example,dc=com ou: Payroll ou: People preferredLanguage: no roomNumber: 2290 street: Lysaker Torg 2 telephoneNumber: +1 408 555 9445 userPassword:: e1NTSEF9azBteVcxaXhoR3NxVk5GOUpOdlUrcTFqL3pkZ2JYVDYzMHpHbEE9P Q==
Group
1 2 3 4 5 6 7 8
version: 1 dn: cn=jira-users,ou=Groups,dc=example,dc=com objectClass: groupOfUniqueNames cn: jira-users ou: test uniqueMember: uid=abarnes,ou=People,dc=example,dc=com uniqueMember: uid=abergin,ou=People,dc=example,dc=com
Solution
Use the Implementation class: com.atlassian.crowd.directory.GenericLDAP:
Go to the User Directory page
Click Add Directory > Select LDAP
Fill in the settings as below:
Name - Optional
Directory Type - Generic Directory Server
Port - 1389
Username - <username>
Password - <password>
Every other configuration can be left as default except the User Schema Setting:
User Object Class - inetorgperson
User Object Filter - (objectclass=inetorgperson)
User Name Attribute - uid
User Name RDN Attribute - uid
User Lirst Name Attribute - givenName
User Last Name Attribute - sn
User Display Name Attribute - displayName
User Email Attribute - mail
User Password Attribute - userPassword
User Password Encruption - <any preferred option>
Use Unique ID Attribute - entryUUID
Save and Test
ℹ️ It is imporatant to take note that :
Implementation class: com.atlassian.crowd.directory.GenericLDAP must be used.
User Name Attribute must be changed from CN to uid
User Name RDN Attribute must be changed from CN to uid
Was this helpful?