Here's the code for my system call
$auth = system("/path/to/auth/script/phpauth ". escapeshellarg($POST['username']) ." ". escapeshellarg($POST['password']));
Here is a piece of his perl script (called phpauth):
@args = ($authprog, $user, $pass, $group);
$return = system @args;
if ($return == 0 ) {
exit 1;
}
else {
exit 0; #unauthorized
}
As for our server, here are the specs:
OS: Solaris 9
PHP: v.4.3.10