]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
The user baseDN is ignored for ext_ldap_group_acl helper
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 9 Dec 2015 16:32:28 +0000 (18:32 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 9 Dec 2015 16:32:28 +0000 (18:32 +0200)
The user baseDN provided with -B argument is always ignored, which leads to
problems if user baseDN and group baseDN are not the same.

The bug introduced with the r14382 patch.

helpers/external_acl/LDAP_group/ext_ldap_group_acl.cc

index b83c074d51b1db7e61b2a1f34a55fe0ab6e0f5a2..1c48f8e3207508bb86b74fb37887c1b0fced2411 100644 (file)
@@ -682,7 +682,7 @@ build_searchbase(const char *extension_dn, const char *base_dn)
     std::stringstream searchBaseStream;
     if (extension_dn && *extension_dn)
         searchBaseStream << extension_dn << ",";
-    searchBaseStream << basedn;
+    searchBaseStream << base_dn;
     return searchBaseStream.str();
 }