]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: isaac <isaacarsenal@gmail.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 21 Jul 2010 06:18:25 +0000 (00:18 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Wed, 21 Jul 2010 06:18:25 +0000 (00:18 -0600)
Bug 2985: search scope for digest_ldap_auth didn't work

helpers/digest_auth/LDAP/ldap_backend.cc

index d305c01a8f92c50f9763d73a04f6b7c6f7dd180c..25abcb16ea411684372f96f71c74d6fbec9666bb 100644 (file)
@@ -238,11 +238,11 @@ retrysrch:
                 }
             }
         } else if (userdnattr) {
-            snprintf(searchbase, 8192, "%s=%s, %s", userdnattr, login, userbasedn);
+            snprintf(filter,8192,"%s=%s",userdnattr,login);
 
 retrydnattr:
-            debug("searchbase '%s'\n", searchbase);
-            rc = ldap_search_s(ld, searchbase, searchscope, NULL, NULL, 0, &res);
+            debug("searchbase '%s'\n", userbasedn);
+            rc = ldap_search_s(ld, userbasedn, searchscope, filter, NULL, 0, &res);
         }
         if (rc == LDAP_SUCCESS) {
             entry = ldap_first_entry(ld, res);