LDAP Interface |
CALL LDAPS_MODIFY(lHandle, entryName, rc, modifyType1, attr1, numValues1 <, attr1Val1, ...attr1ValN> <..., modifyTypeN, attrN, numValuesN <, attrNVal1..., attrNValN>>);
numValues
parameter.Zero or more attributes may be specified.
If the value of the modifyType
parameter is DELETE and if the
value of the numValues
parameter is 0, then the entire attribute
and all of its values are deleted.
If the value of the modifyType
parameter is DELETE and if the
value of the numValues
parameter is 1 or greater, only the
specified values will be deleted.
If the value of the modifyType
parameter is REPLACE the existing
attribute and all of its values are deleted and replaced with the specified
attribute and its newly specified values.
The following example modifies the node associated with a distinguished name.
dn = "cn=alpair02.unx.com,o=Alpine Airways,c=US"; attrName = "objectclass"; objValue = "SASDomain"; attrName2 = "node"; nodeValue = "oak.unx.com"; CALL LDAPS_MODIFY(lHandle, dn, rc, "ADD", attrName, 1, objValue, "DELETE", attrName2, 0);
The following example modifies a filter associated with an LDAP entry.
dn="sasSubscriberCn=JohnSmith,cn=sassubscribers, sasComponent=sasPublishSubscribe,cn=SAS,o=Alpine Airways,c=US"; attrName = "sasDescription"; attrName2 = "sasEntryInclusionFilter"; val = "gif"; val2 = "dataset"; htmlvalue = "html"; CALL LDAPS_MODIFY(lHandle, dn, rc, "DELETE", attrName, 0, "REPLACE", attrName2, 3, val, val2, htmlvalue);
LDAP Interface |