Re: Authen::Smb
Eric J. Schwertfeger (ejs@bfd.com)
Tue, 29 Feb 2000 09:27:38 -0800 (PST)
On Tue, 29 Feb 2000, Jean Henchey wrote:
> I'm trying to use the Authen::Smb module for authentication in a CGI.
> It seems that no matter what I supply for myUser or myPassword,
> $authResult is always NO_ERROR. Has anyone tried using this module?
> Any idea why it's misbehaving?
>
> my $authResult = Authen::Smb::authen('myUser', 'myPassword', myPDC',
> 'myBDC', 'myNTDomain');
I use that module with no problems, aside from the fact that a null user
and null password returns NO_ERROR. (yeah, I know this is double negation,
I'll fix that some day).
if($encpw eq 'SMB')
{
$res=!Authen::Smb::authen($user,
$passwd,
'BFDLV1A',
'BFDLV2',
'BFDPROD');
if(!$res)
{
warn("SMB auth failed for $user,$passwd\n");
}
}