Debian enable ldap users systemwide: Difference between revisions

From Skytech
Jump to navigation Jump to search
(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:…")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Linux]]
= Install ldap =
= Install ldap =
apt-get install libnss-ldap
apt-get install libnss-ldap
Line 43: Line 44:


Should show all your ldap users.
Should show all your ldap users.

= Automatically create homedirs on login from skel =
Include the line below in: '''/etc/pam.d/common-session'''

<pre>
session required pam_mkhomedir.so skel=/etc/skel umask=0022
</pre>

Latest revision as of 09:53, 6 June 2013

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.

Automatically create homedirs on login from skel

Include the line below in: /etc/pam.d/common-session

session     required      pam_mkhomedir.so skel=/etc/skel umask=0022