IP*Works! Auth V9 - Online Help
IP*Works! Auth V9
Questions / Feedback?

AuthMode Property

The authentication method to be used the component when calling Authenticate .

Syntax

public int getAuthMode();
public void setAuthMode(int authMode);

Enumerated values: public final static int amNone = 0; public final static int amMultiFactor = 1; public final static int amPassword = 2; public final static int amPublicKey = 3; public final static int amKeyboardInteractive = 4; public final static int amGSSAPIWithMic = 5; public final static int amCustom = 6;

Remarks

The SSH Authentication specification (RFC 4252) specifies multiple methods by which a user can be authenticated by an SSH server. When a call is made to Authenticate, the bean will connect to the SSH server and establish the security layer. After the connection has been secured, the client will send an authentication request to the SSHHost containing the User. The server will respond containing a list of methods by which that user may be authenticated.

The bean will attempt to authenticate the user by one of those methods based on the value of AuthMode and other property values supplied by the user. Currently, the bean supports the following authentication methods:

amNone (0)No authentication will be performed. The current User value is ignored, and the connection will be logged in as anonymous.
amMultiFactor (1)This allows the bean to attempt a multi-step authentication process. The bean will send authentication data to the server based on the list of methods allowed for the current user and the authentication property values supplied. The bean will continue to send authentication data until the server acknowledges authentication success. If the server rejects an authentication step, the bean throws an exception.
amPassword (2)The bean will use the values of User and Password to authenticate the user.
amPublicKey (3)The bean will use the values of User and SSHCert to authenticate the user. SSHCert must have a private key available for this authentication method to succeed.
amKeyboardInteractive (4)At the time of authentication, the bean will fire the SSHKeyboardInteractive event containing instructions on how to complete the authentication step. (NOTE: amKeyboardInteractive is not supported in SSHTunnel).
amGSSAPIWithMic (5)This allows the bean to attempt Kerberos authentication using the GSSAPI-WITH-MIC scheme. The client will try Kerberos authentication using the value of User (single sign-on), or if Password is specified as well, it will try Kerberos authentication with alternate credentials. This is currently supported only in the .NET client.
amCustom (6)This allows the bean caller to take over the authentication process completely. When amCustom is set, the bean will fire the SSHCustomAuth event as necessary to complete the authentication process.

Example (User/Password Auth):

Control.SSHAuthMode = SshauthSSHAuthModes.amPassword
Control.SSHUser = "username"
Control.SSHPassword = "password"
Control.SSHLogon("server", 22)
Example (Public Key Auth):
Control.SSHAuthMode = SshauthSSHAuthModes.amPublicKey
Control.SSHUser = "username"
 
Control.SSHCert = New Certificate(CertStoreTypes.cstPFXFile, "cert.pfx", "certpassword", "*") 
Control.SSHLogon("server", 22)

Default Value

2

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0