Indy 9 | Content | Index | Reference

TOnUserLoginEvent
Unit: IdFTPServer

    TOnUserLoginEvent = procedure (ASender: TIdFTPServerThread; const AUsername, APassword: string; var AAuthenticated: Boolean) of object;

Unit
IdFTPServer
Parameters
AAuthenticated
Indicates if the client is authorized.
APassword
User credentials from the client.
ASender
Client thread for the event notification.
AUsername
User identity from the client.
Description
TOnUserLoginEvent is an event type signalled when an FTP server implementation needs to perform authentication for threaded client connection.

TOnUserLoginEvent is the event type signalled to the TIdFTPServer.OnUserLogin event handler, and allows the FTP server to perform authetication for a user account after receiving the FTP USER and PASS command verbs.

TOnUserLoginEvent is used in the FTP PASS command event handler when the server implementation does not use TIdUserAccounts for account authorization. The event handler can access resources external to the server to perform account authentication, and must set the value in AAuthenticated to indicate that the client has access to the FTP server.

The server implementation must assign a procedure to the event handler to allow responding to the event notification.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.