Query regarding PHP
Stefan Heinrichsen
gelbemauer at gmx.de
Wed Nov 14 14:00:45 UTC 2007
Hello,
On Mittwoch, 14. November 2007, Varun Vijayvargiya wrote:
> I am trying to call a PAM code from within a PHP scipt and also
> passing 2 parameters like this
>
> $args=$uname." ".$upass;
>
> $command="./pampgm.o ".escapeshellcmd($args);
More a PHP question than a pam-question
escapeshellcmd will even escape the " " between $uname and $upass.
So this should be right:
$command="./pampgm.o ".escapeshellcmd($uname)." ".escapeshellcmd($upass);
Stefan
> passthru($command);
>
> $uname and $upass are two variables that were entered into a HTML form
>
> but the code is not executing correctly
More information about the Pam-list
mailing list