|
Home > Archive > Squid > April 2004 > Re(2): [squid-users] wb_group issues
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re(2): [squid-users] wb_group issues
|
|
| Roman Rathler 2004-04-29, 6:55 pm |
| Begin forwarded Message from Roman Rathler,
Thu, 29 Apr 2004 11:06:01 +0200 (METDST):
Hi,
in the meanwhile i got it running using the wbinfo_group.pl helper.
There is a bug in the PERL script that comes with the fedora package
squid-2.5.STABLE3-1.fc1 when it tries converting groupSID to groupGID...
the result of $groupSID (wbinfo -n groupname) is:
S-1-5-21-515967xxx-1078145xxx-1708537xxx-1236 Domain Group (2)
the PERL script expects it just to be the SID -> here is my workaround
for the PERL script (i do not program PERL normally so this code could
for shure look nicer):
sub check {
local($user, $group) = @_;
$groupSID = `wbinfo -n "$group"`;
chop $groupSID;
chop $groupGID;
&debug( "User: -$user-\nGroup: -$group-\nSID: -$groupSID-\nGID:
-$groupGID-");
return 'OK' if(`wbinfo -r \Q$user\E` =~ /^$groupGID$/m);
return 'ERR';
}
don't know wheter this was already fixed in the squid distribution...
best regards,
roman
Henrik Nordstrom <hno@squid-cache.org> writes on
Wed, 28 Apr 2004 17:39:11 +0200 (METDST):
[vbcol=seagreen]
> On Wed, 28 Apr 2004, Roman Rathler wrote:
>
>
packages
[vbcol=seagreen]
fine
[vbcol=seagreen]
some
[vbcol=seagreen]
>
> wb_group is only valid for use with Samba-2.2.X. For Samba-3 you need
> to
> use the wbinfo_group helper.
>
> Regards
> Henrik
>
________________________________________
___________
Stay Tuned For PocketBeats
http://pocketbeats.net/
| |
| Henrik Nordstrom 2004-04-29, 6:55 pm |
| On Thu, 29 Apr 2004, Roman Rathler wrote:
> in the meanwhile i got it running using the wbinfo_group.pl helper. There is a bug in the PERL script that comes with the fedora package
> squid-2.5.STABLE3-1.fc1 when it tries converting groupSID to groupGID...
As far as I know this is fixed in 2.5.STABLE5.
http://www.squid-cache.org/Versions...E4-wbinfo_group
Regards
Henrik
|
|
|
|
|