CVS update: samba/source/nsswitch
Tim Potter
tpot at samba.org
Thu Mar 7 11:28:20 EST 2002
Date: Thu Mar 7 11:28:19 2002
Author: tpot
Update of /data/cvs/samba/source/nsswitch
In directory va:/tmp/cvs-serv11955/nsswitch
Modified Files:
Tag: SAMBA_2_2
winbindd_cache.c winbindd_util.c
Log Message:
The name/sid cache code was using the name passed as input to lookupnames
as a key in winbindd_cache.tdb. This meant that a lookupsid of that user's
sid would return the name specified by the user in the previous lookupname
which can result in weird capitalisation issues.
The fix is to do a lookupsid immediately after the lookupname and store the
name returned in the cache file. We also store the username in the
name/sid cache lowercased so as to avoid multiple entries for different
capitalisations of names.
Test case:
rpcclient jonquille -U% -c 'lookupnames npsd-test2\administraTOR'
npsd-test2\administraTOR S-1-5-21-1067277791-1719175008-3000797951-500 (1)
rpcclient jonquille -U% -c 'lookupsids S-1-5-21-1067277791-1719175008-3000797951-500'
S-1-5-21-1067277791-1719175008-3000797951-500 [NPSD-TEST2]\[Administrator] (1)
Revisions:
winbindd_cache.c 1.5.4.7 => 1.5.4.8
http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_cache.c?r1=1.5.4.7&r2=1.5.4.8
winbindd_util.c 1.7.4.20 => 1.7.4.21
http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_util.c?r1=1.7.4.20&r2=1.7.4.21
More information about the samba-cvs
mailing list