[ http://issues.apache.org/jira/browse/FTPSERVER-52?page=all ]
Dave Roberts updated FTPSERVER-52:
----------------------------------
Attachment: Apache FTPServer Core.patch
I've attached a patch that addresses this issue in-so-far as any login failures
can now be noted through the StatisticsObserver.
The patch does a number of things: provides a method for resetting the
statistic information, keeps a count of failed login attempts, and uses the
observer to notify of a failed login. The observer is passed the InetAddress
so that the observer implementation can log the IP if required.
> Add onLoginFail() to Ftplet interface
> -------------------------------------
>
> Key: FTPSERVER-52
> URL: http://issues.apache.org/jira/browse/FTPSERVER-52
> Project: FtpServer
> Issue Type: Improvement
> Reporter: Clinton Foster
> Priority: Minor
> Attachments: Apache FTPServer Core.patch
>
>
> Particularly in cases where the FTP server is embedded in another
> application, it is important to be able to determine the IP address of the
> remote client when authentication fails. One possibility would be to provide
> access to the remote address from UserManager.authenticate(). (This might be
> useful for other reasons as well.) A more generic approach that would not
> require a custom UserManager implementation would be to add an onLoginFail()
> method to the Ftplet interface. I think both enhancements would be useful,
> although if only one or the other could be done I would favor adding
> Ftplet.onLoginFail().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira