Monday, January 9, 2012

LDAP Services with OpenDJ on Ubuntu 10.04 LTS

OpenDJ Directory Server

We use the excellent OpenDJ directory server for LDAP services.

The Blackbox OpenDJ package configures an LDAP server for Ubuntu 10.04 LTS. Combined with an ldap client package, you'll be able to authenticate all of your services (Linux, Windows, Macintosh and web applications) against a central LDAP directory.

The source for this package is available here.

Begin with

$ sudo apt-get install bbopendj

You'll be asked a series of questions about your configuration:

ldap server port { 389 }: 
ldap admin port { 4444 }: 
ldap machine ip address { 172.16.50.254 }: 
ldap secure port { 636 }: 
base distinguised name { dc=lab,dc=lan }: 
ldap server uri { ldap://172.16.50.254:389 }: 
admin password { XXXXXX }: 
admin user name (RDN--do not include basedn) { cn=djadmin }: 
fully qualified domain { lab.lan }: 

You can stick with the defaults. After a brief pause (ca. 45 sec) your OpenDJ instances will be ready. To confirm, run the following:

$ ldapsearch -x

You should get a multipage dump of the contents of your directory:

# search result
search: 2
result: 0 Success

# numResponses: 16
# numEntries: 15

You now have a working LDAP server. You can restart the service with

$ sudo /etc/init.d/bbopendj restart


No comments: