Good morning everyone,
I have an Ubuntu Server with MantisBT installed and I want it to provision users from my Active Directory (192.168.50.5). Since the first time I tried to integrate Mantis with LDAP I get this error and I don't know why. If I do a "ldapsearch" it works correctly.
This is my configuration:
$g_login_method = LDAP;
$g_ldap_server = 'ldap://192.168.50.5:389';
$g_ldap_use_starttls = '0';
$g_ldap_root_dn = 'DC=tonimateu,DC=local';
$g_ldap_organization = '(objectClass=*)';
$g_ldap_bind_dn = 'CN=administrador,cn=users,DC=tonimateu,DC=local';
$g_ldap_bind_passwd = '******';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_realname_field = 'displayName';
$g_ldap_protocol_version = 3;
$g_ldap_follow_referrals = '0';
$g_use_ldap_realname = ON;
$g_use_ldap_email = ON;
$g_show_realname = ON;
$g_default_new_account_access_level = DEVELOPER;
LDAP INTEGRATION: APPLICATION ERROR #1401
Moderators: Developer, Contributor
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
I can't provide deeper help, but obviously wrong is, that you set $g_ldap_use_starttls and $g_ldap_follow_referrals to '0', where just ON or OFF are allowed
https://www.mantisbt.org/docs/master/en ... .auth.ldap
https://www.mantisbt.org/docs/master/en ... .auth.ldap
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
You are absolutely right, but even changing those two parameters I was getting the same error. The fact of putting them is due to the desperation of not knowing what was failing and asking ChatGPT.
Do I have to do any previous step (apart from installing "php-ldap") before configuring?
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
This is my actual configuration and still not working. The only previous steps taken have been to install "php-ldap" and activate it from php.ini.
$g_login_method = LDAP;
$g_ldap_server = 'ldap://192.168.50.5:389/';
$g_ldap_root_dn = 'dc=tonimateu,dc=local';
$g_ldap_organization = '';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'CN=Administrador,CN=Users,DC=tonimateu,DC=local';
$g_ldap_bind_passwd = '******';
$g_ldap_realname_field = 'cn';
$g_ldap_follow_referrals = OFF;
$g_use_ldap_realname = ON;
$g_use_ldap_email = ON;
$g_ldap_use_starttls = OFF;
$g_ldap_protocol_version = 3;
$g_log_level = LOG_LDAP;
$g_log_destination = 'file:/var/www/html/mantis/logs/ldap.log';
$g_login_method = LDAP;
$g_ldap_server = 'ldap://192.168.50.5:389/';
$g_ldap_root_dn = 'dc=tonimateu,dc=local';
$g_ldap_organization = '';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'CN=Administrador,CN=Users,DC=tonimateu,DC=local';
$g_ldap_bind_passwd = '******';
$g_ldap_realname_field = 'cn';
$g_ldap_follow_referrals = OFF;
$g_use_ldap_realname = ON;
$g_use_ldap_email = ON;
$g_ldap_use_starttls = OFF;
$g_ldap_protocol_version = 3;
$g_log_level = LOG_LDAP;
$g_log_destination = 'file:/var/www/html/mantis/logs/ldap.log';
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
Are there some more error details in /var/www/html/mantis/logs/ldap.log ?
Did you run admin/check/index.php and fix any error you got?
Are you running the current latest stable version 2.25.7?
Did you run admin/check/index.php and fix any error you got?
Are you running the current latest stable version 2.25.7?
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
Finally I have solved it simply by installing the most recent version of Mantis and applying this configuration, I show it in case any user has the same problem.
Thank you very much for your help.
$g_login_method = LDAP;
$g_ldap_server = 'ldap://192.168.50.5:3268/';
$g_ldap_root_dn = 'dc=tonimateu,dc=local';
$g_ldap_organization = '';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_bind_dn = 'cn=Administrador,cn=Users,dc=tonimateu,dc=local';
$g_ldap_bind_passwd = '*******';
$g_ldap_realname_field = 'cn';
$g_ldap_follow_referrals = OFF;
$g_use_ldap_realname = ON;
$g_use_ldap_email = ON;
$g_ldap_use_starttls = OFF;
$g_ldap_protocol_version = 3;
$g_log_level = LOG_LDAP;
Re: LDAP INTEGRATION: APPLICATION ERROR #1401
I was using version 2.22.1, but for some reason the integration was not working. I made another VM with the latest version of Mantis where I just copied the configuration from the other machine and it worked fine.