From fa2647a385489bbd2b1abe76a48a42a3ffe9054f Thu, 29 Dec 2011 16:23:54 +0200 From: Robert Munteanu Date: Thu, 29 Dec 2011 16:22:46 +0200 Subject: [PATCH] ldap_api.php: log last LDAP error if ldap_bind fails Affects bug #13550: c cedilla in active directory password diff --git a/core/ldap_api.php b/core/ldap_api.php index 4d3cc2f..afa2516 100644 --- a/core/ldap_api.php +++ b/core/ldap_api.php @@ -383,6 +383,8 @@ if ( @ldap_bind( $t_ds, $t_dn, $p_password ) ) { $t_authenticated = true; break; + } else { + ldap_log_error( $t_ds ); } } } else {