Internet Direct (Indy)
Home
PreviousUpNext
TIdTelnetServer.DoAuthenticate Method

Implements user authentication for a connection.

Pascal
function DoAuthenticate(
    AContext: TIdContext; 
    const AUsername: string; 
    const APassword: string
): boolean; virtual;
Parameters 
Description 
AContext 
The peer connection to authenticate.
 
AUsername 
The authentication user name.
 
APassword 
THe authentication password. 

DoAuthenticate is a Boolean function used to implement authentication for a TELNET connection. 

DoAuthenticate requires a procedure assigned to the OnAuthentication event handler, or an exception will be raised. 

DoAuthenticate triggers the OnAuthentication event using the specified parameters to perform authentication processing. 

DoAuthenticate returns True when authentication is successful, or False when authentication has failed. 

DoAuthenticate is called from DoConnect to perform authentication for a new TELNET connection.

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.