class EditableLDAPEntry(BaseLDAPEntry): (source)
Known subclasses: ldaptor.inmemory.ReadOnlyInMemoryLDAPEntry
, ldaptor.ldiftree.LDIFTreeEntry
, ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Implements interfaces: ldaptor.interfaces.IEditableLDAPEntry
Undocumented
Method | __delitem__ |
Delete all values of an attribute. |
Method | __setitem__ |
Set values of an attribute. Please use lists. Do not modify the lists in place, that's not supported _yet_. |
Method | commit |
Send all pending changes to the LDAP server. |
Method | delete |
Delete this object from the LDAP server. |
Method | move |
Move the object to a new DN. |
Method | set |
Update the password for the entry with a new password and salt passed as bytes. |
Method | undo |
Forget all pending changes. |
Inherited from BaseLDAPEntry
:
Method | __bool__ |
Undocumented |
Method | __contains__ |
TODO |
Method | __eq__ |
Comparison. Only equality is supported. |
Method | __getitem__ |
Get all values of an attribute. |
Method | __hash__ |
Undocumented |
Method | __init__ |
Initialize the object. |
Method | __iter__ |
Undocumented |
Method | __len__ |
TODO |
Method | __ne__ |
Inequality comparison. See L{__eq__}. |
Method | __nonzero__ |
Always return True |
Method | __repr__ |
Undocumented |
Method | bind |
Try to authenticate with given secret. |
Method | build |
Undocumented |
Method | diff |
Compute differences between this and another LDAP entry. |
Method | get |
Get all values of an attribute. |
Method | get |
Undocumented |
Method | has |
TODO |
Method | has |
Undocumented |
Method | items |
TODO |
Method | keys |
TODO |
Method | to |
Undocumented |
Instance Variable | dn |
Undocumented |
Method | _bind |
Undocumented |
Class Variable | _object |
Undocumented |
Class Variable | _object |
Undocumented |
Class Variable | _user |
Undocumented |
Instance Variable | _attributes |
Undocumented |
Inherited from WireStrAlias
(via BaseLDAPEntry
):
Method | __str__ |
Undocumented |
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Delete all values of an attribute. >>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={ ... 'anAttribute': ['itsValue', 'secondValue'], ... 'another': ['moreValues'], ... }) >>> del o['anAttribute'] >>> o LDAPEntry(dn='cn=foo,dc=example,dc=com', attributes={'another': ['moreValues']})
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Set values of an attribute. Please use lists. Do not modify the lists in place, that's not supported _yet_. >>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue']}) >>> o['anAttribute']=['foo', 'bar'] >>> o['anAttribute'] ['bar', 'foo']
ldaptor.inmemory.ReadOnlyInMemoryLDAPEntry
, ldaptor.ldiftree.LDIFTreeEntry
, ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Send all pending changes to the LDAP server. @returns: a Deferred that fires True (operation succeeded) or False (operation failed).
ldaptor.inmemory.ReadOnlyInMemoryLDAPEntry
, ldaptor.ldiftree.LDIFTreeEntry
, ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Delete this object from the LDAP server. @return: A Deferred that will complete when the delete is done.
ldaptor.inmemory.ReadOnlyInMemoryLDAPEntry
, ldaptor.ldiftree.LDIFTreeEntry
, ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Move the object to a new DN. @param newDN: the new DistinguishedName @return: A Deferred that will complete when the move is done.
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Update the password for the entry with a new password and salt passed as bytes.