Sm_PolicyApi_SetUserDirSearchOrder()

Rearranges the search order of the user directory objects associated with the domain identified by pszDomainOid.
casso127
Rearranges the search order of the user directory objects associated with the domain identified by
pszDomainOid
.
The ordered list of names is specified in the
pszArray
string array. The user directories in this array must match in OID and number (but not order) the list of user directory names that were retrieved by a call to Sm_PolicyApi_GetUserDirSearchOrder().
Type
User directory function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_SetUserDirSearchOrder (
void*pSessionHandle,
const char*pszDomainOid,
char**pszArray[]
);
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.
pszDomainOid
I
A null-terminated string containing the object identifier of an existing domain.
pszArray
I
An array of user directory OIDs, in the desired order.
Returns
  • Sm_PolicyApi_Success. The user directory search order was set successfully.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to set user directory search order in a domain.
  • Sm_PolicyApi_InvalidOid. The domain OID was not found.
  • Sm_PolicyApi_WrongNumberOfElements. The number of user directories in the domain collection is different from the number of elements in the array.