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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to