CVS update: samba/source/utils

abartlet at samba.org abartlet at samba.org
Sat Jun 14 10:49:02 EST 2003


Date:	Sat Jun 14 00:49:02 2003
Author:	abartlet

Update of /home/cvs/samba/source/utils
In directory dp.samba.org:/tmp/cvs-serv1040/utils

Modified Files:
      Tag: SAMBA_3_0
	net.c net_rpc_samsync.c 
Log Message:
This patch modifies 'net rpc vampire' to add new and existing users to both 
the idmap and the SAM.

The basic idea is this:  Lookup the user with GetPwnam(), and if they
exist then use that uid.  This is what people expect.  If the user does
not exist, try and run the right script.

This is also what people expect from previous Samba 3.0 behaviour, where 
the Get_Pwnam() was at runtime.

If the idmap entry for this SID isn't valid, or isn't the right value,
modify the idmap to account for this mapping.

Also, the same logic is applied to the primary gid - if it has changed,
update the user's primary unix group.

This patch allows users to be added without a mapping - this is fine for
machine accounts, for example.  I've given it a quick test against my
Win2k DC, and I *think* it's sane.

Andrew Bartlett



Revisions:
net.c		1.43.2.22 => 1.43.2.23
	http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/net.c.diff?r1=1.43.2.22&r2=1.43.2.23
net_rpc_samsync.c		1.8.2.19 => 1.8.2.20
	http://www.samba.org/cgi-bin/cvsweb/samba/source/utils/net_rpc_samsync.c.diff?r1=1.8.2.19&r2=1.8.2.20



More information about the samba-cvs mailing list