aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@FreeBSD.org>2025-09-29 16:26:54 +0000
committerJose Luis Duran <jlduran@FreeBSD.org>2025-09-29 16:26:54 +0000
commit307929b211e07f91260105211b57678e906327af (patch)
tree88562b1f9c4f479d42560875ebddd5502a3425f9
parent0532cd2d771372d3266b97aebf4043d5b31b64bd (diff)
ftpd: blocklist: Add an extra probe
Add a blocklist probe when user access is denied. Reviewed by: emaste Approved by: emaste (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52747
-rw-r--r--libexec/ftpd/ftpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 751d77b218b7..3861036a5a8a 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1043,6 +1043,7 @@ user(char *name)
(checkuser(_PATH_FTPUSERS, name, 1, NULL, &ecode) ||
(ecode != 0 && ecode != ENOENT))) {
reply(530, "User %s access denied.", name);
+ BLACKLIST_NOTIFY(BLACKLIST_AUTH_FAIL, STDIN_FILENO, "Access denied");
if (logging)
syslog(LOG_NOTICE,
"FTP LOGIN REFUSED FROM %s, %s",