MantisBT: master-2.23 212d1834

Author Committer Branch Timestamp Parent
dregad dregad master-2.23 2020-01-27 02:26 master-2.23 f91d60a2
Affected Issues  0026629: LDAP API throws PHP warning when ldap_connect() fails
Changeset

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

mod - core/ldap_api.php Diff File