Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Amazing solutions for the ldap_sasl_bind simple can't contact ldap server (-1) error.
Next
Answered
Reece Johnson
  • 13
Reece Johnson
Asked: May 18, 20222022-05-18T17:14:06+00:00 2022-05-18T17:14:06+00:00In: Programs

Amazing solutions for the ldap_sasl_bind simple can’t contact ldap server (-1) error.

  • 13

. Advertisement .

..3..

. Advertisement .

..4..

I am working with programs and getting the error message:

ldap_sasl_bind(SIMPLE): Can't contact LDAP server(-1)

Here is the detail of the code that I ran:

ldapsearch -x -H "ldap://ldap.techvictus.local" -P 3 -LLL -b "dc=techvictus,dc=local"

I need an explanation for the problems I’ve encountered. How to fix ldap_sasl_bind simple can’t contact ldap server (-1)?

ldap_sasl_bind
  • 2 2 Answers
  • 84 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-13T23:03:03+00:00Added an answer on June 13, 2022 at 11:03 pm

    The cause:

    After researching your program for hours, I realize that your ldap.conf was previously configured with your IP address. However, the hostname ldap.techvictus.local actually is not an address, it is just a fake domain name. Therefore, you get the error: ”ldap_sasl_bind simple can’t contact ldap server (-1)”.

    Solution:

    I suggest that you should use the IP address of your system instead of using 127.0.1.1, or you can use FQDN after the IP address as the following:

    192.168.1.123 hulk.marvel.comics hulk
    127.0.0.1 localhost
    
    and the rest...

    To remove the fake domain name, you need to alter ldap.conf to get URI ldap://${IP_ADDRESS}

    Another way is trying: ldap://localhost

    If you follow the ways I suggest above, I sure that your error will go away.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Nathan Laroche
    2022-05-25T20:38:18+00:00Added an answer on May 25, 2022 at 8:38 pm

    The hostname ldap.techvictus.local I think is not addressable (i.e. A hostname that can be resolved using an IP address.

    Use ldap://localhost

    • 9
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.