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:
@@ -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_PROTOCOL_VERSION, 3);
|
||||||
ldap_set_option($this->ldapconn, LDAP_OPT_TIMELIMIT, $this->ldaptimeout);
|
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)
|
if (ldap_errno ($this->ldapconn) !== 0)
|
||||||
throw new Exception ("Authentication error in pre-auth LDAP", 500);
|
throw new Exception ("Authentication error in pre-auth LDAP", 500);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user