svn commit: samba r5175 - in trunk/source: include lib libads passdb rpc_server

gd at samba.org gd at samba.org
Wed Feb 2 16:14:58 GMT 2005


Author: gd
Date: 2005-02-02 16:14:57 +0000 (Wed, 02 Feb 2005)
New Revision: 5175

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5175

Log:
Add pdb_get_seq_num call to ldapsam.

This derives the sequence number we hand out in SAMR query_dom_info
(level 2 and 8) from the OpenLDAP 2.2 syncrepl contextCSN. This is a
perfect solution for the very common situation where posix and
samba-accounts reside in OpenLDAP as the contextCSN-timestamp is
increased on any change in the DIT. All other LDAP-Servers and
passdb-backend continue to hand out time(NULL) as sequence-number.

Due to it's dependency to OpenLDAP it must be hand-enabled (evaluating
support for syncrepl can't be automated reasonably anyway at the
moment):

        ldapsam:syncrepl_seqnum=True

In addition, when using a syncrepl consumer, one needs to set the local
replica id (rid):

        ldapsam:syncrepl_rid=[integer]

This mechanism might soon be replaced with another mechanism that Jerry
adds while adding sam-replication.

Guenther


Modified:
   trunk/source/include/passdb.h
   trunk/source/lib/smbldap.c
   trunk/source/lib/time.c
   trunk/source/libads/ldap.c
   trunk/source/passdb/pdb_interface.c
   trunk/source/passdb/pdb_ldap.c
   trunk/source/rpc_server/srv_samr_nt.c


Changeset:
Sorry, the patch is too large (432 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5175


More information about the samba-cvs mailing list