hello everybody

Michael Ströder michael at stroeder.com
Tue Sep 8 11:24:44 CEST 2009


Łukasz Mierzwa wrote:
> I'm writing LDAP library (ORM without R as I call it) for python, it's using 
> python-ldap to do the hard work and let You manage LDAP entries in more ORM 
> style. 

I don't have the spare time to look more closely at it not to speak of really
contributing to it. So just a few general hints:

1. You're not the first one implementing such a module on top of python-ldap.
You might want to dig the mailing list's archive to find others.

2. Most implementations of higher-level APIs fall short with mapping attribute
type descriptors (OIDs or NAME) to Python class attribute names since they
ignore the fact that there are sub-types defined in LDAP (;binary and language
sub-types such as ;de-DE). Also there does not have to be a NAME in an
attribute type description. So raw OIDs might be returned in a LDAP search result.

3. No implementation is dealing correctly with attribute type descriptor
aliasing with OIDs and several values for NAME. You might want to look at
ldap.schema.models.Entry to get an idea.

Ciao, Michael.

More information about the python-ldap mailing list