Kaspersky Security Center Automation  10.0
HRESULT IKlAkSlaveServers::SetMasterServer ( [in] IKlAkProxy pSlaveServer,
[in] VARIANT *  pProps 
)

Write master server address and certificate to the slave server settigs.

Writes master server address and certificate to the slave server settigs. Process of creating master/slave relation consists from two steps:

Parameters:
pSlaveServer Connection with slave server
pProps
  • null to destroy master/slave relation
  • IKlAkParams object with master server server credentials to set up master/slave relation, IKlAkParams object must contain following attributes
"KLSRV_MASTER_SRV_USE" Boolean true
"KLSRV_MASTER_SRV_SSL_CERT" Binary data Required. Certificate of master server. One may use IKlAkProxy.LoadCertificate and IKlAkProxy.Certificate to obtain the certificate.
"KLSRV_MASTER_SRV_ADDR" String Required. Master server address in <host>:<port> format as it is "seen" from the slave server.
"KLSRV_MASTER_SRV_PROXYHOST_USE" Boolean true if the slave server must connect to the master server via proxy
"KLSRV_MASTER_SRV_PROXYHOST_LOCATION" String Required if KLSRV_MASTER_SRV_PROXYHOST_USE is true. Proxy server address in <host>:<port> format.
"KLSRV_MASTER_SRV_PROXYHOST_LOGIN" String Required if KLSRV_MASTER_SRV_PROXYHOST_USE is true. Proxy server login.
"KLSRV_MASTER_SRV_PROXYHOST_PASSWORD" String Write-only. Required if KLSRV_MASTER_SRV_PROXYHOST_USE is true. Proxy server password.

See also Creating and destroying master/slave relation sample.