Invalid DN syntax (34)

在检查 ldap 服务是否正常时,提示以下错误信息

ekanet@ESB-02:/tmp$ ldapsearch -x -LLL -b dc=esb,dc=com
Invalid DN syntax (34)
Additional information: invalid DN

检查发现原来dapsearch -x -LLL -b dc=esb,dc=com 语句后面多了个空格


命令行里面多了一个空格,删除空格后,查询正常

ekanet@ESB-02:/tmp$ ldapsearch -x -LLL -b dc=esb,dc=com
dn: dc=esb,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: china
dc: esb


dn: cn=admin,dc=esb,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator


dn: ou=Groups,dc=esb,dc=com
objectClass: organizationalUnit
ou: Groups
description: Container for Groups entries


dn: ou=Users,dc=esb,dc=com
objectClass: organizationalUnit
ou: Users
description: Container for Users entries


dn: uid=Michael,ou=Groups,dc=esb,dc=com
uid: Michael
objectClass: inetOrgPerson
mail: [email protected]
labeledURI: http://www.esb.com
sn: Sun
cn: Michael Sun


dn: uid=Test,ou=Users,dc=esb,dc=com
uid: Test
objectClass: inetOrgPerson
labeledURI: http://www.esb.com
sn: ESB
cn: Test ESB

你可能感兴趣的:(ldap,ldap)