|
Summary
Specifies the authentication method used when connecting through a firewall.
Description
The FwAuthMethods property specifies the authentication method that can be used when connecting to the firewall server. This property must be set before a connection can be
established by calling the FwConnect method (or set the Action property is set to ACTION_FW_CONNECT). The FwAuthMethods property can be "0", "1" or "2" or a combination of "0",
"1", "2", for example "01" or "12". "0" means that no authentication is required, "1" means GSSAPI and "2" means that a valid username and password is required. Currently only methods "0" and "2" are
supported.
This property can be changed at design time or at run time before a connection has been established.
The default value for this property is "0".
Example
Ftp.FwAddrType = FW_ADDR_DNS Ftp.FwAuthMethods = "2" Ftp.FwUsername = "joe" Ftp.FwPassword = "distinct" Result = Ftp.FwConnect
("sparky.distinct.com", "1080", "speedy.distinct.com", "santa", "north pole", """")
If Result = False Then
MsgBox "Unable to connect to server via a firewall", 64, "Sample Program" End If
|