[python-ldap] LDAP Sync (RFC 4533) support

Russell Jackson raj at csub.edu
Thu Jul 28 01:16:18 CEST 2011


On Wed 27 Jul 2011 02:50:25 PM PDT, Chris Mikkelson wrote:
> The attached patch against python-ldap 2.4.3 adds a new
> sub-module 'ldap.syncrepl' which implements an RFC 4533
> replication client. It also requires the patch to
> Modules/message.c Michael just committed.
> 
> Since the sync replication protocol is moderately
> complicated, the primary API exposed by this module is a
> base class which inherits from LDAPObject and adds a few
> syncrepl-specific methods:
> 
> 	syncrepl_search - wrapper around search_ext which
> 					  creates and adds the SyncRequest control
> 
> 	syncrepl_poll - processes the responses to the syncrepl_search
> 					operation, and calls various handler methods.
> 
> A subclass my provide handler methods for:
> 
> 	* storing and retrieving the sync cookie (syncrepl_set_cookie
> 	and syncrepl_get_cookie)
> 
> 	* adding or modifying entries (syncrepl_entry)
> 
> 	* deleting entries (syncrepl_delete)
> 
> 	* handling presentation operations (syncrepl_present)
> 
> The API works well enough for my purposes, but I'd
> appreciate feedback and comments on it.
> 

Awesome. Now I can get rid of my auditlog trigger contraption

-- 
Russell A Jackson <raj at csub.edu>
Network Analyst
California State University, Bakersfield


More information about the python-ldap mailing list