This is my /etc/hosts file:

This is my /etc/hosts file:

This is my ldap.conf file:

This is my ldap.conf file:

I am getting

"ldap_sasl_bind(SIMPLE): Can't liên hệ LDAP server(-1)"

when I run rẩy this command:

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

asked Jan 30, năm nhâm thìn at 7:15

2

I don't think the hostname ldap.techvictus.local is actually addressable... (i.e. a hostname that can be resolved in an IP address).

Try ldap://localhost

answered Jan 30, năm nhâm thìn at 10:55

3

In my case (Debian 12 LXC container) I had vĩ đại install libldap-common and add TLS_REQCERT never vĩ đại /etc/ldap/ldap.conf:

apt -y install ldap-utils libldap-common
echo "TLS_REQCERT never" >> /etc/ldap/ldap.conf

I'm pretty sure you've figured it out by now but leaving a comment here for others.

I was having the same issue and I realized that the domain name name I was using was just a made-up (fake domain name name like: marvel.comics). So I modified ldap.conf vĩ đại have URI ldap://${IP_ADDRESS} and it worked.

It seems lượt thích you originally configured your ldap.conf with your IP address. However, your /etc/hosts seems odd vĩ đại bầm.

I recommend using your system's IP address rather than vãn 127.0.1.1. Also use FQDN after the IP address.

192.168.1.123 hulk.marvel.comics hulk
127.0.0.1 localhost

and the rest...

answered Oct 7, 2020 at 23:50