Discuss this help topic in SecureBlackbox Forum


TElSimpleFTPSServerSessionThread     See also     

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

This event is fired when a client requests authentication.


    event TSBSimpleFTPSServerAuthAttemptEvent OnAuthAttempt;
    delegate void TSBSimpleFTPSServerAuthAttemptEvent(object Sender, string Username, string Password, ref bool Allow);

    Event OnAuthAttempt As TSBSimpleFTPSServerAuthAttemptEvent
    Delegate Sub TSBSimpleFTPSServerAuthAttemptEvent(ByVal Sender As Object, ByVal Username As String, ByVal Password As String, ByRef Allow As Boolean)

    property OnAuthAttempt : TSBSimpleFTPSServerAuthAttemptEvent;
    TSBSimpleFTPSServerAuthAttemptEvent = procedure (Sender: TObject; const Username, Password : string; var Allow : boolean) of object;

    void get_OnAuthAttempt(TSBSimpleFTPSServerAuthAttemptEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAuthAttempt(TSBSimpleFTPSServerAuthAttemptEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSimpleFTPSServerAuthAttemptEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUsername, int32_t szUsername, const char * pcPassword, int32_t szPassword, int8_t &Allow);

    TSBSimpleFTPSServerAuthAttemptEvent|callable|NULL get_OnAuthAttempt()
    void set_OnAuthAttempt(TSBSimpleFTPSServerAuthAttemptEvent|callable|NULL $Value)
    callable TSBSimpleFTPSServerAuthAttemptEvent(TObject $Sender, string $Username, string $Password, bool &$Allow)


  • Username - username (login) sent by the client
  • Password - password sent by the client
  • Allow - set this parameter to True to allow authentication
  • pcUsername - username (login) sent by the client
  • szUsername - the length of pcUsername.
  • pcPassword - password sent by the client
  • szPassword - the length of pcPassword.


    This event is fired by TElSimpleFTPSServer when an authentication request is received. Use parameter Allow to allow/disallow authentication.

See also:     AllowAnonymous    

Discuss this help topic in SecureBlackbox Forum