in reply to Re: Authen::PAM
in thread Authen::PAM

To reply to my own reply, this will also be a problem:
my $username; my $passwd;
Effectively, that makes it so that every time conv_func is called, $username and $passwd are blank - probably not what you want. The simplest solution is to add the my declarations to the top of the program and then never, ever, ever redeclare them :) Get rid of the line I quoted above from conv_func and get rid of the my keyword in front of $passwd and $username in the if block.

Replies are listed 'Best First'.
Re: Re: Re: Authen::PAM
by michellem (Friar) on Jul 22, 2003 at 16:33 UTC
    Thanks, but now I'm really stumped. I thought this would be a scoping issue, and your suggestion made sense (I'd lost track of the blocks in the larger app). But I declared $username and $passwd early, have confirmed that the right values are getting to the subroutine, and I'm still not authenticating.