diff options
author | Sophie Herold <sophie@hemio.de> | 2019-11-28 15:27:04 +0100 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2019-11-28 15:27:04 +0100 |
commit | 7fbb8592fb75dac96b31a26de7528917060eb589 (patch) | |
tree | c0e6605d9f0217b3d792d30e8c5deaaa65b3702c /modules/pam_unix/pam_unix_passwd.c | |
parent | e7abfc94824b5d0f9752ebcfc303e128060609a3 (diff) | |
download | pam-7fbb8592fb75dac96b31a26de7528917060eb589.tar.gz pam-7fbb8592fb75dac96b31a26de7528917060eb589.tar.bz2 pam-7fbb8592fb75dac96b31a26de7528917060eb589.zip |
Lower "bad username" log priority (#154)
* modules/pam_unix/pam_unix_auth.c: Use LOG_NOTICE instead of LOG_ERR.
* modules/pam_unix/pam_unix_passwd.c: Likewise.
* modules/pam_umask/pam_umask.c: Likewise.
Diffstat (limited to 'modules/pam_unix/pam_unix_passwd.c')
-rw-r--r-- | modules/pam_unix/pam_unix_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index 87db7cf1..99a4c40f 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -632,7 +632,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv) * allow them. */ if (user == NULL || user[0] == '-' || user[0] == '+') { - pam_syslog(pamh, LOG_ERR, "bad username [%s]", user); + pam_syslog(pamh, LOG_NOTICE, "bad username [%s]", user); return PAM_USER_UNKNOWN; } if (retval == PAM_SUCCESS && on(UNIX_DEBUG, ctrl)) |