MANTIS LDAP Auth

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
wowagsm2
Posts: 1
Joined: 18 Oct 2024, 13:48

MANTIS LDAP Auth

Post by wowagsm2 »

I'm trying to set up LDAP authorization in our AD.

Code: Select all

$g_login_method = LDAP;
$g_ldap_server = 'ldap://company.org';
$g_ldap_root_dn = 'OU=Company Users,DC=company,DC=org';
$g_ldap_organization = '';
$g_ldap_follow_referrals = OFF;
$g_ldap_bind_dn = 'CN=testlink_ad,OU=Company Service Accounts,DC=company,DC=org';
$g_ldap_bind_password = 'password';
$g_use_ldap_realname = ON;
$g_ldap_realname_field = 'cn';
$g_ldap_use_starttls = OFF;
$g_ldap_protocol_version = 3;
$g_ldap_uid_field = 'sAMAccountName';
$g_use_ldap_email = OFF;
$g_display_errors[E_WARNING] = 'none';
I specify both the correct AD user data and the incorrect ones, the result is the same (ldap_connect_bind() Bind to ldap server successful):

Code: Select all

2024-10-18 16:33 MSK LDAP ldap_api.php:376 ldap_authenticate_by_username() Binding to LDAP server
2024-10-18 16:33 MSK LDAP ldap_api.php:66 ldap_connect_bind() Checking syntax of LDAP server URI 'ldap://neurosoft.ru'.
2024-10-18 16:33 MSK LDAP ldap_api.php:75 ldap_connect_bind() LDAP server URI syntax check succeeded
2024-10-18 16:33 MSK LDAP ldap_api.php:88 ldap_connect_bind() Setting LDAP protocol version to 3
2024-10-18 16:33 MSK LDAP ldap_api.php:143 ldap_connect_bind() Attempting anonymous bind to ldap server
2024-10-18 16:33 MSK LDAP ldap_api.php:152 ldap_connect_bind() Bind to ldap server successful
2024-10-18 16:33 MSK LDAP ldap_api.php:380 ldap_authenticate_by_username() Searching for (&(sAMAccountName=usertest))
2024-10-18 16:33 MSK LDAP ldap_api.php:54 ldap_log_error() ERROR #1: Operations error
2024-10-18 16:33 MSK LDAP ldap_api.php:385 ldap_authenticate_by_username() Search '(&(sAMAccountName=usertest))' failed
Any ideas?
Post Reply