Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnAuthPassword

TElSSHServer     See also     


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


This event is fired when the client requested password authentication.

Declaration

[C#]
    event TSSHAuthPasswordEvent OnAuthPassword;
    delegate void TSSHAuthPasswordEvent(Object Sender, string Username, string Password, ref bool Accept, ref bool ForceChangePassword);

[VB.NET]
    Event OnAuthPassword As TSSHAuthPasswordEvent
    Delegate Sub TSSHAuthPasswordEvent(ByVal Sender As Object, ByVal Username As String, ByVal Password As String, ByRef Accept As Boolean, ByRef ForceChangePassword As Boolean)

[Pascal]
    property OnAuthPassword: TSSHAuthPasswordEvent;
    
    TSSHAuthPasswordEvent = procedure(Sender : TObject; const Username : string; const Password : string; var Accept : boolean; var ForceChangePassword : boolean) of object;

[C++]
    void get_OnAuthPassword(TSSHAuthPasswordEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAuthPassword(TSSHAuthPasswordEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHAuthPasswordEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUsername, int32_t szUsername, const char * pcPassword, int32_t szPassword, int8_t &Accept, int8_t &ForceChangePassword);

[PHP]
    TSSHAuthPasswordEvent|callable|NULL get_OnAuthPassword()
    void set_OnAuthPassword(TSSHAuthPasswordEvent|callable|NULL $Value)
    callable TSSHAuthPasswordEvent(TObject $Sender, string $Username, string $Password, bool &$Accept, bool &$ForceChangePassword)

[Java]
    TSSHAuthPasswordEvent getOnAuthPassword();
    void setOnAuthPassword(TSSHAuthPasswordEvent Value);
    TSSHAuthPasswordEvent.Callback OnAuthPassword = new TSSHAuthPasswordEvent.Callback() {
        public void TSSHAuthPasswordEventCallback(TObject arg0, String arg1, String arg2, TSSHAuthPasswordEventParams arg3) {
            //...
        }
    }

Parameters

  • Username - the name of the client being authenticated
  • Password - string that the client gives as a password
  • Accept - set this parameter to True if the password is correct.
  • ForceChangePassword - set this parameter to True if you want the client to change the password
  • pcUsername - the name of the client being authenticated
  • szUsername - the length of pcUsername.
  • pcPassword - string that the client gives as a password
  • szPassword - the length of pcPassword.

Description

    Provides a password for checking.

See also:     OnAuthAttempt     OnAuthPasswordChange    

Discuss this help topic in SecureBlackbox Forum