[PATCH] bits of samba as a BDC

Raphael Berghmans raphael at arafox.com
Mon Dec 1 19:55:37 GMT 2003


I've done some tests with this patch and passdb backend in a tdb file
and also in smbpasswd :

add user : works good
add group : works good
change passwd : works good
change user description : works good

Tomorrow I will try with LDAP.

Which user is use to made the query to the sam. If it's Administrator,
what's happend if his passwd is changed on PDC ?

See you,

PS: Thank you for this patch !


On Fri, 2003-11-28 at 16:49, Richard Renard wrote:
> Hello all,
> Here is a patch, which is an improved version of the patch that i posted
> 1 month ago, which enable samba to work as a BDC of a NT-4.0 PDC.
> this patch is against the SAMBA_3_0 branch (formerly CVS 3.0.1pre4)
> what it does:
> - when nmbd receives an "announce change to uas or sam" packet it parses
> it and put some infos in a struct which is passed to smbd by the
> internal message subsystem.
> 	fields are: pdcname, low_serial, and the 3 modified_counts
> - when smbd receives the message, it forks and start processing the
> infos it just received in order to create the right
> DatabaseDeltasRequest for the right database.
> - it parses the deltas and gets all users and groups informations (only
> adding those not delete), and also all the account policy in the
> the patch:
> - adds a smbd/deltas.c which creates a modcount.tdb, and creates the
> requests in order to get the deltas
> - adds a rpc_client/cli_netlogon_util.c which contains the code from
> utils/net_rpc_samsync.c ( code is moved from net_rpc_samsync into
> cli_netlogon_util )
> - modify some stuff in rpc_netlogon.h
> Waiting for your comments.
> Richard.
Raphael Berghmans <raphael at arafox.com>

More information about the samba-technical mailing list