Asynchronously adds an entry to the directory. This function has been deprecated; LDAP v3 clients should use ldap_add_ext.
#include <ldap.h> int ldap_add ( LDAP *ld, const char *dn, LDAPMod **attrs);
(IN) Points to the handle for the LDAP session.
(IN) Points to the distinguished name of the entry to add, for example: "o=novell", "ou=provo", "cn=kim"
All components of the dn must exist except for the leaf component. The leaf component name must be unique within the container.
(IN) Points to a NULL terminated array of LDAPMod structures that contain the attributes and value to add with the entry. All mandatory attributes must have values or the operation fails.
To obtain the results of the operation, call the ldap_result function with the returned message ID.
For a list of mandatory attributes for an entry see the LDAP server's schema. For eDirectory, see NDK: Novell eDirectory Schema Reference.