Internet Direct (Indy) Version 9.0.2 Beta
TIdTelnetServer.DoAuthenticate
Implements user authentication for a connection.

function DoAuthenticate(AThread: TIdPeerThread; const AUsername: string; const APassword: string): boolean; virtual;
Parameters
AThread: TIdPeerThread
The connection to authenticate.

const AUsername: string
The authentication user name.

const APassword: string
THe authentication password.

Description
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.