-
-
# credentials must be Base64 encoded. Two methods :
-
printf ‘username\0username\0password’ | mmencode
-
perl -MMIME::Base64 -e ‘print encode_base64(“username\0username\0password”);’
-
-
-
$status = ”;
-
switch ($a->getStatus()) {
-
case AUTH_WRONG_LOGIN : $status = “Login ou pass invalide”; break;
-
case AUTH_EXPIRED : $status = “Session expirée”; break;
-
case AUTH_IDLED : $status = “Inactivité trop longue”; break;
-
case AUTH_SECURITY_BREACH : $status = “Problème de securite”; break;
-
}
-
}
-
echo $status;
“auth” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum
-