CVS update: samba/source/rpc_parse

abartlet at samba.org abartlet at samba.org
Sat Oct 12 13:38:07 EST 2002


Date:	Sat Oct 12 03:38:07 2002
Author:	abartlet

Update of /data/cvs/samba/source/rpc_parse
In directory dp.samba.org:/tmp/cvs-serv26815/rpc_parse

Modified Files:
	parse_samr.c 
Log Message:
Nice *big* patch from metze. 

The actual design change is relitivly small however:

It all goes back to jerry's 'BOOL store', added to many of the elements in a
SAM_ACCOUNT.  This ensured that smb.conf defaults did not get 'fixed' into
ldap.  This was a great win for admins, and this patch follows in the same way.

This patch extends the concept - we don't store values back into LDAP unless 
they have been changed.  So if we read a value, but don't update it, or we
read a value, find it's not there and use a default, we will not update
ldap with that value.  This reduced clutter in our LDAP DB, and makes it
easier to change defaults later on.

Metze's particular problem was that when we 'write back' an unchanged value,
we would clear any muliple values in that feild.  Now he can still have his
mulitivalued 'uid' feild, without Samba changing it for *every* other
operation.  

This also applies to many other attributes, and helps to eliminate a nasty
race condition.  (Time between get and set)

This patch is big, and needs more testing, but metze has tested usrmgr, and
I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly 
flawed ;-).  

The same system will be introduced into the SAM code shortly, but this fixes
bugs that people were coming across in production uses of Samba 3.0/HEAD, hence
it's inclusion here.

Andrew Bartlett



Revisions:
parse_samr.c		1.156 => 1.157
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_parse/parse_samr.c?r1=1.156&r2=1.157



More information about the samba-cvs mailing list