View Issue Details

IDProjectCategoryView StatusLast Update
0024934mantisbtldappublic2020-02-09 07:05
Reporterauguard Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Product Version2.18.0 
Summary0024934: enable ldap and cant login mantis but created account same as the domain accout
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',
)

TagsNo tags attached.

Activities

dregad

dregad

2020-01-21 07:00

developer   ~0063486

auguard,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).