Invalid DN syntax (34)

The following error message is prompted when checking that the LDAP service is working
ekanet@ESB-02:/tmp$ ldapsearch -x -LLL -b dc=esb,dc=com
Invalid DN syntax (34)
Additional information: invalid DN
Check the original Dapsearch-x-ll-b dc= ESB, DC = COM statement after an extra space

Command line inside more than a space, delete the space, query normal
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

Read More: