Mailinglisten-Archive |
Moin,
ich nutze für ein CMS einen Login über pwauth, der also auf die
Unix-Accounts zurückgreift. MediaWiki lieferte mri folgenden Code:
$handle = popen('/usr/local/bin/pwauth', 'w');
if ($handle === FALSE) {
die("Error opening pipe to pwauth");
return false;
}
if (fwrite($handle, "$user\n$password\n") === FALSE) {
die("Error writing to pwauth pipe");
return false;
}
# Is the password valid?
$result = pclose( $handle );
if ( $result == 0 ) // password valid
Nun frage ich mich aber, auf was für Sonderfälle ich mich in Sachen Escaping
einrichten muss. Kann man popen oder pwauth irgendwie manipulieren?
Grüße
Nico
php::bar PHP Wiki - Listenarchive