Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.Account Property

Account information for the remote FTP Server.

Pascal
property Account: string;

Account is a String property that represents the account information to use for the connection to the remote FTP server. Account is used to provide additional login information for the FTP Server, in addition to the login information sent by the Login and Connect methods. 

Account can be used when the FTP response codes 332 or 532 are received in a reply to an FTP commands. 

Historically, Account is a Telnet string identifying the user's account. The command is not necessarily related to the USER command, as some sites may require an account for login and others only for specific access, such as storing files. 

If account information is not required for Login, the response code is 230; and if the account information is needed for a command issued later in the dialogue, the server should return a 332 or 532 reply depending on whether it stores (pending receipt of the Account command) or discards the command, respectively. 

Account is used as an argument when sending the FTP ACCT command for FTP servers that support the feature. 

Use the OnNeedAccount evenmt handler to derive a value for the Account property using session or context information.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.