Script functions reference > Script functions in alphabetical order > L > LdapReplaceAttrBinaryValue

LdapReplaceAttrBinaryValue
Syntax
LdapReplaceAttrBinaryValue(entryID, attrName, fileName);
entryID
attrName
fileName
Description
Takes the entryID (as returned by LdapGetEntry), the attribute name, and a filename, and adds the contents of the file to the given attribute.
This function works in the same way as LdapAddAttrBinaryValue, except that it replaces any existing data in the attribute.
Returns
1
-1
Example
ldapReplaceAttrBinaryValue($theuser,"photo",_my_file);
In this example, the value of the photo attribute in theuser entry is replaced by the contents of my_file.
OpenText StreamServe 5.6 Updated: 2013-03-01