Ldap authentication and auto-home folder

ktsiv

Dabbler
Joined
May 13, 2020
Messages
11
Hello,
I have an ldap server witch users use for authentication.
How can I create home directory / folder first time user is trying to access the Freenas unit? or batch create all home folders?
Thanks!
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
The homefolder will be automatically created when a user logs in into your FreeNAS with ssh (thanks to pam_mkhomedir).
 

ktsiv

Dabbler
Joined
May 13, 2020
Messages
11
Thank you,
will the user be able to access this folder via nfs automatically?
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
This depends. To have this automagically working some things must be configured properly.
  • The parent folder of the user home must exist on FreeNAS (can be a symlink into a dataset)
  • The dataset must be exported as a nfs share on the FreeNAS
  • The folder must be mounted on the client (can be achieved e.g. via automount)
 
Top