From: <mi...@st...> - 2005-04-06 04:50:11
|
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: ( 2.5.4.9 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. |