LDAP try to using Administrator account

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
FedericoCoppola
Posts: 4
Joined: 11 Jan 2021, 17:01

LDAP try to using Administrator account

Post by FedericoCoppola »

Hi all,
I have configured LDAP integration with company domain controller.
Domain Controller is Win 2016 Datacenter machine with Active Directory.

This is the configuration file that I found in another thread:

Code: Select all

//Configurazione LDAP
$g_login_method = LDAP;
$g_ldap_server = 'ldap://dc01.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 = 'PassADUser';
$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';
These are my logs about LDAP:

Code: Select all

2021-01-13 15:03 UTC LDAP ldap_api.php:67 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://dc01.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
I have configured a "company service account" of Active Directory with right password and "Bing to ldap server" is successfully completed.
After that, Mantis software, use "administrator" to log to Active Directory.

I never specify Administrator account of company AD inside Mantis configuration. I think this is Mantis Local Administrator (has got different password).

Web interface doesn't work and I get this error:

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.
How can I solve it?
Thanks
Federico
Post Reply