My current situation is that I can successfully authenticate using ldap
and pam
, I also succeeded to use pam_mkdir
to autocreate home directories in the /home
filesystem.
What now I'm trying to achieve is to autocreate the same home directories but on an automounted nfs export. The automount works correctly and the homes
root is correctly reachable. The aim is to avoid to create homes on the nfs
manually.
I spent last two days lurking around, but I did not succeed to merge all the informations together.
The questions I still have:
- could
pam_mkdir
create directories over nfs? - if the mounted
homes
path is not standard (e.g. homes are mounted to/mnt/nfs/homes
), howpam_mkdir
can know that? Using ahomeDirectory
LDAP attribute? - Should I instead trigger the creation on the LDAP server after user creation?
- Am I overthinking an actually simpler problem?