problem with the case of attributes' names

Michael Ströder michael at
Tue Apr 5 18:32:08 CEST 2005

Jerome Alet wrote:
> On Thu, Mar 31, 2005 at 03:33:26PM +0200, Michael Ströder wrote:
> Am I right in thinking that each time I use search_s() I should
> transform the result this way so that the app doesn't care :
> --- CUT ---    
> result = server.search_s(base, scope, fiterexp, attributes)
> if result :
>     result = [ (dn, ldap.cidict.cidict(attrs)) for (dn, attrs) in result ]
> --- CUT ---    

This may solve it. But note that there are also some alias problems. One
example from recent OpenLDAP schema:

( NAME ( 'street' 'streetAddress' ) DESC ... )

> OK, so if I always transform the search results with the above code,
> and if I directly use these transformed results when calling 
> modifyModlist() for both old and new entries, all should be fine ?

In theory everything should be fine regarding case of attribute type
names. But please test yourself!

Ciao, Michael.

More information about the python-ldap mailing list