Ldap Authentication Failed. Application Error #1400
Posted: 24 May 2016, 07:20
Hi.
I wanted to enable the Ldap Authentication for an on-premise Mantis Server running Version 1.2.19 to authenticate to Active Directory.
Have configured config_inc.php:
$g_login_method = LDAP;
$g_ldap_server = 'ldap://xxxxx.xxxxx.com:389';
$g_ldap_root_dn = 'OU=XXXX,DC=xxxx,DC=com';
$g_ldap_protocol_version = 3;
$g_ldap_follow_referrals = OFF;
$g_ldap_bind_dn = 'CN=Username,OU=Service Accounts,OU=Location1,OU=Location2,OU=XXXXX,DC=XXXXXX,DC=com';
$g_ldap_bind_paswd = 'password';
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_email = ON;
When pressing the Login button at the Mantis Site it shows this error:
APPLICATION ERROR #1400
LDAP Authentication Failed.
Full path: /var/www/core/ldap_api.php
Line: 363
p_username administrator string
p_password ********** string
c_username administrator string
t_ldap_organization string
t_ldap_root_dn OU=MCHP-MAIN,DC=mchp-main,DC=com string
t_ldap_uid_field sAMAccountName string
t_search_filter (&(sAMAccountName=administrator)) string
t_ds Resource id #14 unknown type
t_sr boolean
/var/www/core/ldap_api.php 363 - - trigger_error ( <string>'1400', <integer>256 )
/var/www/core/ldap_api.php 321 - - ldap_authenticate_by_username ( <string>'administrator', <string>'root' )
/var/www/core/authentication_api.php 363 - - ldap_authenticate ( <string>'1', <string>'root' )
/var/www/login_page.php 199 - - auth_does_password_match ( <string>'1', <string>'root' )
What is the p_username and p_password field, this is not reflecting the bind user i have configured?
And what is the c_username field? Why is there "Administrator" filled in, i do not want to authenticate with Administrator User to Ldap.
If somebody have an idea how to configure the ldap login to AD successfully let me know
I wanted to enable the Ldap Authentication for an on-premise Mantis Server running Version 1.2.19 to authenticate to Active Directory.
Have configured config_inc.php:
$g_login_method = LDAP;
$g_ldap_server = 'ldap://xxxxx.xxxxx.com:389';
$g_ldap_root_dn = 'OU=XXXX,DC=xxxx,DC=com';
$g_ldap_protocol_version = 3;
$g_ldap_follow_referrals = OFF;
$g_ldap_bind_dn = 'CN=Username,OU=Service Accounts,OU=Location1,OU=Location2,OU=XXXXX,DC=XXXXXX,DC=com';
$g_ldap_bind_paswd = 'password';
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_email = ON;
When pressing the Login button at the Mantis Site it shows this error:
APPLICATION ERROR #1400
LDAP Authentication Failed.
Full path: /var/www/core/ldap_api.php
Line: 363
p_username administrator string
p_password ********** string
c_username administrator string
t_ldap_organization string
t_ldap_root_dn OU=MCHP-MAIN,DC=mchp-main,DC=com string
t_ldap_uid_field sAMAccountName string
t_search_filter (&(sAMAccountName=administrator)) string
t_ds Resource id #14 unknown type
t_sr boolean
/var/www/core/ldap_api.php 363 - - trigger_error ( <string>'1400', <integer>256 )
/var/www/core/ldap_api.php 321 - - ldap_authenticate_by_username ( <string>'administrator', <string>'root' )
/var/www/core/authentication_api.php 363 - - ldap_authenticate ( <string>'1', <string>'root' )
/var/www/login_page.php 199 - - auth_does_password_match ( <string>'1', <string>'root' )
What is the p_username and p_password field, this is not reflecting the bind user i have configured?
And what is the c_username field? Why is there "Administrator" filled in, i do not want to authenticate with Administrator User to Ldap.
If somebody have an idea how to configure the ldap login to AD successfully let me know