Commit cc05a977 authored by Ad Schellevis's avatar Ad Schellevis

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

parent ff8632c2
......@@ -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");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment