Notes on LDAP auth on Ubuntu by Dave Koelmeyer

Login screen on Ubuntu 10.10 hooked up to LDAP

Today I tried Dave Koelmeyer’s helpful guide to setting up LDAP authentication from an Ubuntu guest VM to OpenDJ.

To put it mildly, I am still learning about VirtualBox networking. Found out that inside an Ubuntu 10.10 desktop guest I installed to learn about OpenAM, the IP for the host is YMMV.

I did a WebStart install of OpenDJ from last night’s build. To check that I could get to OpenDJ on the host from the guest, I got the ldap-utils package (sudo apt-get install ldap-utils), and searched for a test entry I had created (uid=mark) from inside the guest.

$ ldapsearch -x -h -p 1389 -b dc=example,dc=com uid=mark
# extended LDIF
# LDAPv3
# base  with scope subtree
# filter: uid=mark
# requesting: ALL

# mark, People,
dn: uid=mark,ou=People,dc=example,dc=com
objectclass: person
... yada yada yada ...

Thanks to Dave’s clear explanation, upon restart It Just Worked™ 🙂

After that, I added Joe Bloggs and Babs Jensen under ou=People,dc=example,dc=com by using the OpenDJ Control Panel. Hence the screenshot at the top of this entry.