[users@httpd] [Patch] Update mod_auth_ldap to support MS AD 2003

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux