Skip to content
Snippets Groups Projects
Commit f1998492 authored by Olav Morken's avatar Olav Morken
Browse files

LDAP: Assume that LDAP_NO_SUCH_OBJECT is an error due to invalid username/password.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1985 44740490-163a-0410-bde0-09ae8108e29a
parent 79b8fc58
No related branches found
No related tags found
No related merge requests found
...@@ -342,6 +342,7 @@ class SimpleSAML_Auth_LDAP { ...@@ -342,6 +342,7 @@ class SimpleSAML_Auth_LDAP {
* LDAP_INVALID_CREDENTIALS * LDAP_INVALID_CREDENTIALS
* LDAP_INSUFFICIENT_ACCESS */ * LDAP_INSUFFICIENT_ACCESS */
switch(ldap_errno($this->ldap)) { switch(ldap_errno($this->ldap)) {
case 32: /* LDAP_NO_SUCH_OBJECT */
case 47: /* LDAP_X_PROXY_AUTHZ_FAILURE */ case 47: /* LDAP_X_PROXY_AUTHZ_FAILURE */
case 48: /* LDAP_INAPPROPRIATE_AUTH */ case 48: /* LDAP_INAPPROPRIATE_AUTH */
case 49: /* LDAP_INVALID_CREDENTIALS */ case 49: /* LDAP_INVALID_CREDENTIALS */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment