Commit a946d02b authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

misc doc updates

parent 32a2838e
......@@ -91,12 +91,6 @@ The
routines can be used to test a URL to see if it is an LDAP URL, to parse LDAP
URLs into their component pieces, and to initiate searches directly using
.BR ldap_cache (3)
routines implement a local client caching scheme,
providing a substantial performance increase for repeated queries.
Caching is experiemental.
Also provided are various utility routines. The
.BR ldap_sort (3)
......@@ -162,27 +156,6 @@ equivalent to
.SM ldap_memfree (3)
dispose of memory allocated by LDAP routines.
.SM ldap_enable_cache(3)
enable LDAP client caching
.SM ldap_disable_cache(3)
disable LDAP client caching
.SM ldap_destroy_cache(3)
disable LDAP client caching and destroy cache contents
.SM ldap_flush_cache(3)
flush LDAP client cache
.SM ldap_uncache_entry(3)
uncache requests pertaining to an entry
.SM ldap_uncache_request(3)
uncache a request
.SM ldap_set_cache_options(3)
set cache options
.SM ldap_compare(3)
asynchronously compare to a directory entry
.\" $OpenLDAP$
.\" Copyright 1998-2003 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
ldap_enable_cache, ldap_disable_cache, ldap_destroy_cache, ldap_flush_cache, ldap_uncache_entry, ldap_uncache_request, ldap_set_cache_options \- LDAP client caching routines
OpenLDAP LDAP (libldap, -lldap)
.ft B
#include <ldap.h>
.ft B
ldap_enable_cache( ld, timeout, maxmem )
LDAP *ld;
long timeout;
long maxmem;
.ft B
void ldap_disable_cache( ld )
LDAP *ld;
.ft B
void ldap_destroy_cache( ld )
LDAP *ld;
.ft B
void ldap_flush_cache( ld )
LDAP *ld;
.ft B
void ldap_uncache_entry( ld, dn )
LDAP *ld;
char *dn;
.ft B
void ldap_uncache_request( ld, msgid )
LDAP *ld;
int msgid;
.ft B
void ldap_set_cache_options( ld, opts )
LDAP *ld;
unsigned long opts;
These routines are used to control the behavior of the
.B experimental
client caching of
.BR ldap_search (3)
.BR ldap_compare (3)
operations. By
default, the cache is disabled and no caching is done. Enabling the
cache can greatly improve performance and reduce network bandwidth when
a client DUA makes repeated requests.
.B ldap_enable_cache()
should be called to turn on local caching or to
change cache parameters (lifetime of cached requests and memory used).
The \fIld\fP parameter should be the result of a successful call to
.BR ldap_open (3).
The \fItimeout\fP is specified in seconds, and is used to
decide how long to keep cached requests. The \fImaxmem\fP value is in
bytes, and is used to set an upper bound on how memory the cache will
use. You can specify 0 for \fImaxmem\fP to restrict the cache size by
the \fItimeout\fP only. The first call to ldap_enable_cache creates
the cache; subsequent calls re-enable the cache and set the timeout and
memory values.
.B ldap_disable_cache()
temporarily disables use of the cache (new
requests are not cached and the cache is not checked when returning
results). It does not delete the cache contents.
.B ldap_destroy_cache()
turns off caching and completely removes the cache from memory.
.B ldap_flush_cache()
deletes the cache contents, but does not effect it in any other way.
.B ldap_uncache_entry()
removes all requests that make reference to the
distinguished name \fIdn\fP from the cache. It should be used, for
example, after doing an
.BR ldap_modify (3)
call involving \fIdn\fP.
.B ldap_uncache_request()
removes the request indicated by the LDAP request
id \fImsgid\fP from the cache.
.B ldap_set_cache_options()
is used to change caching behavior. The current supported options are
to suppress caching of any requests that result in an error, and
to enable caching of all requests. The default behavior is to not
cache requests that result in errors, except that request that result
in the error
are cached.
.B ldap_enable_cache()
returns 0 upon success, and -1 if it is unable to
allocate space for the cache. All the other calls are declared as
void and return nothing.
.BR ldap (3),
.BR ldap_search (3),
.BR ldap_compare (3)
is developed and maintained by The OpenLDAP Project (
is derived from University of Michigan LDAP 3.3 Release.
......@@ -8,6 +8,7 @@ slapadd \- Add entries to a SLAPD database
.B SBINDIR/slapadd
.B [\-v]
.B [\-c]
.B [\-u]
.B [\-d level]
.B [\-b suffix]
.B [\-n dbnum]
......@@ -43,6 +44,9 @@ enable verbose mode.
.B \-c
enable continue (ignore errors) mode.
.B \-u
enable dry-run (don't write to backend) mode.
.BI \-d " level"
enable debugging messages as defined by the specified
.IR level .
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment