[Samba] samba4 and sssd and user mapping

Paul R. Ganci ganci at nurdog.com
Mon Jan 27 19:41:16 MST 2014

On 01/27/2014 09:13 AM, Rowland Penny wrote:
> I believe that here you are referring to winbind on the samba 4 AD 
> server, this is built into the samba daemon and does not work like the 
> separate winbind daemon. The main problem is the one that you have 
> mentioned but it is actually worse than you think, you cannot use 
> place holders in the templates i.e. if you try to use /home/%u in the 
> homedirectory template, all your users will get the literal home 
> directory of /home/%u.
This statement is not strictly true. On the AD server you can use 
%WORKGROUP% and %ACCOUNTNAME%. Hence /home/%ACCOUNTNAME% will work in a 
homedirectory template. I have my own AD server setup using this 
smb.conf directive:

template homedir = /home/%ACCOUNTNAME%

which works just fine.

Paul (ganci at nurdog.com)

More information about the samba mailing list