The
nis
homedir and
homedir
map options are for Samba servers on network sites where Unix home directories are provided using NFS, the automounter, and NIS (Yellow Pages).
The
nis
homedir option indicates that the home directory server for the user needs to be looked up in NIS. The
homedir
map option tells Samba what NIS map to look in for the server that has the user's home directory. The server needs to be a Samba server, so the client can do an SMB connect to it, and the other Samba servers need to have NIS installed so they can do the lookup.
For example, if user
joe asks for a share called
[joe], and the
nis
homedir option is set to
yes, Samba will look in the file specified by
homedir
map for a home directory for
joe. If it finds one, Samba will return the associated machine name to the client. The client will then try to connect to
that machine and get the share from there. Enabling NIS lookups looks like the following:
[globals]
nis homedir = yes
homedir map = amd.map