Indy 9 | Content | Index | Reference

TIdDICTAuthEvent
Unit: IdDICTServer
Specifies the event type for the DICT AUTH and SASLAUTH commands.

    TIdDICTAuthEvent = procedure ( Thread: TIdPeerThread; Username, authstring : String ) of object;

Unit
IdDICTServer
Parameters
AuthString
User authentication information.
Thread
Execution thread performing the command.
Username
User name to authenticate.
Description
TIdDICTAuthEvent specifies the event type for the DICT AUTH and SASLAUTH commands, and is used by the TIdDICTServer OnCommandAuth and OnCommandSASLAuth event handlers to perform user authentication.

Username contains the user name to be authenticated.

For the DICT AUTH command, AuthString will contain an APOP-style MD5 Checksum as described in RFC 1939.

For the DICT SASLAUTH command, AuthString will contain the BASE64-encoded initial SASL response as described in RFC 2045. All responses to the SASLAUTH server challenge should use the SASLRESP command and a BASE64-encoded parameter.

Authentication is an optional server capability. The AUTH and SASLAUTH commands may be implemented by a DICT server.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.