deepti jawalkar wrote:
> well these are my 2 cases :
> 
> *with python-ldap *: so in this case it works even though the object i 
> am passing has unicode characters in it's distinguished name
> eg: CN=Sen-po 胡森� 
> (senpo),OU=Users,OU=TPE,OU=Offices,DC=corp,DC=google,DC=com

Well, *I* can't read this distinguished name. I don't have the necessary 
fonts and installed and I don't understand them anyway. ;-)

> i can print the distinguished name without encoding it in utf-8 format 
> and also remove or add this user to a group.

Off course you can pass around UTF-8-encoded Unicode strings. But you 
have to invoke .decode() and .encode() in your application code (e.g. 
like my web2ldap does). python-ldap does *never* invoke these methods 
internally.

> Can you let me know how exactly is this happening in python ldap and how 
> is it able to add and remove accounts with unicode characters.

You can always just treat the DNs opaque. ;-)

Ciao, Michael.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to