[Samba] Syncing NIS uid's with Winbind

Ken Cross
Fri, 22 Feb 2002 04:57:04 -0000

We have a situation where a lot of users have unix accounts on NIS
servers and windows accounts on domain controllers.  The same username
is used in both accounts.

We want them to be able to access files from unix or windows clients and
have the same uid/gid for protection purposes.

Is there any way to synchronize this?  Ideally, when a windows user
connects (with an encrypted password), winbind would:

1.  Authenticate with the PDC

2.  Check to see if there's an existing user account (in /etc/passwd or
NIS) and use that uid rather than assigning one from the "winbind uid"
range.  That uid would then be saved in winbindd_idmap.tdb.

Possible?

Thanks,
Ken