I get the following error on Mantis Login web page
Code: Select all
APPLICATION ERROR #1400
LDAP Authentication Failed.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
Code: Select all
$g_login_method = LDAP;
$g_ldap_server = 'ldap://dc.company.local:389';
$g_ldap_root_dn = 'dc=company,dc=local';
$g_ldap_organization = '(objectClass=*)';
$g_ldap_realname_field = 'cn';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'cn=ADUSER,cn=Users,dc=company,dc=local';
$g_ldap_bind_passwd = 'PASSWORD';
$g_ldap_protocol_version = 3;
$g_use_ldap_email = OFF;
$g_use_ldap_realname = ON;
$g_log_level = LOG_LDAP;
$g_log_destination = 'file:/var/log/mantis.log';
"/var/www/html/mantis/config/config_inc.php" works fine, but it try to authenticate using "administrator" account.
Code: Select all
2021-01-13 15:03 UTC LDAP ldap_api.php:67 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://dc.company.local:389'.
2021-01-13 15:03 UTC LDAP ldap_api.php:76 ldap_connect_bind() Connection accepted by LDAP server
2021-01-13 15:03 UTC LDAP ldap_api.php:89 ldap_connect_bind() Setting LDAP protocol version to 3
2021-01-13 15:03 UTC LDAP ldap_api.php:111 ldap_connect_bind() Attempting bind to ldap server as 'cn=ADUSER,cn=Users,dc=company,dc=local'
2021-01-13 15:03 UTC LDAP ldap_api.php:124 ldap_connect_bind() Bind to ldap server successful
2021-01-13 15:03 UTC LDAP ldap_api.php:346 ldap_authenticate_by_username() Searching for (&(objectClass=*)(sAMAccountName=administrator))
2021-01-13 15:03 UTC LDAP ldap_api.php:50 ldap_log_error() ERROR #1: Operations error
2021-01-13 15:03 UTC LDAP ldap_api.php:351 ldap_authenticate_by_username() Search '(&(objectClass=*)(sAMAccountName=administrator))' failed
How can I solve it?