When setting or retrieving multi-valued attributes in an LDAP user store, the values are presented in a single string, delimited by a carat character ( ^ ).
For example, you might set three different telephone numbers as follows:
char lpszTemp[] = "111-1234^111-5678^111-0000"; int getResult = lpUserContext->fSetProp (lpUserContext->lpParam, "telephonenumber", strlen(lpszTemp), lpszTemp);
Custom code that sets or retrieves multi-valued attributes must support the expected multi-valued string format.
Note: ODBC user stores do not support multi-valued attribute settings.
Policy Server Version Support
With a 4.61 or later Policy Server, the telephone numbers in the example above are put into the user's telephone number attribute in the LDAP user store as follows:
111-1234 111-5678 111-0000
Prior to the 4.61 Policy Server, the above code would set the telephone number attribute as follows:
111-1234^111-5678^111-0000
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |