Re: UTF-8 full support in LDIF / LDIF v2

Michael Ströder <[email protected]>
Newsgroups gmane.ietf.ldapext
Message-ID <[email protected]>
Yves Dorfsman wrote:
> Michael Ströder wrote:
>> Someone else once posted this look-alike Unicode sequence to a mailing
>> list (ietf-pkix) during a similar discussion:
>>
>> Міϲrοѕоft Іnс
>>
>> (see example LDIF below)
>>
>> But personally I wonder whether this is a general problem which needs to
>> be solved within UIs.
>>
>> ------------------------- snip -------------------------
>> dn:: z3QnNGWz7Jyzr/RldC+ZnQg0IZu0YEsb3U9VGVzdGluZyxkYz1zdHJvZWRlcixkYz1k
>>  ZQ==
>> description: Weird Unicode sample demonstrating potential of name faking
>> o:: 0JzRls+ycs6/0ZXQvmZ0INCGbtGB
>> objectClass: organization
>>
>> ------------------------- snip -------------------------
> 
> Michael, are you sure about your dn ?
> It does not seem to decode properly...

Sorry, messed it up in my MUA when manually editing line-breaks. ;-)

------------------------- snip -------------------------
dn:: bz3QnNGWz7Jyzr/RldC+ZnQg0IZu0YEsb3U9VGVzdGluZyxkYz1zdHJvZWRlcixkYz
 1kZQ==
description: Weird Unicode sample demonstrating potential of name faking
o:: 0JzRls+ycs6/0ZXQvmZ0INCGbtGB
objectClass: organization

------------------------- snip -------------------------

In Python:

>>> s="""bz3QnNGWz7Jyzr/RldC+ZnQg0IZu0YEsb3U9VGVzdGluZyxkYz1zdHJvZWRlcixkYz
...  1kZQ=="""
>>> s.decode('base64').decode('utf-8')
u'o=\u041c\u0456\u03f2r\u03bf\u0455\u043eft
\u0406n\u0441,ou=Testing,dc=stroeder
,dc=de'


Ciao, Michael.

_______________________________________________
Ldapext mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/ldapext
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.