Softerra LDAP Administrator Help | Show AllHide All |
Converts the expression of one data type into another.
expression - any acceptable expression.
data_type - target data type. for further information about available data types refer to the Data Types section.
The following example converts the whenCreated LDAP attribute to a string and uses it in SUBSTRING function to extract first four characters (year value).
UPDATE "CN=John Walker,DC=com" SET $description = $givenName || SUBSTRING(CAST($whenCreated AS String) FROM 1 FOR 4) SCOPE BASE;
Here is the result.
'John2010'