CVS update: samba/source/nsswitch

abartlet at samba.org abartlet at samba.org
Sun Jan 20 12:24:58 EST 2002


Date:	Sat Jan 19 17:24:58 2002
Author:	abartlet

Update of /data/cvs/samba/source/nsswitch
In directory va:/tmp/cvs-serv17633/nsswitch

Modified Files:
	wbinfo.c winbindd_ads.c winbindd_group.c winbindd_proto.h 
	winbindd_rpc.c winbindd_sid.c winbindd_user.c winbindd_util.c 
Log Message:
This patch makes the 'winbind use default domain' code interact better with
smbd, and also makes it much cleaner inside winbindd.

It is mostly my code, with a few changes and testing performed by Alexander
Bokovoy <a.bokovoy at sam-solutions.net>.  ab has tested it in security=domain and
security=ads, but more testing is always appricatiated.

The idea is that we no longer cart around a 'domain\user' string, we keep them
seperate until the last moment - when we push that string into a pwent on onto
the socket.

This removes the need to be constantly parsing that string - the domain prefix
is almost always already provided, (only a couple of functions actually changed
arguments in all this).

Some consequential changes to the RPC client code, to stop it concatonating the
two strings (it now passes them both back as params).

I havn't changed the cache code, however the usernames will no longer have a
double domain prefix in the key string.  The actual structures are unchanged
 - but the meaning of 'username' in the 'rid' will have changed.  (The cache is
invalidated at startup, so on-disk formats are not an issue here).

Andrew Bartlett


Revisions:
wbinfo.c		1.25 => 1.26
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/wbinfo.c?r1=1.25&r2=1.26
winbindd_ads.c		1.36 => 1.37
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_ads.c?r1=1.36&r2=1.37
winbindd_group.c		1.46 => 1.47
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_group.c?r1=1.46&r2=1.47
winbindd_proto.h		1.40 => 1.41
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_proto.h?r1=1.40&r2=1.41
winbindd_rpc.c		1.18 => 1.19
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_rpc.c?r1=1.18&r2=1.19
winbindd_sid.c		1.6 => 1.7
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_sid.c?r1=1.6&r2=1.7
winbindd_user.c		1.40 => 1.41
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_user.c?r1=1.40&r2=1.41
winbindd_util.c		1.68 => 1.69
	http://www.samba.org/cgi-bin/cvsweb/samba/source/nsswitch/winbindd_util.c?r1=1.68&r2=1.69




More information about the samba-cvs mailing list