View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022183 | mantisbt | ldap | public | 2017-01-12 10:55 | 2017-02-24 13:46 |
Reporter | evans | Assigned To | dregad | ||
Priority | immediate | Severity | block | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Platform | Web | OS | Windows Seven | OS Version | X64 |
Product Version | 1.3.3 | ||||
Summary | 0022183: Ldap_search error in core/ldap_api.php line 335 | ||||
Description | An error occurs while trying to log in with LDAP "Ldap_search() error in core / ldap_api.php line 335" The LDAP settings are correct because they use the same to connect to Testlink, but they do not work on Mantis. | ||||
Steps To Reproduce | trying to log in with LDAP | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
@atrol Could you pay attention to this case, please? |
|
@evans I don't use LDAP and can't help that much. |
|
I'm surprised you'd get the error at line 335; ldap_search() is a PHP API function and normally in case of problems the function should simply return 'false', which is captured by Mantis and you should find details about the problem in the Mantis log (assuming you've set You may also want to set As it is, there is not enough information to troubleshoot the issue. |
|
I followed all the instructions to connect Mantis to AD, until I created a specific user in AD and even then I can not connect the two for AD authentication. I enabled the logs and the details of the errors, is it possible to analyze the problem more deeply now? Or is more information necessary? I tried several configuration combinations and to no avail. The detail of the error is in the attached image. LOG: ldap_api.php:326 ldap_authenticate_by_username() Binding to LDAP
|
|
Looks like there is a space in What are your PHP error_reporting settings, and also your Mantis $g_display_errors settings ? try with |
|
I enabled the logs and there is no error in PHP. It seems to me that the user I am using to log in to LDAP, is not allowed to search the information of users who will log into the mantis, is this possible? Is there a minimum allowance in AD to be able to perform these searches? |
|
As far as I can tell, what you are facing is a system configuration issue, either with your ldap settings in config_inc.php, or with your AD itself. Considering that I can connect to AD without any problems here, I'm pretty sure it's not a bug in MantisBT. Since you did not provide your actual config settings or the requested debug info (0022183:0055644) , I will resolve this issue; feel free to reopen if you can prove that the error is actually caused by Mantis, and provide step-by-step instructions to reproduce and full config and log info. |
|