View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0026629 | mantisbt | ldap | public | 2020-01-27 08:38 | 2020-03-15 15:23 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Target Version | 2.23.1 | Fixed in Version | 2.23.1 | ||
Summary | 0026629: LDAP API throws PHP warning when ldap_connect() fails | ||||
Description | When ldap_connect() fails (e.g. due to invalid server specification set in $g_ldap_server), the following warnings are triggered:
This is because the function returns | ||||
Tags | No tags attached. | ||||
MantisBT: master-2.23 212d1834 2020-01-27 02:26 Details Diff |
Fix PHP warning when ldap_connect_bind() fails ldap_errno() / ldap_error() expect a resource, but the link identifier is `false`. - ldap_cache_user_data(): replace ldap_log_error() by a generic log_event() call - ldap_authenticate_by_username(): remove the whole if statement, which is useless as ldap_connect_bind() will throw an error that will halt program execution if the connection fails. Fixes 0026629 |
Affected Issues 0026629 |
|
mod - core/ldap_api.php | Diff File |