jethrocarr / namedmanager

AGPL web-based DNS management interface in PHP
349 stars 125 forks source link

LDAP Error #66

Open bshiers opened 7 years ago

bshiers commented 7 years ago

I'm getting an LDAP error when I try to setup LDAP authentication. I believe I have followed the guide properly and I'm getting a can't bind error.

[Sat Oct 07 10:51:44.732138 2017] [:error] [pid 1183] [client x.x.x.x:56079] PHP Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in /usr/share/namedmanager/htdocs/include/amberphplib/inc_ldap.php on line 98, referer: https://x.x.x.x//namedmanager/index.php?page=user/login.php

$config["ldap_host"] = "x.x.com"; // hostname of the LDAP server $config["ldap_port"] = "389"; // LDAP server port $config["ldap_dn"] = "dc=x,dc=com"; // DN to run queries under $config["ldap_manager_user"] = "cn=user,cn=users,dc=x,dc=com"; // LDAP manager $config["ldap_manager_pwd"] = "soopersecretpassword"; $config["ldap_ssl"] = "disable"; // use TLS/SSL - enable/disable

That's my config. What can I try to test this. I can get logged in no issues with the local setup.

bshiers commented 7 years ago

Also I got one of my test IP's banned testing this due to brute force detection. How do I clear that out?

bshiers commented 7 years ago

I should mention our LDAP backend is active directory. I have a number of other linux boxes tied into AD and they seem to work so I must be missing something.