当我尝试使用带有德语变音符号的ldapmodify在OpenLDAP 2.4.32上添加用户时,我得到了ldap语法错误
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
如何在OpenLDAP服务器上添加具有德语mmlaut字符的用户?
答案 0 :(得分:0)
检查您的数据库架构是否支持Unicode。在这里查看LDAP documentation:
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 )
您的属性应包含:
directoryString 1.3.6.1.4.1.1466.115.121.1.15 Unicode (UTF-8) string