From: Michael S. <mi...@st...> - 2008-02-22 17:07:08
|
Roland, Roland Hedberg wrote: > > Is there a simple way to map a dictionary containing a attribute schema > information for an attribute into a ldap.schema.attributeType instance ? I'm not sure I fully understand what you want. But did you already have a closer look at module ldap.schema and the examples in Demo/schema*.py? Basically the whole schema information is stored in various dictionaries of an instance of ldap.schema.subentry.SubSchema. ^^^^^^^^ (Kind of a misnomer...) Or are you asking about how to handle the name alias issues for attribute types? Then you might want to look at class ldap.schema.models.Entry. You can initialize it with a dictionary e.g. retrieved by a search and access the attribute value lists by the various aliases and by OID. Ciao, Michael. P.S.: I'd like to rather discuss those things on the python-ldap-dev mailing list (Cc:-ed) so others could benefit from such a discussion as well. |