Open jberanek opened 5 years ago
Try setting
$ldap_debug = true;
to see what is going on.
Original comment by: campbell-m
[Mon Apr 22 05:43:43.092250 2019] [php7:notice] [pid 7204] [client 10.9.33.74:55913] authLdapAction: Got LDAP connection, referer: http://10.9.33.67/admin.php [Mon Apr 22 05:43:43.125075 2019] [php7:notice] [pid 7204] [client 10.9.33.74:55913] authLdapAction: Initial bind failed: Invalid credentials, referer: http://10.9.33.67/admin.php [Mon Apr 22 05:43:43.125469 2019] [php7:notice] [pid 7204] [client 10.9.33.74:55913] \nE_NOTICE in /var/www/html/mrbs/auth/auth_ldap.inc at line 225\nUndefined variable: dn\n, referer: http://10.9.33.67/admin.php [Mon Apr 22 05:43:43.125518 2019] [php7:notice] [pid 7204] [client 10.9.33.74:55913] authLdapAction: No DN determined, not calling callback, referer: http://10.9.33.67/admin.php
That's the error message after I set $ldap_debug = true; Does that means the search_dn or its password is wrong while ldap connects ?
Original comment by: *anonymous
LDAP connection is success now. I set the wrong search_dn sequence before. Thanks for the help!!!
Original comment by: *anonymous
I've tried to use LDAP to connect AD, but it always fail with an error whatever I set in config.inc.php. There's my LDAP setting in config.inc.php:
$auth["type"] = "ldap"; $auth["session"] = "php"; $cookie_path_override = ''; $ldap_host = "x.x.x.x"; $ldap_port = 389; $ldap_v3 = false; $ldap_tls = false; $ldap_base_dn = "OU=xxxx,DC=xxxx,DC=com"; $ldap_user_attrib = "sAMAccountName"; $ldap_dn_search_attrib = "sAMAccountName"; $ldap_dn_search_dn = "CN=xxx,OU=xxx,OU=xxx,DC=xxx,DC=com"; $ldap_dn_search_password = "asdsfad"; $ldap_get_user_email = TRUE; $ldap_email_attrib = "mail"; $auth["admin"][] = "xxx"
PHP version : 7.2.17 MRBS version : 1.7.3
The picture is the error message. Please help me solve the problem, thanks!!!
Reported by: *anonymous
Original Ticket: mrbs/support-requests/1747
Attachments: https://sourceforge.net/p/mrbs/support-requests/1747/attachment/ldap.PNG