Previous Topic: Guidance for the Agent API in CNext Topic: Agent Call Sequence


Central Host Configuration

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:

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).

Configuration Requirements

To configure a custom agent through a host configuration object on the Policy Server, you must complete the following steps:

  1. Register the client machine where the agent resides as a trusted host.

    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:

  2. Define an agent object on the Policy Server.

    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.

Code Requirements

For a custom agent to be configured through a central host configuration object on the Policy Server, the agent must do the following:

Upgrade an Agent

To upgrade an existing v4.x agent

  1. If the host machine where the v4.x agent resides is not currently registered with the Policy Server as a trusted host, run smreghost to register it.

    Registration creates an SmHost.conf file on the trusted host and a host configuration object on the Policy Server.

  2. Call Sm_AgentApi_GetConfig() to initialize the structure Sm_AgentApi_Init_t with the information in SmHost.conf.
  3. Call Sm_AgentApi_Init() to connect to the Policy Server.
  4. Call Sm_AgentApi_SetDefaultAgentId() to set the default name of the custom agent.