1 .TH LDAP_ADD 3 "15 November 1994" "U-M LDAP LDVERSION"
3 ldap_add, ldap_add_s \- Perform an LDAP add operation
11 int ldap_add(ld, dn, attrs)
18 int ldap_add_s(ld, dn, attrs)
26 routine is used to perform an LDAP add operation.
27 It takes \fIdn\fP, the DN of the entry to add, and \fIattrs\fP, a
28 null-terminated array of the entry's attributes. The LDAPMod structure
29 is used to represent attributes, with the \fImod_type\fP and
30 \fImod_values\fP fields being used as described under
32 and the \fIldap_op\fP field being used only if you need to specify
33 the LDAP_MOD_BVALUES option. Otherwise, it should be set to zero.
35 Note that all entries except that
36 specified by the last component in the given DN must already exist.
38 returns an LDAP error code indicating success or failure
45 routine works just like
47 but it is asynchronous. It returns the message id of the request it
48 initiated. The result of this operation can be obtained by calling
52 returns -1 in case of error initiating the request, and
53 will set the \fIld_errno\fP field in the \fIld\fP parameter
54 to indicate the error.
56 will return an LDAP error code
57 directly (LDAP_SUCCESS if everything went ok, some error otherwise).