Quote:
Originally Posted by Dennis3
I want a setup that will automatically assign a specific home directory for users that log in through Linux (e.g Dennis(user from AD) logs in through CentOS, his home directory will be a local folder on the Windows machine or some other storage machine).
|
Do you mean you want to automatically mount a remote share and use it as a home directory whenever a user defined in Active Directory logs in to the CentOS system?
If so, you may need to look at PAM. The
pam_mkhomedir module can be used to create a home directory to serve as a mount point if none exists, and
pam_mount can be used to mount a shared directory on another system.
Perhaps
this or
this can point you in the right direction. The second link includes an example Perl script as an alternative to
pam_mount, one that retrieves the home directory definition from AD and mounts the shared directory using the existing Kerberos ticket. Very elegant.