Description | When I enable ldap , firstly use domain account (hz)login mantis and receive a error : 'Your account may be disabled or blocked or the username/password you entered is incorrect.';
When I disable ladp , use the domain account (hz) login mantis, and it login succesfully,what happened with it?
Config_inc.php:
$g_login_method = LDAP;
$g_ldap_server = 'ldap://cn.net:389';
$g_ldap_root_dn = 'OU=hz, DC=cn,DC=net';
$g_ldap_bind_dn = 'CN= service,OU=hz,DC=cn,DC=net ';
$g_ldap_bind_passwd = '***';
$g_ldap_realname_field = 'cn';
$g_ldap_protocol_version = 3;
$g_use_ldap_email = ON;
$g_use_ldap_realname = ON;
$g_ldap_organization = '';
$g_ldap_uid_field = 'sAMAccountName';
Log:
2018-11-05 17:26 CST LDAP ldap_api.php:227 ldap_get_field_from_username() Retrieving field 'mail' for 'hz'
2018-11-05 17:26 CST LDAP ldap_api.php:230 ldap_get_field_from_username() Binding to LDAP server
2018-11-05 17:26 CST LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://cn.net:389'.
2018-11-05 17:26 CST LDAP ldap_api.php:66 ldap_connect_bind() Connection accepted by LDAP server
2018-11-05 17:26 CST LDAP ldap_api.php:79 ldap_connect_bind() Setting LDAP protocol version to 3
2018-11-05 17:26 CST LDAP ldap_api.php:101 ldap_connect_bind() Attempting bind to ldap server with username and password
2018-11-05 17:26 CST LDAP ldap_api.php:114 ldap_connect_bind() Bind to ldap server successful
2018-11-05 17:26 CST LDAP ldap_api.php:241 ldap_get_field_from_username() Searching for (&(sAMAccountName=hz))
2018-11-05 17:26 CST LDAP ldap_api.php:259 ldap_get_field_from_username() Unbinding from LDAP server
2018-11-05 17:26 CST LDAP ldap_api.php:273 ldap_get_field_from_username() Found value 'hz*@corp. com' for field 'mail'.
2018-11-05 17:26 CST DB user_api.php:1538 user_increment_failed_login_count() array (
0 => 'UPDATE mantis_user_table SET failed_login_count=failed_login_count+1 WHERE id=\'2\'',
1 => '0.0021',
)
2018-11-05 17:26 CST DB database_api.php:161 db_connect() array (
0 => 'SET NAMES UTF8',
1 => '0.0002',
)
2018-11-05 17:26 CST DB plugin_api.php:906 plugin_register_installed() array (
0 => 'SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=\'1\' ORDER BY priority DESC',
1 => '0.0004',
)
2018-11-05 17:26 CST DB config_api.php:728 config_cache_all() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0004',
)
2018-11-05 17:26 CST DB user_api.php:704 user_get_id_by_name() array (
0 => 'SELECT FROM mantis_user_table WHERE username=\'administrator\'',
1 => '0.0004',
) |
---|