in reply to Authen::PAM
This declares $passwd as scoped to the module. Later on, where you have this:my $passwd = "bar";
in conv_func(), $passwd is just grabbing the value you declared earlier. In your web snippet, however, $passwd is scoped to the if block and conv_func doesn't have access to it (at least, it doesn't have access to the right one, if you predeclared $passwd). This is my best guess without seeing more of the code and having no idea how Authen::PAM works. If you're trying to authenticate against that $passwd, you'll need to find another way to pass it to conv_func.$ans = $passwd;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Authen::PAM
by Kageneko (Scribe) on Jul 21, 2003 at 21:50 UTC | |
by michellem (Friar) on Jul 22, 2003 at 16:33 UTC |