authldap : hide the error messages from ldap

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2619 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-03-03 09:27:22 +00:00
parent 60c80c8351
commit cd59ddf8d4

View File

@@ -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);
}