1 .TH LDAP_ADD 3 "2008/07/16" "OpenLDAP 2.4.11"
2 .\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_add.3,v 1.17.2.4 2008/02/11 23:26:39 kurt Exp $
3 .\" Copyright 1998-2008 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_add_ext, ldap_add_ext_s \- Perform an LDAP add operation
8 OpenLDAP LDAP (libldap, -lldap)
20 LDAPMod **\fIattrs\fB,
21 LDAPControl **\fIsctrls\fB,
22 LDAPControl **\fIcctrls\fB,
32 LDAPMod **\fIattrs\fB,
33 LDAPControl *\fIsctrls\fB,
34 LDAPControl *\fIcctrls\fB );
40 routine is used to perform an LDAP add operation.
41 It takes \fIdn\fP, the DN of the entry to add, and \fIattrs\fP, a
42 null-terminated array of the entry's attributes. The LDAPMod structure
43 is used to represent attributes, with the \fImod_type\fP and
44 \fImod_values\fP fields being used as described under
45 .BR ldap_modify_ext (3),
46 and the \fIldap_op\fP field being used only if you need to specify
47 the LDAP_MOD_BVALUES option. Otherwise, it should be set to zero.
49 Note that all entries except that
50 specified by the last component in the given DN must already exist.
52 returns an code indicating success or, in the case of failure,
53 indicating the nature of failure of the operation. See
59 routine works just like
60 .BR ldap_add_ext_s() ,
61 but it is asynchronous. It returns the message id of the request it
62 initiated. The result of this operation can be obtained by calling
64 .SH DEPRECATED INTERFACES
69 routines are deprecated in favor of the
73 routines, respectively.
75 Deprecated interfaces generally remain in the library. The macro
76 LDAP_DEPRECATED can be defined to a non-zero value
77 (e.g., -DLDAP_DEPRECATED=1) when compiling program designed to use
78 deprecated interfaces. It is recommended that developers writing new
79 programs, or updating old programs, avoid use of deprecated interfaces.
80 Over time, it is expected that documentation (and, eventually, support) for
81 deprecated interfaces to be eliminated.
87 .\" Shared Project Acknowledgement Text
88 .B "OpenLDAP Software"
89 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
90 .B "OpenLDAP Software"
91 is derived from University of Michigan LDAP 3.3 Release.