Allowing or Prohibiting Anonymous Logins (SetAnonymousLogin)

Use the ICIClientSettings interface SetAnonymousLogin method to allow or prohibit anonymous logins.

Signature:

HRESULT SetAnonymousLogin(

[in]  SFTPAdvBool val );

Values:

0 = Prohibited

1 = Allowed

-2 = Inherited

Example:

Dim strUser:strUser = "test"

set oUserSettings = oSite.GetUserSettings(strUser)

oUserSettings.SetAnonymousLogin( True )