Package: ldaptools
ldaptoolsHelper modules to work with LDAP directories and test LDAP tools against OpenLDAP.ldaptools.ldif_utils: simple parser for LDIF filesldaptools.ldap_source: generate a stream of LDAP entries from an LDAP URLldaptools.synchronize: synchronization class to synchronize a source of LDAP records with a targetldaptools.paged: an LDAPObject implementating paged search requestsldaptools.ldapsync: a command line client to the Synchronize classldaptools.slapd: launch a standalone slapd server, manipulate its configuration, it helps
in writing tests against OpenLDAP.ldapsyncusage: ldapsync [-h] –object-class-pivot OBJECT_CLASS_PIVOT[–attributes-file ATTRIBUTES_FILE] [–attributes ATTRIBUTES]
–source-uri SOURCE_URI –source-base-dn SOURCE_BASE_DN
[–source-bind-dn SOURCE_BIND_DN]
[–source-bind-password SOURCE_BIND_PASSWORD] –target-uri
TARGET_URI –target-base-dn TARGET_BASE_DN
[–target-bind-dn TARGET_BIND_DN]
[–target-bind-password TARGET_BIND_PASSWORD] [–fake]
[–verbose]Synchronize an LDIF file or a source LDAP directory to another directory Base
DN of the source is remapped to another DN in the target directoryoptional arguments:-h,--helpshow this help message and exit--object-class-pivotOBJECT_CLASS_PIVOTan objectClass and an attribute name which is the
unique identifier for this class--attributes-fileATTRIBUTES_FILEa file containing the list of attributes to
synchronize--attributesATTRIBUTESa list of attribute names separated by spaces--source-uriSOURCE_URIURL of an LDAP directory (ldapi://, ldap:// or
ldaps://) or path of and LDIF file--source-base-dnSOURCE_BASE_DNbase DN of the source--source-bind-dnSOURCE_BIND_DNbind DN for a source LDAP directory--source-bind-passwordSOURCE_BIND_PASSWORDbind password for a source LDAP directory--target-uriTARGET_URIURL of the target LDAP directory--target-base-dnTARGET_BASE_DNbase DN of the target LDAP directory--target-bind-dnTARGET_BIND_DNbind DN for a target LDAP directory--target-bind-passwordTARGET_BIND_PASSWORDbind password for a target LDAP directory--fakecompute synchronization actions but do not apply--verboseprint all actions to stdoutExempleSynchronize tree of organizational units and people between an LDIF file and a local OpenLDAP directory:ldapsync --attributes 'uid cn givenName sn dc ou o description mail member' \
         --object-class-pivot 'inetOrgPerson uid' \
         --object-class-pivot 'organizationalUnit ou' \
         --object-class-pivot 'dcobject dc' \
         --source-uri dump.ldif \
         --source-base-dn dc=myorganization,dc=fr \
         --target-uri ldapi:// \
         --target-base-dn o=myorganization,dc=otherorganization,dc=fr \
         --verboseSynchronize tree of organizational units and people between two LDAP directories:ldapsync --attributes 'uid cn givenName sn dc ou o description mail member' \
         --object-class-pivot 'inetOrgPerson uid' \
         --object-class-pivot 'organizationalUnit ou' \
         --object-class-pivot 'dcobject dc' \
         --source-uri ldap://ldap.myorganization.fr \
         --source-bind-dn uid=admin,ou=people,dc=myorganization,dc=fr
         --source-bind-password password
         --source-base-dn dc=myorganization,dc=fr \
         --target-uri ldap://ldap.otherorganization.fr
         --target-bind-dn uid=admin,o=myorganization,dc=otherorganization,dc=fr
         --target-bind-password password
         --target-base-dn o=myorganization,dc=otherorganization,dc=fr \
         --verboseChangelog0.21fix warnings about file descriptor leaks and python-ldap3 bytes-mode0.18fix conversion of text to bytes in LDIF parser0.17Python3 compatibilityfix test certificates0.16add test certificates0.15add support testing with TLSfilter objectclass from sources, keep only known ones0.14fix default ACL when creating slapd serverfix grammar of LDIF configurations0.13in ldapsync, do not delete records not pertaining to one of the objectclass listed in
–object-class-pivot0.12wait for complete stop of the daemon when stopping0.11remove debugging statements0.10fix leak of standard file descriptors from slapd0.9paged: fix paged search when the response contains no paged result extended controlimprovements to tox script0.8improve display of actions and errorslowercase attributes in dn of LDIF sourcesfix bug when removing attributes from source outside the permitted attributesallow specifying case insensitive attributes for compare0.7ldapsync: add a –source-filter parameter0.6add empty attribute to new entry if attribute is present in target entryremove attributes outside of the specified attributes from source entriesreturn an empty list of target base DN does no existconvert attribute names to istrfix typo0.5setup.py: add long description0.4remove debugging print0.3setup.py: add dependency on setuptools0.2improvements to tox script0.1initial release