NTLM

Tive problemas com NTLM no que toca o arquivo Pearl utilizado pelo SQUID, utilizando Debian 4.0r3.

Não conseguia autenticar os grupos no squid, apesar do wbinfo vir corretamente.

Para solucionar o problema tive que alterar o arquivo wbinfo_group.pl

Verifique o aquivo

sub check {
local($user, $group) = @_;
$groupSID = `wbinfo -n “$group” | cut -d” ” -f1`;
chop  $groupSID;
$groupGID = `wbinfo -Y “$groupSID”`;
chop $groupGID;
&debug( “User:  -$user-\nGroup: -$group-\nSID:   -$groupSID-\nGID:   -$groupGID-“);
$user=~ tr/\\/+/s;   # ———> Tive que incluir esta linha!
return ‘OK’ if(`wbinfo -r \Q$user\E` =~ /^$groupGID$/m);
return ‘ERR’;
}

Pronto, é só rodar.

Abraços.

About fcacomputers

Just du it
This entry was posted in LINUX. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s