|
There are some great instructions on the general process of installing LDAP on Linux at http://www.metaconsultancy.com/whitepapers/ldap.htm This page just documents how it worked for me. I assume 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:
|
Labels
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5 Australia License.





Add Comment