|
Summary
The username for the firewall authentication.
Description
The FwUsername property specifies a valid username when establishing a connection via a firewall. This property must be set before calling the FwConnect method (or setting the
Action property to ACTION_FW_CONNECT.)
A valid username is mandatory when a connection needs to established with SOCKS version 4 server. It is also required when connecting to SOCKS version 5 server if the authentication method
(FwAuthMethods) specified is "2" (Username/Password authentication protocol).
This property can be changed at design time and at run time before a connection has been established by setting the Action property to ACTION_FW_CONNECT or by calling the method FwConnect.
The property does not have any default value.
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
|