Hi, I'd like to have an FTPlet that controls the login of users programmatically. That is, having a method that looks something like (with any complex custom processing in isValidLogin(...)):
public FtpletResult tryLogin(FtpSession sess, FtpRequest req) { String user = [ get user name from sess or req ]; String pwd = [ get user name from sess or req ]; if ( isValidLogin(user, pwd) ) { [ tell FTP Server that login is OK ] } else { [ tell FTP Server that login is NOT OK ] } } By using beforeCommand(...) and afterCommand(...) I can see they are properly called on my FTPlet for USER and PASS commands. But I just don't know what value to return from what method (or what method to call on the session or request objects) to tell FTP Server the outcome of the authentication taken care by my application. Any idea? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/