httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Pavlovich <matt.pavlov...@broadwing.com>
Subject [users@httpd] [Patch] Update mod_auth_ldap to support MS AD 2003
Date Wed, 15 Mar 2006 18:01:23 GMT
This slight modification makes mod_auth_ldap work with AD 2003, where it 
returns a successful result set, and an LDAP_OPERATIONS_ERROR.  I do not 
have the definitive reason why AD 2k3 is returning the error, but I 
believe it has to do with the security access of the account performing 
the search.  I think it may not have access to all branches of the tree 
requested to search, so AD 2k3 is returning an LDAP_OPERATIONS_ERROR in 
addition to the search results.

modules/experimental/util_ldap.c

--- util_ldap.c.orig    2006-03-13 15:32:37.000000000 -0600
+++ util_ldap.c 2006-03-13 15:33:03.000000000 -0600
@@ -832,7 +832,7 @@
     }

     /* if there is an error (including LDAP_NO_SUCH_OBJECT) return now */
-    if (result != LDAP_SUCCESS) {
+    if (result != LDAP_SUCCESS && result != LDAP_OPERATIONS_ERROR) {
         ldc->reason = "ldap_search_ext_s() for user failed";
         return result;
     }



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message