Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.GetLoginPassword Method (String)

Constructs the authentication credentials for the FTP session in the Login method.

Pascal
function GetLoginPassword(
    const APrompt: String
): String; overload;
Parameters 
Description 
APrompt 
Challenge for the One-Time-Password system. 

String - The hashed OTP Response using the Password for the FTP client.

GetLoginPassword is an overloaded String function used to construct the authentication credentials for the FTP session in the Login method. 

GetLoginPassword provides a mechanism for transparently supporting the One-Time-Password (OTP) system for FTP servers that implement the capability in the response for the FTP USER command. If the response includes a line that begins with the characters "otp-", the hashing algorithm and the challenge are read from the FTP response. The hashing algorithm is used to generate an OTP response using the OTP Challenge and the value in the Password property. 

If an OTP challenge is not found in the response to the FTP USER command, the value in the Password property is used for the authentication credentials in the Login method.

GetLoginPassword 

Login

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.