winbindd sometimes does but other times does not map a SID to an uid/gid.
It also sometimes does not resolve a SID to a name.
# /usr/sbin/winbindd -V
I am using cifs upcall which links to /usr/local/samba/lib/libwbclient.so
Most of the time, it is error 7.
Will attach the winbind log files.
Created attachment 6194 [details]
error when winbind fails to map a SID to an id
[2011/01/12 10:01:29, 5] winbindd/winbindd_sid.c:sid2uid_lookupsid_recv(185)
sid2uid_lookupsid_recv Could not convert get sid type for S-1-5-21-2849063682-2007077719-983662776-1116
Created attachment 6195 [details]
The same SID is mapped to an id
[2011/01/12 10:14:10, 10] winbindd/winbindd_user.c:getpwuid_recv(456)
uid2sid_recv: uid 10001 has sid S-1-5-21-2849063682-2007077719-983662776-1116
[2011/01/12 10:14:10, 10] lib/events.c:event_add_timed(128)
that code has seen a long and exciting history of changes over the years. it's very likely that this is fixed now. but the config for it probably also needs changes. if u still see bugs with 3.6or 4.0 please reopen again or file another. thanks.