Sm_PolicyApi_AddAdminToDomain()
The specified administrator has permission to administer the specified domain. The domain associates the administrator object that is identified by szAdminOid with the domain that is identified by szDomainOid.
sm1252sp1
The specified administrator has permission to administer the specified domain. The domain associates the administrator object that is identified by
szAdminOid
with the domain that is identified by szDomainOid
.Type
Administrator function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_AddAdminToDomain (void*pSessionHandle,const char*pszAdminOid,const char*pszDomainOid);
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. |
pszAdminOid
| I | A null-terminated string containing the object identifier of an existing administrator. |
pszDomainOid
| I | A null-terminated string containing the object identifier of an existing domain. |
Returns
- Sm_PolicyApi_SuccessThe administrator was added to the domain
- Sm_PolicyApi_InvalidHandleNo valid initialization before this call
- Sm_PolicyApi_NoSessionNo valid administrator session
- Sm_PolicyApi_NoPrivilegeThe administrator does not have the permission to add an administrator to a domain
- Sm_PolicyApi_InvalidOidThe administrator object identifier or the domain object identifier was not found
- Sm_PolicyApi_DuplicateEntryThe specified administrator object identifier already exists in the domain