]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r411306 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Wed, 26 Jul 2006 13:31:38 +0000 (13:31 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 26 Jul 2006 13:31:38 +0000 (13:31 +0000)
* Fix a problem with invalid auth error detection for LDAP client SDKs that don't
  support the LDAP_SECURITY_ERROR macro.

PR: 39529
Submitted by: Ray Price <dohrayme yahoo.com>, Josh Fenlason <jfenlason ptc.com>
Reviewed by: bnicholes, wrowe, fielding

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@425731 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/aaa/mod_authnz_ldap.c

diff --git a/CHANGES b/CHANGES
index a10275e7496466e5fd2169dd4962c5971e99a6e0..2cf28306767934547db93687294ceb78d852bdf0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
                                                         -*- coding: utf-8 -*-
 Changes with Apache 2.2.3
 
+  *) mod_authnz_ldap: Fix a problem with invalid auth error detection for LDAP
+     client SDKs that don't support the LDAP_SECURITY_ERROR macro. PR 39529.
+     [Ray Price <dohrayme yahoo.com>, Josh Fenlason <jfenlason ptc.com>]
+
   *) mod_cache: Do not overwrite the Content-Type in the cache, for
      successfully revalidated cached objects. PR 39647. [Ruediger Pluem]
 
diff --git a/STATUS b/STATUS
index b0b4d4a93c07f8b52eca39812d1a376d0e9b9829..c83f048cc6aedd6c5de4543abaacaebd7b27fb64 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -82,13 +82,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
        http://issues.apache.org/bugzilla/attachment.cgi?id=18636
        +1: bnicholes, rpluem, fielding
 
-    * mod_authnz_ldap: Fix a problem with invalid auth error detection 
-       for LDAP client SDKs that don't support LDAP_SECURITY_ERROR 
-       macro. PR#39529
-       http://svn.apache.org/viewvc?view=rev&revision=411306
-       +1: bnicholes, wrowe, fielding
-         wrowe observes; CONST==result is a horrid style convention
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
 
     * Bundled PCRE: backport r381783 from trunk
index 484cf79ff3a649903befc48b101fa3e96417f599..5637d091aa25afd4abc96e72c4db8ffaa645b936 100644 (file)
@@ -413,6 +413,15 @@ start_over:
         return (LDAP_NO_SUCH_OBJECT == result) ? AUTH_USER_NOT_FOUND
 #ifdef LDAP_SECURITY_ERROR
                  : (LDAP_SECURITY_ERROR(result)) ? AUTH_DENIED
+#else
+                                : (LDAP_INAPPROPRIATE_AUTH == result) ? AUTH_DENIED
+                                : (LDAP_INVALID_CREDENTIALS == result) ? AUTH_DENIED
+#ifdef LDAP_INSUFFICIENT_ACCESS
+                 : (LDAP_INSUFFICIENT_ACCESS == result) ? AUTH_DENIED
+#endif
+#ifdef LDAP_INSUFFICIENT_RIGHTS
+                                : (LDAP_INSUFFICIENT_RIGHTS == result) ? AUTH_DENIED
+#endif
 #endif
                  : AUTH_GENERAL_ERROR;
     }