Topic Path: Symbol Reference > Classes > TIdFTP Class > TIdFTP Properties > Username Property
TIdFTP.Username Property

Authentication identity used when logging in to the FTP server.

property Username;

Username is a Published String property in TIdFTP that represents the name of the user used as the authentication identity when logging into the FTP server. 

Values in the Username and Password properties are sent to the FTP server using the FTP commands USER and PASS in the Login method. During authentication, values in the properties are used to determine the effective permissions for FTP client session. 

For FTP clients that require connection to a proxy server, the Username and Password properties found in ProxySettings may be used depending on the proxy server type in ProxySettings

For anonymous file transfers, the Username property should contain the value "anonymous". Use your email address in the Password property when connecting for anonymous file transfers. 

Use Account to provide additional information about the FTP account when required on the FTP server implementation. 

Use ClientInfo to provide additional information about the FTP client, revision, and platform for servers implementing the FTP CLNT extension command.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.