Question

When I try to add a user on OpenLDAP 2.4.32 using ldapmodify which has a german umlaut I get a ldap syntax error

ldapmodify.exe" -a -x -H ldap://localhost -D %LDAP_ROOT% -w %LDAP_SECRET%
dn:uid=aöich,ou=Users,dc=cricbox,dc=in
changetype: add
objectClass:person
objectClass:inetOrgPerson
objectClass:organizationalPerson
uid:aöich
cn:aöich
sn:aöich

ldap_add: Invalid DN syntax (34)
        additional info: invalid DN

How to add a user with german mmlaut character on OpenLDAP server ?

Was it helpful?

Solution

Check if your databank schema supports Unicode. Check LDAP documentation here:

  attributeType ( 2.5.4.41 NAME 'name'
                DESC 'name(s) associated with the object'
                EQUALITY caseIgnoreMatch
                SUBSTR caseIgnoreSubstringsMatch
                SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
        attributeType ( 2.5.4.3 NAME ( 'cn' 'commonName' )
                DESC 'common name(s) assciated with the object'
                SUP name )

Your attributes should contain:

 directoryString    1.3.6.1.4.1.1466.115.121.1.15   Unicode (UTF-8) string
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top