The SiteMinder Policy Server calls SmDirSetUserAttr() so that you can use SiteMinder to set a user attribute in your custom directory. For example, you may need to change the last name of a user.
Syntax
int SM_EXTERN SmDirSetUserAttr ( const Sm_Api_Context_t* lpApiContext, void* pHandle, void* pInstanceHandle, const char* lpszUserDN, const char* lpszAttrName, const char* lpszAttrData );
Parameter |
I/O |
Description |
---|---|---|
lpApiContext |
I |
Pointer to the API context structure. |
pHandle |
I |
The address of the pointer returned by SmDirInit(). |
pInstanceHandle |
I |
The address of a pointer to the user instance handle. |
lpszUserDN |
I |
Buffer containing the user DN whose user attribute has to be set. |
lpszAttrName |
I |
Buffer containing the name of the user attribute. |
lpszAttrData |
I |
Buffer containing the value of the user attribute. |
Returns
Returns 0 if successful or -1 if not successful.
Copyright © 2014 CA.
All rights reserved.
|
|