Internet Direct (Indy) Version 9.0.1 Beta
TIdFTPServer.UserAccounts
Implements a container for user accounts managed by the FTP server.

property UserAccounts: TIdUserManager;
Description
UserAccounts is a TIdUserAccounts property that represents the container used for managing TIdUserAccount instances for valid accounts on the FTP server. By default, UserAccounts are not used in the FTP server implementation. Use OnUserLogin to determine when the account has been Authenticated for access to the FTP server.

An application can create a TIdUserAccounts class instance for the property to enable use of UserAccounts and its AuthenticateUser, Accounts, and OnAuthentication properties and methods. The application must also free the resources allocated to UserAccount prior to destruction of the object instance.

UserAccounts is used by the command reply handlers for the FTP USER and PASS commands to perform authorization using the user name and password values from the corresponding CommandHandlers. UserAccounts should use its OnAuthenticate event handler to insure that valid accounts are added to the collection maintained by the component. A user account is accessed using the ItemsByUserName property, and provides values that indicate the user name, real name, password, and user-defined attributes associated with the account used by the threaded client connection.