Implements user authentication for a connection.
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.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|