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.
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
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. >Hi You may have: winbind use default domain = yes Comment it, issue net cache flush and restart winbind. HTH, Steve> > Regards, > - lars.