I have a working setup with OpenLDAP (authentication and NFS mount options), NFS server, AutoFS (to mount the NFS homedir) and required PAM plugins.
Everything works fine except the mkhomedir PAM plugin, which does not work properly since the home directory is not being automatically created at the first login.
Here is the error message:
Aug 26 11:21:55 SERVER1 sshd[3981]: pam_mkhomedir(sshd:session): unable to create directory /home/test2: No such file or directory
And nothing on the NFS/LDAP server.
My /etc/pam.d/common-session
file:
session required pam_unix.so
session required pam_limits.so
session optional pam_ldap.so
session required pam_mkhomedir.so skel=/etc/skel umask=0022
My /etc/auto.master
file:
/home ldap://10.0.0.2/ou=export,dc=XXXX,dc=local --timeout=5
Both files are on the client side.
Any ideas?
Regards,