class BaseLDAPEntry(WireStrAlias): (source)
Known subclasses: ldaptor.entry.EditableLDAPEntry
Implements interfaces: ldaptor.interfaces.ILDAPEntry
Undocumented
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
:
Method | __str__ |
Undocumented |
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Comparison. Only equality is supported. >>> client=ldapclient.LDAPClient() >>> a=LDAPEntry(client=client, ... dn='dc=example,dc=com') >>> b=LDAPEntry(client=client, ... dn='dc=example,dc=com') >>> a==b 1 >>> c=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='ou=different,dc=example,dc=com') >>> a==c 0 Comparison does not consider the client of the object. >>> anotherClient=ldapclient.LDAPClient() >>> d=LDAPEntry(client=anotherClient, ... dn='dc=example,dc=com') >>> a==d 1
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Get all values of an attribute. >>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue']}) >>> o['anAttribute'] ['itsValue']
ldaptor.inmemory.ReadOnlyInMemoryLDAPEntry
, ldaptor.ldiftree.LDIFTreeEntry
, ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Initialize the object. @param dn: Distinguished Name of the object, as a string. @param attributes: Attributes of the object. A dictionary of attribute types to list of attribute values.
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Inequality comparison. See L{__eq__}.
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Try to authenticate with given secret. @return: Deferred ILDAPEntry (that is, self). @raise ldaperrors.LDAPInvalidCredentials: password was incorrect.
Compute differences between this and another LDAP entry. @param other: An LDAPEntry to compare to. @return: None if equal, otherwise a ModifyOp that would make this entry look like other.
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Get all values of an attribute. >>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue']}) >>> o.get('anAttribute') ['itsValue'] >>> o.get('foo') >>> o.get('foo', []) []
ldaptor._encoder.WireStrAlias.toWire
ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
Undocumented