Log username with password failure.
This has proved useful in real life installations.
This commit is contained in:
parent
3729f7b2f6
commit
861a97e013
@ -168,7 +168,7 @@ void doit(struct sockaddr_in *sinp)
|
||||
printf("Password: "); fflush(stdout);
|
||||
errno = 0;
|
||||
if (readline(passwd, sizeof passwd, 1) < 0) {
|
||||
syslog(LOG_WARNING, "passwd read: %m");
|
||||
syslog(LOG_WARNING, "passwd for '%s' read: %m", user);
|
||||
_exit(1);
|
||||
}
|
||||
if (pwdok) {
|
||||
|
Loading…
Reference in New Issue
Block a user