LDAP Interface |
Adds new entries to an LDAP directory.
attr
parameter.numValues
parameter.The following example adds two single-value entries to 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_ADD(lHandle, dn, rc, attrName, 1, objValue, attrName2, 1, nodeValue);
The following example adds three attributes, one with multiple values.
dn="sasSubscriberCn=JohnSmith,cn=sassubscribers, sasComponent=sasPublishSubscribe,cn=SAS,o=Alpine Airways,c=US"; attrName = "objectclass"; objValue = "sassubscriber"; attrName2 = "sasEntryInclusionFilter"; val = "gif"; val2 = "dataset"; htmlvalue = "html"; attrnName3 = "sasPersonDN"; val3 = "uid=JSmith,ou=people,o=Apline Airways,c=us"; CALL LDAPS_ADD(lHandle, dn, rc, attrName, 1, objValue, attrName2, 3, val, val2, htmlvalue, attrName3, 1, val3);
LDAP Interface |