[squid-users] Re: squid active directory integration

From: Sandeep <sandeep1.chowdhury_at_gmail.com>
Date: Wed, 4 Sep 2013 08:15:57 -0700 (PDT)

Hi David,

                You can try the below steps:

                1. Assume there is a user "bob" and he is member of "Admin Users" group.
Execute the following command in terminal:

                # echo "bob Admin%20Users" | /usr/lib64/squid/wbinfo_group.pl

                And if you get "OK" as result that means you can go ahead.

                2. Take a copy of "/usr/lib64/squid/wbinfo_group.pl" file and open the
original file in a editor (vi or nano). Search for "Main loop" section and
edit the for loop as follows:

                 foreach $group (@groups) {
                $group =~ s/%([0-9a-fA-F][0-9a-fA-F])/pack("c",hex($1))/eg;
                
                # Add this line
                $group =~ s/%20/ /;

                $ans = &check($user, $group);
                last if $ans eq "OK";
                }

                You have to add one line, which is shown above under the commented
section.

                3. In you squid configuration replace the space in group name with "%20"
to make it look as Admin%20Users.

                4. Restart the squid.

                Try these steps and let us know the result.

Best Regards
Sandeep

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/squid-active-directory-integration-tp4661575p4661973.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Sep 04 2013 - 15:16:40 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 04 2013 - 12:00:05 MDT