Wednesday, September 23, 2009

Creating a user home directory when you use LDAP Authentication

Adding this line below into /etc/pam.d/common-session :

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

% grep -v '^#' /etc/pam.d/common-session
session [default=1] pam_permit.so
session requisite pam_deny.so
session required pam_permit.so
session required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/
session optional pam_ldap.so
%

No comments: