Share this page

# Example: mldap_add

In the following example, the mldap_add function adds an entry for Sally R. Jones, assigning a single value to each attribute.

    mldap_add("LDAP Add",
             "DN=cn=Sally R. Jones,OU=Sales,OU=demo,DC=TECHNO,DC=com",
             "Name=givenName", "Value=Sally", ENDITEM,
             "Name=initials", "Value=R", ENDITEM,
             "Name=sn", "Value=Jones", ENDITEM,
             "Name=objectClass", "Value=contact", ENDITEM,
             LAST );

In the following example, the mldap_add function adds an entry for Sally R. Jones, assigning multiple values to an attribute.

    mldap_add("LDAP Add",
             "DN=cn=Sally R. Jones,OU=Sales,OU=demo,DC=TECHNO,DC=com",
             "Name=initials", "Value=S", "Value=R", "Value=J", ENDITEM,
             "Name=objectClass", "Value=contact", ENDITEM,
             LAST );

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: