I recently asked a question here about getting Ubuntu to authenticate via LDAP against an OS X server. The good news is, I got it to work and the clients are now authenticating, but my problem now is that pam_mkhomdir.so doesn't seem to be doing it's job. Here's my common-session file:
session sufficient pam_ldap.so 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 session optional pam_ck_connector.so nox11 session optional pam_foreground.so
Because of this, every time an LDAP user tries to login, gdm tells them that their home directory is set to /Network/[Servername]/User/[username]
. Based on this error, I'm guessing that pam_mkhomedir.so is being overridden by the LDAP provided home path, so my question is: is there a way to have the LDAP user's home directory created locally when they log in instead of it trying to use /Volumes/[Servername]/...
?
Thanks in advance
Update: Kamil's response seems to have helped make some progress, but instead of gdm reporting the home directory as being set to /Network/etc...
, it's saying it's set to ''
(null). I tried using
nss_map_attribute homeDirectory "/home/$username"
but this gave me the same error. Any ideas?