[Samba] Configure winbind to keep domain prefix

steve steve at steve-ss.com
Thu Aug 7 09:43:07 MDT 2014

On Thu, 2014-08-07 at 13:33 +0200, 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.
You may have:
winbind use default domain = yes
Comment it, issue net cache flush and restart winbind.

> Regards,
>   - lars.

More information about the samba mailing list