[Samba] Configure winbind to keep domain prefix

Rowland Penny rowlandpenny at googlemail.com
Thu Aug 7 05:40:10 MDT 2014


On 07/08/14 12:33, Lars Hanke wrote:
> Any ideas how to custom format the usernames mapped by winbind?
>
> Background:
>
> I successfully set up an AD DC and several members, including a file 
> server, which can serve both samba and NFS4. So far so good. However 
> my prime goal is to use my Synology NAS and share data between Linux 
> and Windows.
>
> The NAS joined the AD and lists its users and groups as AD\uid and 
> AD\gid. The standard setup of the linux machines drops the AD\ prefix. 
> This is handy, but breaks id mapping for NFSv4.
>
> I could not find an option to make NFS prefix all usernames, which 
> would be my first choice. But if I could make winbind to prefix the 
> usernames as the NAS does, it would be a second best solution.
>
> Searching man smb.conf did not enlight me. I think I don't have the 
> proper search terms for the man page or the web.
>
>
> Regards,
>  - lars.
Hi, do you have this line in smb.conf:

winbind use default domain = yes

If so remove it or comment it out.

Rowland



More information about the samba mailing list