Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnPasswordAuth

TElFTPSServer     See also     


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


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

Declaration

[C#]
    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)

[Java]
    TSBFTPSServerPasswordAuthEvent getOnPasswordAuth();
    void setOnPasswordAuth(TSBFTPSServerPasswordAuthEvent Value);
    TSBFTPSServerPasswordAuthEvent.Callback OnPasswordAuth = new TSBFTPSServerPasswordAuthEvent.Callback() {
        public void TSBFTPSServerPasswordAuthEventCallback(TObject Sender, String Login, String Password, TSBBoolean 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