Debian enable ldap users systemwide

From Skytech
Revision as of 10:13, 26 October 2011 by Martin (talk | contribs) (Created page with "= Install ldap = apt-get install libnss-ldap = Configure ldap access = Configure '''/etc/libnss-ldap.conf''' | '''/etc/pam_ldap.conf''' to reflect to correct values to at least:…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install ldap

apt-get install libnss-ldap

Configure ldap access

Configure /etc/libnss-ldap.conf | /etc/pam_ldap.conf to reflect to correct values to at least:

base dc=skarta,dc=net
uri ldap://ldap.skarta.net/

Change /etc/nsswitch.conf from:

[ ... ]
passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
[ ... ]

to

[ ... ]
passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap

hosts:          files dns ldap
[ ... ]

Restart nscd

/etc/init.d/nscd restart

Test LDAP

getent passwd

Should show all your ldap users.