View Issue Details

IDProjectCategoryView StatusLast Update
0027904mantisbtauthenticationpublic2021-02-10 16:29
Reporterlx1994 Assigned Todregad  
Status closedResolutionno change required 
PlatformwindowsOSserver 2106OS Version3
Product Version2.24.4 
Summary0027904: 无法认证ldap - Unable to authenticate ldap

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:67 ldap_connect_bind() Attempting connection to LDAP server/URI 'ldaps://'.

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:76 ldap_connect_bind() Connection accepted by LDAP server

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:89 ldap_connect_bind() Setting LDAP protocol version to 3

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:111 ldap_connect_bind() Attempting bind to ldap server as 'CN=LDAP_User,CN=Users,DC=JXGD,DC=MTC,DC=LOCAL'

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:50 ldap_log_error() ERROR #-1: Can't contact LDAP server

[22-Jan-2021 03:43:17 UTC] 2021-01-22 03:43 UTC LDAP ldap_api.php:121 ldap_connect_bind() Bind to ldap server failed


连接至 LDAP 服务器失败 - Failed to connect to LDAP server

TagsNo tags attached.




2021-01-23 05:11

developer   ~0065024


Please note that this is an English-speaking community, nobody understands Chinese here, so post accordingly. I used Google translate on your submission

The error reported in your log ERROR #-1: Can't contact LDAP server indicate a problem with your LDAP settings. Without information about your configuration, it is impossible to provide any specific indications. As you are using ldaps, The error could be due to your server's SSL settings (e.g. a missing certificate authority).

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to for links and further details).



2021-01-25 04:41

reporter   ~0065028

sorry,please help me,
This is my LDAP configuration information, please help confirm the problem
$g_login_method = LDAP;
$g_reauthentication = ON;
$g_ldap_server = 'ldaps://';
$g_ldap_root_dn = 'DC=JXGD,DC=MTC,DC=LOCAL';
$g_ldap_protocol_version = 3;
$g_ldap_bind_dn = 'CN=LDAP_User,CN=Users,DC=JXGD,DC=MTC,DC=LOCAL';
$g_ldap_uid_field = 'sAMAccountName';