UnicodeEncodeError with Bind-DN containing non-ASCII chars

Michael Ströder <[email protected]> Mon, 03 Mar 2008 00:44:07 +0100
Newsgroups gmane.comp.ldap.luma.i18n,gmane.comp.ldap.luma.devel,gmane.comp.ldap.luma.general
Message-ID <[email protected]>
Bj=F8rn Ove Gr=F8tan wrote:
> The Luma project just released Luma 2.4 =

>  =

> Changes since 2.3: =

> * Password will be prompted if left blank and a binddn is set =


It seems non-ASCII chars in DNs (e.g cn=3DMichael =

Str=F6der,ou=3DFriends,dc=3Dstroeder,dc=3Dde) are not properly handled:

Exception in thread Thread-25:
Traceback (most recent call last):
   File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
     self.run()
   File =

"/home/michael/src/luma-2.4/lib/luma/base/backend/LumaConnection.py", =

line 565, in run
     self.ldapServerObject.simple_bind_s(whoVal, credVal)
   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", =

line 198, in simple_bind_s
     msgid =3D self.simple_bind(who,cred,serverctrls,clientctrls)
   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", =

line 192, in simple_bind
     return =

self._ldap_call(self._l.simple_bind,who,cred,EncodeControlTuples(serverctrl=
s),EncodeControlTuples(clientctrls))
   File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", =

line 97, in _ldap_call
     result =3D func(*args,**kwargs)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' =

in position 14: ordinal not in range(128)

Ciao, Michael.


-------------------------------------------------------------------------
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/