class documentation

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 setPassword 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 buildAttributeSet Undocumented
Method diff Compute differences between this and another LDAP entry.
Method get Get all values of an attribute.
Method getLDIF Undocumented
Method has_key TODO
Method hasMember Undocumented
Method items TODO
Method keys TODO
Method toWire Undocumented
Instance Variable dn Undocumented
Method _bind Undocumented
Class Variable _object_class_keys Undocumented
Class Variable _object_class_lower_keys Undocumented
Class Variable _user_password_keys Undocumented
Instance Variable _attributes Undocumented

Inherited from WireStrAlias (via BaseLDAPEntry):

Method __str__ Undocumented
def __delitem__(self, key): (source)

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']})

def __setitem__(self, key, value): (source)

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']

def commit(self): (source)

Send all pending changes to the LDAP server. @returns: a Deferred that fires True (operation succeeded) or False (operation failed).

def delete(self): (source)

Delete this object from the LDAP server. @return: A Deferred that will complete when the delete is done.

def move(self, newDN): (source)

Move the object to a new DN. @param newDN: the new DistinguishedName @return: A Deferred that will complete when the move is done.

def setPassword(self, newPasswd, salt=None): (source)

Update the password for the entry with a new password and salt passed as bytes.