LDAP_ADD(3) | Library Functions Manual | LDAP_ADD(3) |
int ldap_add_ext(
LDAP *ld, const char *dn, LDAPMod **attrs, LDAPControl **sctrls, LDAPControl **cctrls, int *msgidp );
int ldap_add_ext_s(
LDAP *ld, const char *dn, LDAPMod **attrs, LDAPControl *sctrls, LDAPControl *cctrls );
Note that all entries except that specified by the last component in the given DN must already exist. ldap_add_ext_s() returns an code indicating success or, in the case of failure, indicating the nature of failure of the operation. See ldap_error(3) for more details.
The ldap_add_ext() routine works just like ldap_add_ext_s(), but it is asynchronous. It returns the message id of the request it initiated. The result of this operation can be obtained by calling ldap_result(3).
Deprecated interfaces generally remain in the library. The macro LDAP_DEPRECATED can be defined to a non-zero value (e.g., -DLDAP_DEPRECATED=1) when compiling program designed to use deprecated interfaces. It is recommended that developers writing new programs, or updating old programs, avoid use of deprecated interfaces. Over time, it is expected that documentation (and, eventually, support) for deprecated interfaces to be eliminated.
2014/01/26 | OpenLDAP 2.4.39 |