JIRA 4.0 : Installing a LDAP server on Debian Linux for use with JIRA
This page last changed on Aug 11, 2009 by alui.
This page contains an example of how to install LDAP on Linux. It's assumed that you are working towards LDAP authentication in JIRA or Confluence. Install LDAPOn Debian, an LDAP server can be installed with: apt-get install slapd ldap-utils Entering the following details when prompted (customize for your organization):
At this point, you might as well install a graphical LDAP browser, like 'gq'. Connecting anonymously, you'll see there is one entry, cn=admin,dc=atlassian,dc=com, created. Create a schemaRather than try to devise my own LDAP schema, I used the 'migrationtools' package to create a schema, and import system users from /etc/passwd: apt-get install migrationtools
@@ -68,10 +68,10 @@
teacup:/usr/share/migrationtools# ./migrate_all_online.sh Importing into dc=atlassian,dc=com... Creating naming context entries... adding new entry "ou=Rpc,dc=atlassian,dc=com" adding new entry "ou=Services,dc=atlassian,dc=com" adding new entry "nisMapName=netgroup.byuser,dc=atlassian,dc=com" adding new entry "ou=Mounts,dc=atlassian,dc=com" adding new entry "ou=Networks,dc=atlassian,dc=com" adding new entry "ou=People,dc=atlassian,dc=com" adding new entry "ou=Group,dc=atlassian,dc=com" adding new entry "ou=Netgroup,dc=atlassian,dc=com" adding new entry "ou=Protocols,dc=atlassian,dc=com" adding new entry "ou=Aliases,dc=atlassian,dc=com" adding new entry "nisMapName=netgroup.byhost,dc=atlassian,dc=com" adding new entry "cn=postmaster,ou=Aliases,dc=atlassian,dc=com" /usr/bin/ldapadd: returned non-zero exit status At this point, you should be able to browse the updated schema in a LDAP browser: Add usersStill in the migrationtools directory, run: teacup:/usr/share/migrationtools# ./migrate_passwd.pl /etc/passwd | ldapadd -x -D "cn=admin,dc=atlassian,dc=com" -W adding new entry "uid=jturner,ou=People,dc=atlassian,dc=com" adding new entry "uid=anonymous,ou=People,dc=atlassian,dc=com" adding new entry "uid=devuser,ou=People,dc=atlassian,dc=com" adding new entry "uid=jefft,ou=People,dc=atlassian,dc=com" This creates users, but doesn't set passwords. We must do this manually: teacup:/usr/share/migrationtools# ldappasswd -x -v -S -W -D "cn=admin,dc=atlassian,dc=com" "uid=jturner,ou=People,dc=atlassian,dc=com" You should now be able to connect anonymously, or as an authenticated user: |
![]() |
Document generated by Confluence on Oct 06, 2009 00:26 |