Log username with password failure.
This has proved useful in real life installations.
This commit is contained in:
parent
aa510d6741
commit
5bd9ff610a
@ -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