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

LdapAddAttrBinaryValue
Syntax
LdapAddAttrBinaryValue(entryID, attrName, fileName);
entryID 
attrName
fileName
Description
Takes the entryID (returned by the LdapGetEntry function), the attribute name, and a filename, and adds the contents of the file to the given attribute.
LdapAddAttrBinaryValue should be used when there is not yet any data in the attribute.
Returns
1
-1
Example
ldapAddAttrBinaryValue($theuser,"photo",my_file);
In this example, the contents of my_file are added to the photo attribute of theuser entry.
OpenText StreamServe 5.6.2 Updated: 2018-01-26