Hi, I've added a small bit of code to the main loop of wbinfo_group.pl to
be able to verify the user membership to multiple groups at once, the code
is pretty strightforward.
Maybe you want to distribute it with the next squid update.
ps. i'm sending this here because i'm unable to send it to Jerry Murdock.
#
# OLD Main loop
#
while (<STDIN>) {
chop;
&debug ("Got $_ from squid");
($user, $group) = &shellwords;
$ans = &check($user, $group);
&debug ("Sending $ans to squid");
print "$ans\n";
}
#
# NEW Main loop
#
while (<STDIN>) {
chop;
&debug ("Got $_ from squid");
@group = &shellwords;
$ans="ERR";
for($i=1;$i<@group;$i++){
$ans = &check($group[0], $group[$i]);
last if ( $ans ne "ERR" );
}
&debug ("Sending $ans to squid");
print "$ans\n";
}
best regards
Marco Puggelli
Autostrade // per l'Italia S.p.A.
Hewlett & Packard Consultant
Received on Fri Jan 12 2007 - 09:17:59 MST
This archive was generated by hypermail pre-2.1.9 : Thu Feb 01 2007 - 12:00:02 MST