How to use OpenDJ with JIRA
Purpose
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
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
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
Last modified on Nov 2, 2018
Powered by Confluence and Scroll Viewport.