AD account unable to login mantis
Posted: 13 Aug 2019, 05:01
setting:
$g_login_method = LDAP;
$g_ldap_server = 'LDAP://ldap.xxxxx.xxxx:389';
$g_ldap_root_dn = 'CN=xxxx,OU=LDAP,OU=xxxxxx,DC=xxxxx,DC=xxxx';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'domain\user'
$g_ldap_bind_passwd = 'xxxxxxx'; # Password
$g_use_ldap_email =ON;
$g_show_realname = ON;
$g_ldap_protocol_version = 3;
$g_use_ldap_realname = ON;
$g_ldap_realname_field = 'cn';
$g_ldap_follow_referrals = OFF;
error log:
ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://**********/'.
ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
ldap_api.php:334 ldap_authenticate_by_username() Searching for (&(sAMAccountName=*****)) /* login username
ldap_api.php:366 ldap_authenticate_by_username() No matching entries found
ldap_api.php:369 ldap_authenticate_by_username() Unbinding from LDAP server
ldap_api.php:396 ldap_authenticate_by_username() Authentication failed
ldap_api.php:326 ldap_authenticate_by_username() Binding to LDAP server
ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://**********/'.
ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
ldap_api.php:334 ldap_authenticate_by_username() Searching for (&(sAMAccountName=administrator))
ldap_api.php:366 ldap_authenticate_by_username() No matching entries found
ldap_api.php:369 ldap_authenticate_by_username() Unbinding from LDAP server
ldap_api.php:396 ldap_authenticate_by_username() Authentication failed
Same https://mantisbt.org/bugs/view.php?id=24057 situation
Any setting problem?
$g_login_method = LDAP;
$g_ldap_server = 'LDAP://ldap.xxxxx.xxxx:389';
$g_ldap_root_dn = 'CN=xxxx,OU=LDAP,OU=xxxxxx,DC=xxxxx,DC=xxxx';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'domain\user'
$g_ldap_bind_passwd = 'xxxxxxx'; # Password
$g_use_ldap_email =ON;
$g_show_realname = ON;
$g_ldap_protocol_version = 3;
$g_use_ldap_realname = ON;
$g_ldap_realname_field = 'cn';
$g_ldap_follow_referrals = OFF;
error log:
ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://**********/'.
ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
ldap_api.php:334 ldap_authenticate_by_username() Searching for (&(sAMAccountName=*****)) /* login username
ldap_api.php:366 ldap_authenticate_by_username() No matching entries found
ldap_api.php:369 ldap_authenticate_by_username() Unbinding from LDAP server
ldap_api.php:396 ldap_authenticate_by_username() Authentication failed
ldap_api.php:326 ldap_authenticate_by_username() Binding to LDAP server
ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://**********/'.
ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
ldap_api.php:334 ldap_authenticate_by_username() Searching for (&(sAMAccountName=administrator))
ldap_api.php:366 ldap_authenticate_by_username() No matching entries found
ldap_api.php:369 ldap_authenticate_by_username() Unbinding from LDAP server
ldap_api.php:396 ldap_authenticate_by_username() Authentication failed
Same https://mantisbt.org/bugs/view.php?id=24057 situation
Any setting problem?