How to use Active Directory's homeDirectory attribute for Samba?
Posted
by
Shiroi98
on Server Fault
See other posts from Server Fault
or by Shiroi98
Published on 2012-12-15T01:27:59Z
Indexed on
2012/12/15
5:08 UTC
Read the original article
Hit count: 412
I currently have a Samba share setup where I would like to share Unix folders with Windows users, with Active directory as the backend. I see that there is an attribute called homeDirectory in Active Directory, but no matter what I set, Samba refuses to use that attribute (verified by doing "getent passwd")
Additionally, I tried the
template homedir = /home/%u
in /etc/samba/smb.conf, but the problem is, some users have /home_abc/[username] while others have /home_def/[username]. That sets ALL users to /home/[username]. If I don't use the template homedir, by default it is set to /home/[DOMAIN]/[username].
Bottomline: How can I use Active directory's homeDirectory attribute to set users Home Directory in Unix/Samba?
Any help greatly appreciated! :)
© Server Fault or respective owner