[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [ldapext] UTF-8 full support in LDIF / LDIF v2



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
Ldapext@ietf.org
https://www.ietf.org/mailman/listinfo/ldapext