Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
511d395f
Commit
511d395f
authored
18 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Additional updates
parent
c8016341
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man3/ldap_abandon.3
+10
-3
10 additions, 3 deletions
doc/man/man3/ldap_abandon.3
doc/man/man3/ldap_modify.3
+62
-39
62 additions, 39 deletions
doc/man/man3/ldap_modify.3
with
72 additions
and
42 deletions
doc/man/man3/ldap_abandon.3
+
10
−
3
View file @
511d395f
...
...
@@ -8,10 +8,17 @@ ldap_abandon_ext \- Abandon an LDAP operation in progress
OpenLDAP LDAP (libldap, -lldap)
.SH SYNOPSIS
.nf
.B #include <ldap.h>
.BI "int ldap_abandon_ext(LDAP *" ld ", int " msgid ","
.B
#include <ldap.h>
.LP
.ft B
int ldap_abandon_ext(
.RS
.BI "LDAPControl *" sctrls "[], LDAPControl *" cctrls "[]);"
.ft B
LDAP *\fIld\fB,
Bint \fImsgid\fB,
LDAPControl **\fIsctrls\fB,
LDAPControl **\fIcctrls\fB );
.RE
.fi
.SH DESCRIPTION
...
...
This diff is collapsed.
Click to expand it.
doc/man/man3/ldap_modify.3
+
62
−
39
View file @
511d395f
...
...
@@ -12,30 +12,40 @@ OpenLDAP LDAP (libldap, -lldap)
#include <ldap.h>
.LP
.ft B
.nf
int ldap_modify(ld, dn, mods)
.ft
LDAP *ld;
char *dn;
LDAPMod *mods[];
.LP
int ldap_modify_ext(
.RS
.ft B
.nf
int ldap_modify_s(ld, dn, mods)
.ft
LDAP *ld;
char *dn;
LDAPMod *mods[];
LDAP *\fIld\fB,
char *\fIdn\fB,
LDAPMod *\fImods[]\fB,
LDAPControl **\fIsctrls\fB,
LDAPControl **\fIcctrls\fB,
int **\fImsgidp\fB );
.RE
.LP
.nf
.ft B
int ldap_modify_ext_s(
.RS
.ft B
LDAP *\fIld\fB,
char *\fIdn\fB,
LDAPMod *\fImods[]\fB,
LDAPControl **\fIsctrls\fB,
LDAPControl **\fIcctrls\fB );
.RE
.LP
.nf
void ldap_mods_free( mods, freemods )
.ft
LDAPMod **mods;
int freemods;
.ft B
void ldap_mods_free(
.RS
.ft B
LDAPMod **\fImods\fB,
int \fIfreemods\fB );
.RE
.SH DESCRIPTION
The routine
.B ldap_modify_s()
.B ldap_modify_
ext_
s()
is used to perform an LDAP modify operation.
\fIdn\fP is the DN of the entry to modify, and \fImods\fP is a
null-terminated array of modifications to make to the entry. Each element
...
...
@@ -43,7 +53,6 @@ of the \fImods\fP array is a pointer to an LDAPMod structure, which is
defined below.
.LP
.nf
.ft B
typedef struct ldapmod {
int mod_op;
char *mod_type;
...
...
@@ -82,20 +91,24 @@ modifications, the attribute will have the listed values after the
modification, having been created if necessary. All modifications are
performed in the order in which they are listed.
.LP
.B
ldap_modify_s()
.B ldap_modify_ext_s()
returns the LDAP error code resulting from the
modify operation. This code can be interpreted by
.BR ldap_perror (3)
and friends.
modify operation.
.LP
Both
.B ldap_abandon_ext()
and
.B ldap_abandon_ext()
allows server and client controls to be passed in
via the sctrls and cctrls parameters, respectively.
.LP
The
.B ldap_modify()
.B ldap_modify
_ext
()
operation works the same way as
.BR ldap_modify_s() ,
except that it is asynchronous
, returning the message id of the
request it initiates, or -1 on error
. The result of
the operation
can be obtained by calling
.BR ldap_modify_
ext_
s() ,
except that it is asynchronous
. The integer that \fImsgidp\fP points
to is set to the message id of the modify request
. The result of
the operation
can be obtained by calling
.BR ldap_result (3).
.LP
.B ldap_mods_free()
...
...
@@ -103,20 +116,30 @@ can be used to free each element of a NULL-terminated
array of mod structures. If \fIfreemods\fP is non-zero, the
\fImods\fP pointer itself is freed as well.
.SH ERRORS
.B ldap_modify_s()
.B ldap_modify_ext_s()
and
.B ldap_modify_ext()
returns an ldap error code, either LDAP_SUCCESS or
an error if there was trouble.
See
.BR ldap_error (3)
for details
.SH DEPRECATED INTERFACES
The
.B ldap_modify()
returns -1 in case
of trouble, setting the
.B ld_errno
field of \fIld\fP.
and
.B ldap_modify_s()
routines are deprecated in favor of the
.B ldap_modify_ext()
and
.B ldap_modify_ext_s()
routines, respectively.
.so Deprecated
.SH SEE ALSO
.BR ldap (3),
.BR ldap_error (3),
.BR ldap_add (3)
.SH ACKNOWLEDGEMENTS
.B OpenLDAP
is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
.B OpenLDAP
is derived from University of Michigan LDAP 3.3 Release.
.so ../Project
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment