| Home | Trees | Index | Help |
|
|---|
| Package ldaptor :: Package protocols :: Package ldap :: Module ldapsyntax :: Class LDAPEntry |
|
LDAPEntryWithAutoFill>>> o=LDAPEntry(client=ldapclient.LDAPClient(), ... dn='cn=foo,dc=example,dc=com', ... attributes={'anAttribute': ['itsValue', 'secondValue'], ... 'onemore': ['aValue'], ... }) >>> o LDAPEntry(dn='cn=foo,dc=example,dc=com', attributes={'anAttribute': ['itsValue', 'secondValue'], 'onemore': ['aValue']})
| Method Summary | |
|---|---|
Initialize the object. | |
__contains__(self,
key)
| |
Delete all values of an attribute. | |
Comparison. | |
Get all values of an attribute. | |
__len__(self)
| |
Inequality comparison. | |
__nonzero__(self)
| |
__repr__(self)
| |
Set values of an attribute. | |
Stringify as LDIF. | |
Send all pending changes to the LDAP server. | |
Delete this object from the LDAP server. | |
Fetch the attributes of this object from the server. | |
Get all values of an attribute. | |
has_key(self,
key)
| |
items(self)
| |
Add an LDAPJournalOperation into the list of modifications that need to be flushed to the LDAP server. | |
keys(self)
| |
Move the object to a new DN. | |
Return an LDAPEntry for the naming context that contains this object. | |
Perform an LDAP search with this object as the base. | |
Set all applicable passwords for this object. | |
Set the password on this object. | |
Set the Samba password on this object. | |
Set the password on this object. | |
Set the Samba password on this object if it is a sambaAccount. | |
Forget all pending changes. | |
| Method Details |
|---|
__init__(self,
client,
dn,
attributes={},
complete=0)
Initialize the object.
|
__delitem__(self,
key)
Delete all values of an attribute.
|
__eq__(self,
other)
Comparison. Only equality is supported.
|
__getitem__(self,
key)
Get all values of an attribute.
|
__ne__(self, other)Inequality comparison. See__eq__.
|
__setitem__(self,
key,
value)
Set values of an attribute. Please use lists. Do not modify the
lists in place, that's not supported _yet_.
|
__str__(self)
Stringify as LDIF.
|
commit(self)Send all pending changes to the LDAP server.
|
delete(self)Delete this object from the LDAP server.
|
fetch(self, *attributes)Fetch the attributes of this object from the server.
|
get(self, key, default=None)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', []) [] |
journal(self, journalOperation)Add an LDAPJournalOperation into the list of modifications that need to be flushed to the LDAP server. Normal callers should not use this, they should use the o['foo']=['bar', 'baz'] -style API that enforces schema, handles errors and updates the cached data. |
move(self, newDN)Move the object to a new DN.
|
namingContext(self)Return an LDAPEntry for the naming context that contains this object. |
search(self, filterText=None, filterObject=None, attributes=(), scope=2, derefAliases=0, sizeLimit=0, sizeLimitIsNonFatal=False, timeLimit=0, typesOnly=0, callback=None)Perform an LDAP search with this object as the base.
|
setPassword(self, newPasswd)Set all applicable passwords for this object.
|
setPassword_ExtendedOperation(self, newPasswd)Set the password on this object.
|
setPassword_Samba(self, newPasswd)Set the Samba password on this object.
|
setPasswordMaybe_ExtendedOperation(self, newPasswd)Set the password on this object.
|
setPasswordMaybe_Samba(self, newPasswd)Set the Samba password on this object if it is a sambaAccount.
|
undo(self)Forget all pending changes. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Fri Mar 12 17:21:13 2004 | http://epydoc.sf.net |