Home

understanding ldapuserfolder

Updated:
Created:
plone, unicef

Researching the use of ldapuserfolder, a zope product

f = acl_users

u = f.getUser('somebody')

How do I get the user object from the folder? 
 f.getUser('another_test3')
How do I get the dn of a user?
 u.getUserDN()
changing attributes of a user
 f.manage_editUser(dn,kwargs=dict(attribute='hihi)) - this uses the 'real' ldap attributes
getting a property of a user
u.attribute - using the ldap attribute name, but only for some attributes. Which ones???
getting all the possible attributes - the schema
f.getSchemaConfig()
getting a property of a user using the 'friendly name'
???
get all the properties of a user
f.getUserDetails(dn,format='dictionary')

It pretty much seems that everything is done with the ldap names, and the friendly names are just cosmetic.