OPSI.ldaptor.protocols.ldap.ldapsyntax module¶
Pythonic API for LDAP operations.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
CannotRemoveRDNError
(key, val=None)¶ Bases:
exceptions.Exception
The attribute to be removed is the RDN for the object and cannot be removed.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
DNNotPresentError
¶ Bases:
exceptions.Exception
The requested DN cannot be found by the server.
-
class
OPSI.ldaptor.protocols.ldap.ldapsyntax.
JournaledLDAPAttributeSet
(ldapObject, *a, **kw)¶ Bases:
OPSI.ldaptor.attributeset.LDAPAttributeSet
-
add
(value)¶
-
clear
()¶
-
remove
(value)¶
-
update
(sequence)¶
-
-
OPSI.ldaptor.protocols.ldap.ldapsyntax.
LDAPEntry
¶ alias of
LDAPEntryWithClient
-
class
OPSI.ldaptor.protocols.ldap.ldapsyntax.
LDAPEntryWithAutoFill
(*args, **kwargs)¶ Bases:
OPSI.ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient
-
addAutofiller
(autoFiller)¶
-
journal
(journalOperation)¶
-
-
class
OPSI.ldaptor.protocols.ldap.ldapsyntax.
LDAPEntryWithClient
(client, dn, attributes={}, complete=0)¶ Bases:
OPSI.ldaptor.entry.EditableLDAPEntry
-
addChild
(rdn, attributes)¶
-
bind
(password)¶
-
buildAttributeSet
(key, values)¶
-
commit
()¶
-
delete
()¶
-
fetch
(*attributes)¶
-
get
(*a, **kw)¶
-
has_key
(*a, **kw)¶
-
items
()¶
-
journal
(journalOperation)¶ Add a Modification 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.
-
keys
()¶
-
lookup
(dn)¶
-
move
(newDN)¶
-
namingContext
()¶
-
search
(filterText=None, filterObject=None, attributes=(), scope=None, derefAliases=None, sizeLimit=0, sizeLimitIsNonFatal=False, timeLimit=0, typesOnly=0, callback=None)¶
-
setPassword
(newPasswd)¶
-
setPasswordMaybe_ExtendedOperation
(newPasswd)¶ Set the password on this object.
@param newPasswd: A string containing the new password.
@return: A Deferred that will complete when the operation is done.
-
setPasswordMaybe_Samba
(newPasswd)¶ Set the Samba password on this object if it is a sambaSamAccount or sambaAccount.
@param newPasswd: A string containing the new password.
@return: A Deferred that will complete when the operation is done.
-
setPassword_ExtendedOperation
(newPasswd)¶ Set the password on this object.
@param newPasswd: A string containing the new password.
@return: A Deferred that will complete when the operation is done.
-
setPassword_Samba
(newPasswd, style=None)¶ Set the Samba password on this object.
@param newPasswd: A string containing the new password.
@param style: one of ‘sambaSamAccount’, ‘sambaAccount’ or None. Specifies the style of samba accounts used. None is default and is the same as ‘sambaSamAccount’.
@return: A Deferred that will complete when the operation is done.
-
undo
()¶
-
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
MatchNotImplemented
(op)¶ Bases:
exceptions.NotImplementedError
Match type not implemented
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
NoContainingNamingContext
¶ Bases:
exceptions.Exception
The server contains to LDAP naming context that would contain this object.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
ObjectDeletedError
¶ Bases:
OPSI.ldaptor.protocols.ldap.ldapsyntax.ObjectInBadStateError
The LDAP object has already been removed, unable to perform operations on it.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
ObjectDirtyError
¶ Bases:
OPSI.ldaptor.protocols.ldap.ldapsyntax.ObjectInBadStateError
The LDAP object has a journal which needs to be committed or undone before this operation.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
ObjectInBadStateError
¶ Bases:
exceptions.Exception
The LDAP object in in a bad state.
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
PasswordSetAborted
¶ Bases:
exceptions.Exception
Aborted
-
exception
OPSI.ldaptor.protocols.ldap.ldapsyntax.
PasswordSetAggregateError
(errors)¶ Bases:
exceptions.Exception
Some of the password plugins failed