View Issue Details

IDProjectCategoryView StatusLast Update
0032458mantisbtldappublic2023-05-25 15:03
ReporterCelsoCP Assigned Toatrol  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
OSUbuntuOS Version22.04 
Product Version2.22.1 
Summary0032458: APPLICATION ERROR 1401
Description

Hello i have a problem when i try to connect to my AD with ldap it gives me the 1401 error.

I checked that the firewall is not interfering so i know that the problem is in the config_inc.php

My configuration is like this:

$g_login_method = LDAP;
$g_ldap_server = 'ldap://IP:389';
$g_ldap_root_dn = 'OU=Name,DC=example,DC=com';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_organization = '(objectClass=*)';
$g_ldap_realname_field = 'DisplayName';
$g_ldap_bind_dn = 'CN=UserName,OU=Name,OU=name,OU=name,DC=example,DC=com';
$g_ldap_bind_passwd = 'xxxx';
$g_log_level = LOG_LDAP;
$g_log_destination = '/var/log/mantisbt.log';
$g_use_ldap_email = ON;
$g_use_ldap_realname = ON;
$g_ldap_follow_referrals = OFF;
$g_ldap_use_starttls = OFF;
$g_show_realname = ON;
$g_ldap_protocol_version = 3;

PD:
OS: Ububtu 22.04
PHP 8.1

Additional Information

LDAP ldap_api.php:327 ldap_authenticate_by_username() Binding to LDAP server\n
LDAP ldap_api.php:63 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldap://example.com:389'.\n
LDAP ldap_api.php:117 ldap_connect_bind() Connection to ldap server failed\n

All 'example' or 'name' are just example names

TagsNo tags attached.
Attached Files
error1401.jpg (49,360 bytes)   
error1401.jpg (49,360 bytes)   

Activities

atrol

atrol

2023-04-28 07:14

developer   ~0067713

Last edited: 2023-05-03 06:33

You are using an outdated MantisBT version that comes with known issues when using PHP 8.1, also related to LDAP, e.g. 0030790
The first step would be to upgrade to latest stable version (2,25,7 at the moment)

Furthermore be aware that MantisBT does not officially support PHP 8.1 or later yet, e.g. see 0031928:0067317

CelsoCP

CelsoCP

2023-04-28 07:35

reporter   ~0067714

Ok i will try
Thanks

CelsoCP

CelsoCP

2023-05-03 05:54

reporter   ~0067738

Thanks it works