I happend to manage an LDAP directory. It contains users with French names. Those names contains accents (you know é è à and so on
By default, Fedora Directory Server use cn= as the first part of DN. As a result, when a user happend to have an accent in his/her name, it produced a base 64 encoded DN !!!
Yeah. Now, how to we delete, manage such entries ? I spent a lot of time and found the solution:
1- make sure your terminal emuator is configured to handle UTF-8 as char encoding.
2- express the DN directly in UTF-8 to manipulate the entry and NOT in its base64 encoding.
For instance to delete the entry which has the above DN, do not exeute
ldapdelete ': Y249SE/LTCBNaWNoZWwsb3U9cGVvcGxlLG91PXdlYnNvdXJkLG91PWFib25uZXMsZGM9aXZlcyxkYz1mcg=='
ldapdelete 'cn=HOËL Michel,ou=people,ou=group,dc=example,dc=com'
I spend so much time on it...