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)
  bind(self, password)
  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)
  lookup(self, dn)
  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
  __hash__(self)
  diff(self, other)
Compute differences between this and another LDAP entry.
  hasMember(self, dn)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __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
Implements __implemented__ = <implementedBy ldaptor.protocols.ldap....
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from BaseLDAPEntry
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
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

__implemented__

Type:
Implements
Value:
<implementedBy ldaptor.protocols.ldap.ldapsyntax.LDAPEntryWithClient>  

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0x40626d8c>       

Generated by Epydoc 2.1 on Sat Aug 26 13:54:31 2006 http://epydoc.sf.net