Creates a new SiteMinder user directory object at global scope. The attributes of the user directory are contained in the pstructUserDir structure.
If the user directory object exists and the bUpdate flag is true, the item is updated.
Type
User directory function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_CreateUserDir ( void* pSessionHandle, Sm_PolicyApi_UserDir_t* pstructUserDir, 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. |
pstructUserDir |
I |
A pointer to a completely filled-in user directory structure. |
bUpdate |
I |
A flag to indicate that if an existing object is found, it should be updated. |
The following table shows the SM_PolicyAPI_UserDir_t field that Sm_PolicyApi_CreateUserDir() uses for different types of user directories:
Field |
User Directory Type |
|||
---|---|---|---|---|
ODBC |
LDAP |
WinNT |
Custom |
|
pszOid Object Identifier of the user directory being updated |
X |
X |
X |
X |
pszName Required field. |
X |
X |
X |
X |
pszDesc |
X |
X |
X |
X |
pszNamespace Required field. |
ODBC |
LDAP |
WinNT |
Custom |
pszServer Required field. |
ODBC data source |
IP address |
NT Domain name |
Name of shared library |
pszODBCQuerySchemeOid Required field. |
X |
|
|
|
pszSearchRoot |
|
X |
|
parameter string |
pszUserLookupStart |
|
X |
|
|
pszUserLookupEnd |
|
X |
|
|
bRequireCredentials |
X |
X |
X |
X |
pszUsername Required field if bRequireCredentials is true. |
X |
X |
X |
X |
pszPassword Required field if bRequireCredentials is true. |
X |
X |
X |
X |
nSearchResults |
|
X |
|
Max results |
nSearchScope |
|
X |
|
|
nSearchTimeout |
|
X |
|
Max time out |
bSecureConnection |
|
X |
|
X |
pszDisabledAttr |
X |
X |
|
(Varies) |
pszUniversalIDAttr |
X |
X |
X |
(Varies) |
pszAnonymousId |
|
X |
|
(Varies) |
pszPasswordData |
X |
X |
|
(Varies) |
pszPasswordAttribute |
X |
X |
|
(Varies) |
pszEmailAddressAttr |
|
|
|
|
pszChallengeRespAttr |
|
X |
|
(Varies) |
Note: With custom directories, fields indicated by the word varies may or may not apply to the user directory object being created.
Returns
Copyright © 2014 CA.
All rights reserved.
|
|