mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(pam) for non local users trigger different exit code (user doesn't exist)
This commit is contained in:
parent
ff8632c2c8
commit
cc05a97726
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user