Hi , I am having trouble in adding user with dn having umlaut characters using ldapmodify tool,It is giving invalid syntax what I need to do ? please help
dn:uid=Röichard,ou=newUsers,dc=cricbox,dc=in
ldap_add: Invalid DN syntax (34) additional info: invalid DN
Regards, pk
pramod kulkarni wrote:
Hi , I am having trouble in adding user with dn having umlaut characters using ldapmodify tool,It is giving invalid syntax what I need to do ? please help
dn:uid=Röichard,ou=newUsers,dc=cricbox,dc=in
ldap_add: Invalid DN syntax (34) additional info: invalid DN
This is not valid LDIF (RFC 2849).
As an example the data above should be:
dn:: dWlkPVLDtmljaGFyZCxvdT1uZXdVc2VycyxkYz1jcmljYm94LGRjPWlu
Ciao, Michae.
I am able add a user with Chinese character but not able to add with German umlauts any specific conversion issue ?
On Fri, Nov 29, 2013 at 1:55 PM, Michael Ströder michael@stroeder.comwrote:
pramod kulkarni wrote:
Hi , I am having trouble in adding user with dn having umlaut characters using ldapmodify tool,It is giving invalid syntax what I need to do ? please help
dn:uid=Röichard,ou=newUsers,dc=cricbox,dc=in
ldap_add: Invalid DN syntax (34) additional info: invalid DN
This is not valid LDIF (RFC 2849).
As an example the data above should be:
dn:: dWlkPVLDtmljaGFyZCxvdT1uZXdVc2VycyxkYz1jcmljYm94LGRjPWlu
Ciao, Michae.
While not strictly a valid ldif, the following works for me:
$> ldapadd dn: uid=testüser,ou=users,dc=example,dc=org objectclass: posixAccount objectclass: inetOrgPerson cn: test uid: testüser uidNumber: 37500 gidNumber: 37500 homedirectory: / sn: test
adding new entry "uid=testüser,ou=users,dc=example,dc=org"
so no preconversion of umlauts to base64 necessary. The searchoutput on the otherhand has the base64 conversion included:
$> ldapsearch -QLLL uid=testüser dn:: dWlkPXRlc3TDvHNlcixvdT11c2VycyxkYz1leGFtcGxlLGRjPW9yZw== objectClass: posixAccount objectClass: inetOrgPerson cn: test uid:: dGVzdMO8c2Vy uidNumber: 37500 gidNumber: 37500 homeDirectory: / sn: test
I noticed a missing space in the op dn though
dn:uid=Röichard,ou=newUsers,dc=cricbox,dc=in
^
hth
openldap-technical@openldap.org