[root@jsl-lab bin]# ldapsearch -H ldap://192.168.1.111 -x -b dc=domain,dc=lan -D userldap-1 -W Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN
[root@jsl-lab ~]# ldapsearch -H ldap://192.168.1.111 -x -b dc=domain,dc=lan -D cn=userldap-1,dc=domain,dc=lan -W Enter LDAP Password: ldap_bind: Invalid credentials (49) ----/----
Filename - olcDatabase={0}config.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 9196f517 dn: olcDatabase={0}config objectClass: olcDatabaseConfig olcDatabase: {0}config olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=extern al,cn=auth" manage by * none structuralObjectClass: olcDatabaseConfig entryUUID: 35af7048-c864-1035-8e03-f1a8570507a1 creatorsName: cn=config createTimestamp: 20160616231716Z entryCSN: 20160616231716.363950Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20160616231716Z - Filename - olcDatabase={-1}frontend.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 913779d6 dn: olcDatabase={-1}frontend objectClass: olcDatabaseConfig objectClass: olcFrontendConfig olcDatabase: {-1}frontend structuralObjectClass: olcDatabaseConfig entryUUID: 35af6634-c864-1035-8e02-f1a8570507a1 creatorsName: cn=config createTimestamp: 20160616231716Z entryCSN: 20160616231716.363690Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20160616231716Z - Filename - olcDatabase={1}monitor.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 3055ae5b dn: olcDatabase={1}monitor objectClass: olcDatabaseConfig olcDatabase: {1}monitor structuralObjectClass: olcDatabaseConfig entryUUID: 35b3d3a4-c864-1035-8e04-f1a8570507a1 creatorsName: cn=config createTimestamp: 20160616231716Z olcAccess: {0}to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=extern al,cn=auth" read by dn.base="cn=ldapadmin,dc=domain,dc=lan" read by * none entryCSN: 20160616233625.588666Z#000000#000#000000 modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth modifyTimestamp: 20160616233625Z - Filename - olcDatabase={2}hdb.ldif # AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify. # CRC32 eb874a46 dn: olcDatabase={2}hdb objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {2}hdb olcDbDirectory: /var/lib/ldap olcDbIndex: objectClass eq,pres olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub structuralObjectClass: olcHdbConfig entryUUID: 35b3deda-c864-1035-8e05-f1a8570507a1 creatorsName: cn=config createTimestamp: 20160616231716Z olcSuffix: dc=domain,dc=lan olcRootDN: cn=ldapadmin,dc=domain,dc=lan olcRootPW:: e1NTSEE9ampEcytQbWNXeXZIRJQ5Q0NlZHVQaVphVVNLcFk5Ylk= entryCSN: 20160616233625.567473Z#000000#000#000000 modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth modifyTimestamp: 20160616233625Z
Thanks. __________________________________
On Jun 30, 2016, at 5:14 AM, Michael Ströder michael@stroeder.com wrote:
James Lertora wrote:
I keep getting "Error:ldap_bind: Invalid DN syntax (34)" for the users I have added. If I change to the correct DN I get incorrect password.
This error simply means that a DN you send in a LDAP request is not really a valid DN. I suspect you're providing an invalid bind-DN.
Please describe what you're actually trying to do, preferrably with command-line tool usage and relevant LDIF snippet.
Ciao, Michael.