Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnAuthHostbased

TElSSHServer     See also     


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


This event is fired when the client requested hostbased-authentication.

Declaration

[C#/Java]
    event TSSHAuthHostbasedEvent OnAuthHostbased;
    delegate void TSSHAuthHostbasedEvent(Object Sender, string Username, string ClientUsername, string ClientHostname, TElSSHKey Key, ref bool Accept);

[VB.NET]
    Event OnAuthHostbased As TSSHAuthHostbasedEvent
    Delegate Sub TSSHAuthHostbasedEvent(ByVal Sender As Object, ByVal Username As String, ByVal ClientUsername As String, ByVal ClientHostname As String, ByVal Key As TElSSHKey, ByRef Accept As Boolean)

[Pascal]
    property OnAuthHostbased: TSSHAuthHostbasedEvent;
    TSSHAuthHostbasedEvent = procedure(Sender : TObject; const Username : string; const ClientUsername : string; const ClientHostname : string; Key: TElSSHKey; var Accept : boolean) of object;

[C++]
    void get_OnAuthHostbased(TSSHAuthHostbasedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAuthHostbased(TSSHAuthHostbasedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHAuthHostbasedEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUsername, int32_t szUsername, const char * pcClientUsername, int32_t szClientUsername, const char * pcClientHostname, int32_t szClientHostname, TElSSHKeyHandle Key, int8_t &Accept);

[PHP]
    TSSHAuthHostbasedEvent|callable|NULL get_OnAuthHostbased()
    void set_OnAuthHostbased(TSSHAuthHostbasedEvent|callable|NULL $Value)
    callable TSSHAuthHostbasedEvent(TObject $Sender, string $Username, string $ClientUsername, string $ClientHostname, TElSSHKey $Key, bool &$Accept)

Parameters

  • Username - the name of the client being authenticated
  • ClientUsername - the name of the client at the ClientHostname host
  • ClientHostname - the name of some host
  • Key - the client's public key
  • Accept - set this parameter to True to allow authentication.
  • pcUsername - the name of the client being authenticated
  • szUsername - the length of pcUsername.
  • pcClientUsername - the name of the client at the ClientHostname host
  • szClientUsername - the length of pcClientUsername.
  • pcClientHostname - the name of some host
  • szClientHostname - the length of pcClientHostname.

Description

    Hostbased-authentication is based on "RHOSTS" authentication that is usual for Unix, using key, name of other host and client name on that host. This event gives you the key to check. The handler has to check that the key corresponds to the user Username who has account ClientUsername on ClientHostname server.

See also:     OnAuthPassword     OnAuthPublicKey    

Discuss this help topic in SecureBlackbox Forum