From cd59ddf8d455d93fa5a960064bb9a30485f80ecb Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 3 Mar 2016 09:27:22 +0000 Subject: [PATCH] authldap : hide the error messages from ldap git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2619 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authldap.php b/authldap.php index 36eb9bd..4dd09aa 100644 --- a/authldap.php +++ b/authldap.php @@ -48,7 +48,7 @@ class authldap extends auth ldap_set_option ($this->ldapconn, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($this->ldapconn, LDAP_OPT_TIMELIMIT, $this->ldaptimeout); - $ldapbind = ldap_bind ($this->ldapconn, $this->ldapauth, $this->ldappwd); + $ldapbind = @ldap_bind ($this->ldapconn, $this->ldapauth, $this->ldappwd); if (ldap_errno ($this->ldapconn) !== 0) throw new Exception ("Authentication error in pre-auth LDAP", 500); }