Creates a new SiteMinder realm within the domain specified in pStructRealm. The pStructRealm structure also contains other attributes of the realm, including the agent or agent group that protects the realm.
Sm_PolicyApi_AddRealm() fails if a protecting agent or agent group is not specified.
If the new realm is a top-level realm, set pszParentRealmOid (in Sm_PolicyApi_Realm_t) to the domain OID. Otherwise, set pszParentRealmOid to the OID of the new realm's parent realm.
If the realm exists and the bUpdate flag is true, the existing item is updated.
It is the responsibility of the client application to meet the following conditions in order to add an authorization directory to a realm successfully:
Note: The Policy Management API checks only to see if the authorization user directory exists. It does not validate if there is a directory mapping for the given authorization user directory.
Type
Realm function, domain scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddRealm ( void* pSessionHandle, Sm_PolicyApi_Realm_t* pStructRealm, const bool bUpdate );
Parameter |
I/O |
Description |
---|---|---|
pSessionHandle |
I |
A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pStructRealm
|
I |
A pointer to a completely filled-in structure. |
bUpdate |
I |
A flag to indicate that if an existing object is found, it should be updated. |
Returns
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |