I’m confident my LDAP bind is working. When I make changes to fields such as $g_ldap_bind_dn, $g_ldap_server, etc. Mantis gives me errors consistent with said changes. e.g. the Mantis login page says “LDAP Authentication Failed” when I change $g_ldap_bind_passwd to something that is incorrect.
I just can’t figure out what else might be going on. I've tried every permutation for each of the values that I can think of -- IP address, hostname, ldap://hostname, ldap://hostname:389, protocol, base DN, etc. Nothing seems to work. Is there any way to crank out some logging?
I do have two other PHP applications authenticating against ActiveDirectory using LDAP from the same subnet, so I’m highly confident the far end of this is configured and working correctly.
Any thoughts?
Code: Select all
$g_login_method = LDAP;
#$g_ldap_server = 'drone';
$g_ldap_server = 'ldap://drone/';
#$g_ldap_port = '389';
$g_ldap_root_dn = 'OU=Staff,DC=XXX,DC=com';
$g_ldap_uid_field = 'sAMAccountName';
#$g_ldap_bind_dn = 'CN=LDAP,CN=Users,DC=XXX,DC=com';
#$g_ldap_bind_dn = 'LDAP';
$g_ldap_bind_dn = 'LDAP@XXX.com';
#$g_ldap_bind_dn = 'LDAP@XXX.com';
$g_ldap_bind_passwd = 'secret';
#$g_use_ldap_email = 'ON';
$g_ldap_protocol_version = 3;