This is my /etc/hosts file:
This is my ldap.conf file:
I am getting
"ldap_sasl_bind(SIMPLE): Can't liên hệ LDAP server(-1)"
when I lập cập this command:
ldapsearch -x -H "ldap://ldap.techvictus.local" -P 3 -LLL -b "dc=techvictus,dc=local"
asked Jan 30, năm 2016 at 7:15
Arvind SolankyArvind Solanky
691 gold badge1 silver badge2 bronze badges
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 2016 at 10:55
Ludovic PoitouLudovic Poitou
4,8682 gold badges22 silver badges31 bronze badges
3
In my case (Debian 12 LXC container) I had to tướng install libldap-common
and add TLS_REQCERT never
to tướng /etc/ldap/ldap.conf:
apt -y install ldap-utils libldap-common
echo "TLS_REQCERT never" >> /etc/ldap/ldap.conf
AlekAlek
8439 silver badges8 bronze badges
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 tên miền name I was using was just a made-up (fake tên miền name like: marvel.comics
). So I modified ldap.conf
to tướng 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 to tướng bủ.
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
sgt.ahnsgt.ahn
991 silver badge10 bronze badges