CVS update: samba/source/rpc_server

abartlet at samba.org abartlet at samba.org
Wed Jan 2 18:41:53 EST 2002


Date:	Tue Jan  1 23:41:53 2002
Author:	abartlet

Update of /data/cvs/samba/source/rpc_server
In directory va:/tmp/cvs-serv21621/rpc_server

Modified Files:
	srv_samr_nt.c 
Log Message:
Actually enforce the passdb API.

Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.

This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live.  This caught a pile of examples, and these have
beeen fixed.  

The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.

I've also added some debugs to the pdb get and set, they can be removed if
requested.

I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.  

The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such 
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.

Finally, any and all testing is always appriciated - but the basics seem to
work.

Andrew Bartlett



Revisions:
srv_samr_nt.c		1.74 => 1.75
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_samr_nt.c?r1=1.74&r2=1.75




More information about the samba-cvs mailing list