Package ldaptor :: Package protocols :: Package ldap :: Module ldapsyntax :: Class LDAPEntryWithClient
[show private | hide private]
[frames | no frames]

Type LDAPEntryWithClient

   object --+        
            |        
BaseLDAPEntry --+    
                |    
EditableLDAPEntry --+
                    |
                   LDAPEntryWithClient

Known Subclasses:
LDAPEntryWithAutoFill

Method Summary
  __init__(self, client, dn, attributes, complete)
Initialize the object.
  __contains__(self, key)
  __delitem__(self, key)
  __eq__(self, other)
  __getitem__(self, *a, **kw)
  __len__(self)
  __ne__(self, other)
  __nonzero__(self)
  __repr__(self)
  __setitem__(self, key, value)
  __str__(self)
  addChild(self, rdn, attributes)
  buildAttributeSet(self, key, values)
  commit(self)
  delete(self)
  fetch(self, *attributes)
  get(self, *a, **kw)
  has_key(self, *a, **kw)
  items(self)
  journal(self, journalOperation)
Add a Modification into the list of modifications that need to be flushed to the LDAP server.
  keys(self)
  move(self, newDN)
  namingContext(self)
  search(self, filterText, filterObject, attributes, scope, derefAliases, sizeLimit, sizeLimitIsNonFatal, timeLimit, typesOnly, callback)
  setPassword(self, newPasswd)
  setPassword_ExtendedOperation(self, newPasswd)
Set the password on this object.
  setPassword_Samba(self, newPasswd, style)
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 sambaSamAccount or sambaAccount.
  undo(self)
    Inherited from BaseLDAPEntry
  bind(self, password)
  diff(self, other)
Compute differences between this and another LDAP entry.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
tuple __implements__ = (<class 'ldaptor.interfaces.ILDAPEntry'...
    Inherited from BaseLDAPEntry
NoneType dn = None                                                                  

Method Details

__init__(self, client, dn, attributes={}, complete=0)
(Constructor)

Initialize the object.
Parameters:
client - The LDAP client connection this object belongs to.
dn - Distinguished Name of the object, as a string.
attributes - Attributes of the object. A dictionary of attribute types to list of attribute values.
Overrides:
ldaptor.entry.BaseLDAPEntry.__init__

journal(self, 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.

setPassword_ExtendedOperation(self, newPasswd)

Set the password on this object.
Parameters:
newPasswd - A string containing the new password.
Returns:
A Deferred that will complete when the operation is done.

setPassword_Samba(self, newPasswd, style=None)

Set the Samba password on this object.
Parameters:
newPasswd - A string containing the new password.
style - one of 'sambaSamAccount', 'sambaAccount' or None. Specifies the style of samba accounts used. None is default and is the same as 'sambaSamAccount'.
Returns:
A Deferred that will complete when the operation is done.

setPasswordMaybe_ExtendedOperation(self, newPasswd)

Set the password on this object.
Parameters:
newPasswd - A string containing the new password.
Returns:
A Deferred that will complete when the operation is done.

setPasswordMaybe_Samba(self, newPasswd)

Set the Samba password on this object if it is a sambaSamAccount or sambaAccount.
Parameters:
newPasswd - A string containing the new password.
Returns:
A Deferred that will complete when the operation is done.

Class Variable Details

__implements__

Type:
tuple
Value:
(<class 'ldaptor.interfaces.ILDAPEntry'>,
 <class 'ldaptor.interfaces.IEditableLDAPEntry'>,
 <class 'ldaptor.interfaces.IConnectedLDAPEntry'>)                     

Generated by Epydoc 2.1 on Tue Aug 17 17:08:20 2004 http://epydoc.sf.net