SiteMinder agents, including custom agents, connect to a Policy Server through the Agent API. SiteMinder recognizes two different types of agents, based on the way that connection parameters are provided:
The information required to initialize the connection to a Policy Server is stored in an SmHost.conf file on the host machine. Additional information that determines how the Policy Server interacts with its agents is defined on the Policy Server in a host configuration object.
Host configuration object parameters (such as failover and clustering instructions) apply to all agents associated with the host configuration object. They are centrally managed in the Administrative UI.
Custom v5.x and later agents support central host configuration (which determines the way a Policy Server and its agents interact), but not central agent configuration (which determines the way an agent operates). You cannot define an agent configuration object for a custom agent in the Policy Server. Configuration parameters for the operation of a custom agent are defined in the WebAgent.conf file (or in the case of IIS 6.0 agents, in the LocalConfig.conf file).
To configure a custom agent through a host configuration object on the Policy Server, you must complete the following steps:
You register a trusted host with the smreghost tool. This tool is installed in directory <install_path>/sdk/bin.
Registering a trusted host creates the following items:
The information in SmHost.conf is used to initialize the connection between the Policy Server and its agents, through the Agent API. Once the connection is initialized, the information in the host configuration object determines how the Policy Server and its agents interact.
An agent object establishes a unique identity for your custom agent by defining a name and other information that is specific to your custom agent.
The name assigned to the custom agent must match the name that the custom agent passes programmatically to SiteMinder.
For a custom agent to be configured through a central host configuration object on the Policy Server, the agent must do the following:
This function lets you pass to SiteMinder the name and path of the SmHost.conf file that resides on the trusted host. This file references the host configuration object on the Policy Server.
Alternatively, you can pass the name and path of the WebAgent.conf file if it contains a reference to SmHost.conf.
After the trusted host connects to the Policy Server, the interaction between the Policy Server and the agents on the trusted host is determined by the host configuration object on the Policy Server.
Note: When you call Sm_AgentApi_GetConfig(), SiteMinder populates the Sm_AgentApi_Init_t structure. With central host configuration, you do not populate the structure directly.
The name that the custom agent passes to SiteMinder in this function must match the name of the agent object that establishes a unique identity for your custom agent on the Policy Server.
Call Sm_AgentApi_SetDefaultAgentId() after calling Sm_AgentApi_Init() and before making any other Agent API calls. This allows you to specify your custom agent name to SiteMinder without sending the name with each transaction.
To upgrade an existing v4.x agent
Registration creates an SmHost.conf file on the trusted host and a host configuration object on the Policy Server.
Copyright © 2014 CA.
All rights reserved.
|
|