tldap.backend.no_transactions¶
This module provides the LDAP functions with transaction support disabled, with a subset of the functions from the real ldap module.
-
class
tldap.backend.no_transactions.
LDAPwrapper
(settings_dict)[source]¶ The LDAP connection class.
-
add
(dn, modlist, onfailure=None)[source]¶ Add a DN to the LDAP database; See ldap module. Doesn’t return a result if transactions enabled.
-
commit
()[source]¶ Attempt to commit all changes to LDAP database. i.e. forget all rollbacks. However stay inside transaction management.
-
delete
(dn, onfailure=None)[source]¶ delete a dn in the ldap database; see ldap module. doesn’t return a result if transactions enabled.
-
leave_transaction_management
()[source]¶ End a transaction. Must not be dirty when doing so. ie. commit() or rollback() must be called if changes made. If dirty, changes will be discarded.
-
modify
(dn, modlist, onfailure=None)[source]¶ Modify a DN in the LDAP database; See ldap module. Doesn’t return a result if transactions enabled.
-
modify_no_rollback
(dn, modlist)[source]¶ Modify a DN in the LDAP database; See ldap module. Doesn’t return a result if transactions enabled.
-
rename
(dn, newrdn, newsuperior=None, onfailure=None)[source]¶ rename a dn in the ldap database; see ldap module. doesn’t return a result if transactions enabled.
-