Support Questions

Find answers, ask questions, and share your expertise

ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)

avatar
New Contributor

Configuring Kerberos with AD in Cloudera 5.16. When I try to enable the Kerberos, I get the below error -


+ ldapsearch -LLL -H ldaps://cdh516-01.sw.com:636 -b ou=cloudera,DC=dbanet4,DC=root userPrincipalName=admin/admin@DBANET4.ROOT
ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
+ '[' 255 -ne 0 ']'
+ echo 'ldapsearch did not work with SASL authentication. Trying with simple authentication'
+ ldapsearch -LLL -H ldaps://cdh516-01.sw.com:636 -b ou=cloudera,DC=dbanet4,DC=root -x -D admin/admin@DBANET4.ROOT -w REDACTED userPrincipalName=admin/admin@DBANET4.ROOT
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
+ '[' 255 -ne 0 ']'
+ echo 'Failed to do ldapsearch.'
+ echo 'Please make sure Active Directory configuration is correctly specified and LDAP over SSL is enabled.'
+ exit 1

 

I understand looking at the error, it wasn't able to connect with LDAP server, however, the setup went very good and not sure how to check, although I did check with ldap.exe and got the blank screen.

Any help is appreciated.

1 REPLY 1

avatar
Explorer

ou=cloudera,DC=dbanet4,DC=root 

Just make sure you have mentioned this line corrected or not
we were facing the same issue and found your article.

as there was no answer, I tried to troubleshoot by myself and got that I misspelled ' ou ' field.

I just corrected it and boom issue resolved !!!