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 10.0.2.2. 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 10.0.2.2 -p 1389 -b dc=example,dc=com uid=mark
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: uid=mark
# requesting: ALL
#

# mark, People, example.com
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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s