OpenLDAP Server

apt-get install slapd ldap-utils
dpkg-reconfigure slapd

Now it's time to populate LDAP with some data. Use a migration script if you have a lot of Unix accounts somewhere. A simple example would be:

dn: uid=USERNAME,ou=People,dc=example,dc=com
uid: USERNAME
sn: LAST
givenName: FIRST
cn: FIRST LAST
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
userPassword: {crypt}1R14waNZxBjGS
shadowLastChange: 12345
loginShell: /bin/bash
uidNumber: 12345
gidNumber: 1234
homeDirectory: /home/USERNAME
gecos: FIRST LAST
mail: USERNAME@eng.fsu.edu
apt-get install libnss-ldap libpam-foreground
auth-client-config -t nss -p lac_ldap
pam-auth-update
dpkg-reconfigure libnss-ldap