Kaspersky Security Center Automation  10.0
HRESULT IKlAkProxy::Connect ( [in] IKlAkParams pSettings )

Connect to the Administration Server.

Creates connection with the Administration Server specified in pSettings container

Parameters:
pSettings container with connection attributes. Possible attributes are listed below.
"Address" String Administration Server address in <host>:<port> format, for example, "localhost:13000". This attribute is required.
"UseSSL" Boolean Whether use SSL, default value is true
"CompressTraffic" Boolean Whether use traffic compression, default value is false
"User" String User name. Must be true if "UseSSL" is specified. Security context of calling user is used if "User" is not specified.
"Domain" String User domain.
"Password" String User password.
"Certificate" Binary data Server certificate. May be loaded from file with IKlAkProxy.LoadCertificate method
"ProxyAddress" String Address of proxy server in <host>:<port> format.
"ProxyLogin" String Login for proxy server.
"ProxyPassword" String Password for proxy server.

"Address" is the only required attribute, other attributes are optional.


See JScript sample below.

	function AcquireAdServerProxy(strAddress)
	{
		var oSrvConnectionProps = new ActiveXObject("klakaut.KlAkParams");
		oSrvConnectionProps.Add("Address", strAddress);
		oSrvConnectionProps.Add("UseSSL", true);
		var oAdmServer = new ActiveXObject("klakaut.KlAkProxy");
		oAdmServer.Connect(oSrvConnectionProps);
		return oAdmServer;
};
	// ....
	var oAdmServer = AcquireAdServerProxy("localhost:13000");