(pam) for non local users trigger different exit code (user doesn't exist)

This commit is contained in:
Ad Schellevis 2016-12-18 17:47:01 +01:00
parent ff8632c2c8
commit cc05a97726

View File

@ -83,6 +83,9 @@ if (!empty($auth_data['user']) && isset($auth_data['password'])) {
syslog(LOG_NOTICE, "user '".$auth_data['user']."' authenticated successfully (using fallback)\n");
$exit_status = 0;
} else {
if (getUserEntry($auth_data['user']) === false) {
$exit_status = 2;
}
syslog(LOG_WARNING, "user '".$auth_data['user']."' could not authenticate.\n");
}
}