Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnPasswordAuth

TElFTPSServer     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when a command has been processed by the server.

Declaration

[C#/Java]
    event TSBFTPSServerPasswordAuthEvent OnPasswordAuth;
    delegate void TSBFTPSServerPasswordAuthEvent(Object Sender, string Login, string Password, ref bool Allow);

[VB.NET]
    Event OnPasswordAuth As TSBFTPSServerPasswordAuthEvent
    Delegate Sub TSBFTPSServerPasswordAuthEvent(ByVal Sender As Object, ByVal Login As String, ByVal Password As String, ByRef Allow As Boolean)

[Pascal]
    property OnPasswordAuth : TSBFTPSServerPasswordAuthEvent;
    TSBFTPSServerPasswordAuthEvent = procedure (Sender: TObject; const Login, Password : string; var Allow) of object;

[C++]
    void get_OnPasswordAuth(TSBFTPSServerPasswordAuthEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPasswordAuth(TSBFTPSServerPasswordAuthEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerPasswordAuthEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcLogin, int32_t szLogin, const char * pcPassword, int32_t szPassword, int8_t &Allow);

[PHP]
    TSBFTPSServerPasswordAuthEvent|callable|NULL get_OnPasswordAuth()
    void set_OnPasswordAuth(TSBFTPSServerPasswordAuthEvent|callable|NULL $Value)
    callable TSBFTPSServerPasswordAuthEvent(TObject $Sender, string $Login, string $Password, bool &$Allow)

Parameters

  • Login - contains the login sent by the client.
  • Password - contains the password sent by the client.
  • Allow - specifies whether to allow authentication.
  • pcLogin - contains the login sent by the client.
  • szLogin - the length of pcLogin.
  • pcPassword - contains the password sent by the client.
  • szPassword - the length of pcPassword.

Description

    This event is fired by TElFTPSServer when it has received a username and password from a client. Set Allow parameter to True to allow authentication.

See also:     OnUsernameReceived    

Discuss this help topic in SecureBlackbox Forum