[Product-Developers] LDAPMultiPlugins developers: please read this - possible localization problem

Wichert Akkerman wichert at wiggy.net
Sat Aug 23 07:30:53 UTC 2008


Previously Alberto Lopes wrote:
> 
> Dear Wichert,
> 
> Thank you for your quick response. I really appreciate it.
> 
> 
> Wichert Akkerman wrote:
> > 
> > memberOf is a list of DN strings. This line builds a list of the first
> > rDN part of each entry in that list. Hence the variable name "cns": it
> > is a list of canonical names partst of the memberOf values.
> > 
> 
> So the x.split(',') part would split the DN of each group, and not the
> memberOf value - because it is a list of strings, right?

Right.

> Wichert Akkerman wrote:
> > 
> > That may be true in how it displays LDAP entries on your screen, but the
> > actual format used on the wire is defined by the RFC and not
> > locale-dependent.
> > 
> 
> By "format used on the wire" you mean the format of the LDAP messages,
> right? But I assume LDAPMultiPlugins use some python library (python-ldap, I
> suppose, because I had to install that in order to make the Plone product to
> work) that already parsed those messages to get the group list for the
> user... Also, I remember installing some DLLs in Windows in order to make
> plone-ldap to work. So I understand that the Plone product calls python-ldap
> which calls the OpenLDAP dll which parses the LDAP message. I wonder if in
> that sequence there could be any "string-to-list" conversion which would
> (conf)use commas and semicolons.

There is no string-to-list conversion. The LDAP protocol is based the
binary BER format.

Wichert.


-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.




More information about the Product-Developers mailing list