2006-10-10 05:17:43 +08:00
|
|
|
.TH LDAP_GET_OPTION 3 "RELEASEDATE" "OpenLDAP LDVERSION"
|
|
|
|
.\" $OpenLDAP$
|
2014-01-25 21:21:25 +08:00
|
|
|
.\" Copyright 1998-2014 The OpenLDAP Foundation All Rights Reserved.
|
2006-10-10 05:17:43 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
|
|
.SH NAME
|
|
|
|
ldap_get_option, ldap_set_option \- LDAP option handling routines
|
|
|
|
.SH LIBRARY
|
2009-06-03 08:43:44 +08:00
|
|
|
OpenLDAP LDAP (libldap, \-lldap)
|
2006-10-10 05:17:43 +08:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
|
|
|
.B #include <ldap.h>
|
|
|
|
.LP
|
2006-10-14 08:58:50 +08:00
|
|
|
.BI "int ldap_get_option(LDAP *" ld ", int " option ", void *" outvalue ");"
|
2006-10-10 05:17:43 +08:00
|
|
|
.LP
|
2006-10-14 08:58:50 +08:00
|
|
|
.BI "int ldap_set_option(LDAP *" ld ", int " option ", const void *" invalue ");"
|
2006-10-10 05:17:43 +08:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.LP
|
|
|
|
These routines provide access to options stored either in a LDAP handle
|
|
|
|
or as global options, where applicable.
|
|
|
|
They make use of a neutral interface, where the type of the value
|
|
|
|
either retrieved by
|
|
|
|
.BR ldap_get_option (3)
|
|
|
|
or set by
|
|
|
|
.BR ldap_set_option (3)
|
2006-10-14 08:58:50 +08:00
|
|
|
is cast to
|
|
|
|
.BR "void *" .
|
2006-10-10 05:17:43 +08:00
|
|
|
The actual type is determined based on the value of the
|
|
|
|
.B option
|
|
|
|
argument.
|
2012-04-18 18:09:53 +08:00
|
|
|
Global options are set/retrieved by passing a NULL LDAP handle. LDAP handles
|
|
|
|
inherit their default settings from the global options in effect at the time
|
|
|
|
the handle is created.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_API_FEATURE_INFO
|
|
|
|
Fills-in a
|
|
|
|
.BR "LDAPAPIFeatureInfo" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "LDAPAPIFeatureInfo *" ,
|
|
|
|
pointing to an already allocated struct.
|
2015-01-22 09:39:18 +08:00
|
|
|
The
|
|
|
|
.B ldapaif_info_version
|
|
|
|
field of the struct must be initialized to
|
|
|
|
.B LDAP_FEATURE_INFO_VERSION
|
|
|
|
before making the call. The
|
|
|
|
.B ldapaif_name
|
|
|
|
field must be set to the name of a feature to query.
|
2009-08-20 03:00:48 +08:00
|
|
|
This is a read-only option.
|
|
|
|
.TP
|
2006-10-10 05:17:43 +08:00
|
|
|
.B LDAP_OPT_API_INFO
|
|
|
|
Fills-in a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "LDAPAPIInfo" ;
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "LDAPAPIInfo *" ,
|
2015-01-22 09:39:18 +08:00
|
|
|
pointing to an already allocated struct. The
|
|
|
|
.B ldapai_info_version
|
|
|
|
field of the struct must be initialized to
|
|
|
|
.B LDAP_API_INFO_VERSION
|
|
|
|
before making the call.
|
|
|
|
If the version passed in does not match the current library
|
|
|
|
version, the expected version number will be stored in the
|
|
|
|
struct and the call will fail.
|
|
|
|
The caller is responsible for freeing the elements of the
|
|
|
|
.B ldapai_extensions
|
|
|
|
array and the array itself using
|
|
|
|
.BR ldap_memfree (3).
|
|
|
|
The caller must also free the
|
|
|
|
.BR ldapi_vendor_name .
|
2006-10-10 05:17:43 +08:00
|
|
|
This is a read-only option.
|
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_CLIENT_CONTROLS
|
|
|
|
Sets/gets the client-side controls to be used for all operations.
|
|
|
|
This is now deprecated as modern LDAP C API provides replacements
|
|
|
|
for all main operations which accepts client-side controls as
|
|
|
|
explicit arguments; see for example
|
|
|
|
.BR ldap_search_ext (3),
|
|
|
|
.BR ldap_add_ext (3),
|
|
|
|
.BR ldap_modify_ext (3)
|
|
|
|
and so on.
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "LDAPControl ***" ,
|
|
|
|
and the caller is responsible of freeing the returned controls, if any,
|
|
|
|
by calling
|
|
|
|
.BR ldap_controls_free (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "LDAPControl *const *" ;
|
2009-08-20 03:00:48 +08:00
|
|
|
the library duplicates the controls passed via
|
|
|
|
.BR invalue .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_CONNECT_ASYNC
|
|
|
|
Sets/gets the status of the asynchronous connect flag.
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR invalue
|
|
|
|
should either be
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR LDAP_OPT_OFF
|
|
|
|
or
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR LDAP_OPT_ON ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2009-08-20 03:00:48 +08:00
|
|
|
When set, the library will call
|
|
|
|
.BR connect (2)
|
|
|
|
and return, without waiting for response.
|
2009-08-27 06:52:09 +08:00
|
|
|
This leaves the handle in a connecting state.
|
2009-08-20 03:00:48 +08:00
|
|
|
Subsequent calls to library routines will poll for completion
|
|
|
|
of the connect before performing further operations.
|
|
|
|
As a consequence, library calls that need to establish a connection
|
|
|
|
with a DSA do not block even for the network timeout
|
|
|
|
(option
|
|
|
|
.BR LDAP_OPT_NETWORK_TIMEOUT ).
|
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_CONNECT_CB
|
|
|
|
This option allows to set a connect callback.
|
|
|
|
.B invalue
|
2009-08-20 06:34:16 +08:00
|
|
|
must be a
|
|
|
|
.BR "const struct ldap_conncb *" .
|
2009-08-20 03:00:48 +08:00
|
|
|
Callbacks are executed in last in-first served order.
|
2009-08-27 06:52:09 +08:00
|
|
|
Handle-specific callbacks are executed first, followed by global ones.
|
2009-08-20 03:00:48 +08:00
|
|
|
Right before freeing the callback structure, the
|
2009-08-20 06:34:16 +08:00
|
|
|
.B lc_del
|
2009-08-20 03:00:48 +08:00
|
|
|
callback handler is passed a
|
|
|
|
.B NULL
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR Sockbuf .
|
2009-08-20 03:00:48 +08:00
|
|
|
Calling
|
|
|
|
.BR ldap_get_option (3)
|
|
|
|
for this option removes the callback whose pointer matches
|
|
|
|
.BR outvalue .
|
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_DEBUG_LEVEL
|
|
|
|
Sets/gets the debug level of the client library.
|
|
|
|
.BR invalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "int *" .
|
2009-08-20 06:34:16 +08:00
|
|
|
Valid debug levels are
|
|
|
|
.BR LDAP_DEBUG_ANY ,
|
|
|
|
.BR LDAP_DEBUG_ARGS ,
|
|
|
|
.BR LDAP_DEBUG_BER ,
|
|
|
|
.BR LDAP_DEBUG_CONNS ,
|
|
|
|
.BR LDAP_DEBUG_NONE ,
|
|
|
|
.BR LDAP_DEBUG_PACKETS ,
|
|
|
|
.BR LDAP_DEBUG_PARSE ,
|
|
|
|
and
|
|
|
|
.BR LDAP_DEBUG_TRACE .
|
2009-08-20 03:00:48 +08:00
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_DEFBASE
|
|
|
|
Sets/gets a string containing the DN to be used as default base
|
|
|
|
for search operations.
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
|
|
|
and the caller is responsible of freeing the returned string by calling
|
|
|
|
.BR ldap_memfree (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const char *" ;
|
2009-08-20 03:00:48 +08:00
|
|
|
the library duplicates the corresponding string.
|
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_DEREF
|
|
|
|
Sets/gets the value that defines when alias dereferencing must occur.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
|
|
|
They cannot be NULL.
|
2009-08-20 03:00:48 +08:00
|
|
|
The value of
|
|
|
|
.BR *invalue
|
|
|
|
should be one of
|
|
|
|
.BR LDAP_DEREF_NEVER
|
|
|
|
(the default),
|
|
|
|
.BR LDAP_DEREF_SEARCHING ,
|
|
|
|
.BR LDAP_DEREF_FINDING ,
|
|
|
|
or
|
|
|
|
.BR LDAP_DEREF_ALWAYS .
|
|
|
|
Note that this has ever been the only means to determine alias dereferencing
|
|
|
|
within search operations.
|
|
|
|
.TP
|
2006-10-10 05:17:43 +08:00
|
|
|
.B LDAP_OPT_DESC
|
|
|
|
Returns the file descriptor associated to the socket buffer
|
|
|
|
of the LDAP handle passed in as
|
|
|
|
.BR ld ;
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "int *" .
|
2009-08-27 06:52:09 +08:00
|
|
|
This is a read-only, handle-specific option.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_DIAGNOSTIC_MESSAGE
|
|
|
|
Sets/gets a string containing the error string associated to the LDAP handle.
|
|
|
|
This option was formerly known as
|
|
|
|
.BR LDAP_OPT_ERROR_STRING .
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR outvalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
|
|
|
and the caller is responsible of freeing the returned string by calling
|
|
|
|
.BR ldap_memfree (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
2006-10-10 05:17:43 +08:00
|
|
|
must be a
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "char *" ;
|
|
|
|
the library duplicates the corresponding string.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_HOST_NAME
|
|
|
|
Sets/gets a space-separated list of hosts to be contacted by the library
|
|
|
|
when trying to establish a connection.
|
|
|
|
This is now deprecated in favor of
|
|
|
|
.BR LDAP_OPT_URI .
|
|
|
|
.BR outvalue
|
2007-10-18 00:32:11 +08:00
|
|
|
must be a
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "char **" ,
|
|
|
|
and the caller is responsible of freeing the resulting string by calling
|
|
|
|
.BR ldap_memfree (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
2006-10-10 05:17:43 +08:00
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const char *" ;
|
2009-08-20 03:00:48 +08:00
|
|
|
the library duplicates the corresponding string.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_MATCHED_DN
|
|
|
|
Sets/gets a string containing the matched DN associated to the LDAP handle.
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
|
|
|
and the caller is responsible of freeing the returned string by calling
|
|
|
|
.BR ldap_memfree (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const char *" ;
|
2009-08-20 03:00:48 +08:00
|
|
|
the library duplicates the corresponding string.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_NETWORK_TIMEOUT
|
|
|
|
Sets/gets the network timeout value after which
|
|
|
|
.BR poll (2)/ select (2)
|
|
|
|
following a
|
|
|
|
.BR connect (2)
|
|
|
|
returns in case of no activity.
|
2007-02-06 04:43:12 +08:00
|
|
|
.B outvalue
|
2007-10-18 00:32:11 +08:00
|
|
|
must be a
|
|
|
|
.BR "struct timeval **"
|
|
|
|
(the caller has to free
|
|
|
|
.BR *outvalue ) ,
|
2007-02-06 04:43:12 +08:00
|
|
|
and
|
|
|
|
.B invalue
|
2006-10-10 05:17:43 +08:00
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const struct timeval *" .
|
|
|
|
They cannot be NULL. Using a struct with seconds set to \-1 results
|
2007-02-06 04:43:12 +08:00
|
|
|
in an infinite timeout, which is the default.
|
2009-08-20 03:00:48 +08:00
|
|
|
This option is OpenLDAP specific.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_PROTOCOL_VERSION
|
|
|
|
Sets/gets the protocol version.
|
|
|
|
.BR outvalue
|
|
|
|
and
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_REFERRAL_URLS
|
|
|
|
Sets/gets an array containing the referral URIs associated to the LDAP handle.
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char ***" ,
|
|
|
|
and the caller is responsible of freeing the returned string by calling
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR ldap_memvfree (3),
|
2009-08-20 03:00:48 +08:00
|
|
|
while
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be a NULL-terminated
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "char *const *" ;
|
2009-08-20 03:00:48 +08:00
|
|
|
the library duplicates the corresponding string.
|
|
|
|
This option is OpenLDAP specific.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_REFERRALS
|
|
|
|
Determines whether the library should implicitly chase referrals or not.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ;
|
|
|
|
its value should either be
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR LDAP_OPT_OFF
|
|
|
|
or
|
|
|
|
.BR LDAP_OPT_ON .
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
|
|
|
.\".TP
|
|
|
|
.\".B LDAP_OPT_REFHOPLIMIT
|
|
|
|
.\"This option is OpenLDAP specific.
|
|
|
|
.\"It is not currently implemented.
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2006-10-10 05:17:43 +08:00
|
|
|
.B LDAP_OPT_RESTART
|
|
|
|
Determines whether the library should implicitly restart connections (FIXME).
|
|
|
|
.BR invalue
|
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ;
|
|
|
|
its value should either be
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR LDAP_OPT_OFF
|
|
|
|
or
|
|
|
|
.BR LDAP_OPT_ON .
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_RESULT_CODE
|
|
|
|
Sets/gets the LDAP result code associated to the handle.
|
|
|
|
This option was formerly known as
|
|
|
|
.BR LDAP_OPT_ERROR_NUMBER .
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" .
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR "int *" .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_SERVER_CONTROLS
|
|
|
|
Sets/gets the server-side controls to be used for all operations.
|
|
|
|
This is now deprecated as modern LDAP C API provides replacements
|
|
|
|
for all main operations which accepts server-side controls as
|
|
|
|
explicit arguments; see for example
|
|
|
|
.BR ldap_search_ext (3),
|
|
|
|
.BR ldap_add_ext (3),
|
|
|
|
.BR ldap_modify_ext (3)
|
|
|
|
and so on.
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "LDAPControl ***" ,
|
|
|
|
and the caller is responsible of freeing the returned controls, if any,
|
|
|
|
by calling
|
|
|
|
.BR ldap_controls_free (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "LDAPControl *const *" ;
|
2006-10-10 05:17:43 +08:00
|
|
|
the library duplicates the controls passed via
|
|
|
|
.BR invalue .
|
|
|
|
.TP
|
2010-10-23 05:45:48 +08:00
|
|
|
.B LDAP_OPT_SESSION_REFCNT
|
|
|
|
Returns the reference count associated with the LDAP handle passed in as
|
|
|
|
.BR ld ;
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "int *" .
|
|
|
|
This is a read-only, handle-specific option.
|
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_SIZELIMIT
|
|
|
|
Sets/gets the value that defines the maximum number of entries
|
|
|
|
to be returned by a search operation.
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ,
|
|
|
|
while
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" ;
|
|
|
|
They cannot be NULL.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_SOCKBUF
|
|
|
|
Returns a pointer to the socket buffer of the LDAP handle passed in as
|
|
|
|
.BR ld ;
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be a
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "Sockbuf **" .
|
2009-08-27 06:52:09 +08:00
|
|
|
This is a read-only, handle-specific option.
|
2009-08-20 03:00:48 +08:00
|
|
|
This option is OpenLDAP specific.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_TIMELIMIT
|
|
|
|
Sets/gets the value that defines the time limit after which
|
|
|
|
a search operation should be terminated by the server.
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-20 03:00:48 +08:00
|
|
|
must be
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const int *" ,
|
|
|
|
while
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "int *" ,
|
|
|
|
and they cannot be NULL.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_TIMEOUT
|
|
|
|
Sets/gets a timeout value for the synchronous API calls.
|
|
|
|
.B outvalue
|
2006-10-10 05:17:43 +08:00
|
|
|
must be a
|
2009-08-20 03:00:48 +08:00
|
|
|
.BR "struct timeval **"
|
|
|
|
(the caller has to free
|
|
|
|
.BR *outvalue ) ,
|
|
|
|
and
|
|
|
|
.B invalue
|
|
|
|
must be a
|
|
|
|
.BR "struct timeval *" ,
|
|
|
|
and they cannot be NULL. Using a struct with seconds set to \-1 results
|
|
|
|
in an infinite timeout, which is the default.
|
|
|
|
This option is OpenLDAP specific.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_URI
|
2009-08-20 03:00:48 +08:00
|
|
|
Sets/gets a comma- or space-separated list of URIs to be contacted by the library
|
2006-10-10 05:17:43 +08:00
|
|
|
when trying to establish a connection.
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
|
|
|
and the caller is responsible of freeing the resulting string by calling
|
|
|
|
.BR ldap_memfree (3),
|
|
|
|
while
|
|
|
|
.BR invalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const char *" ;
|
2006-10-10 05:17:43 +08:00
|
|
|
the library parses the string into a list of
|
|
|
|
.BR LDAPURLDesc
|
|
|
|
structures, so the invocation of
|
|
|
|
.BR ldap_set_option (3)
|
|
|
|
may fail if URL parsing fails.
|
2009-08-20 03:00:48 +08:00
|
|
|
URIs may only contain the
|
|
|
|
.BR schema ,
|
|
|
|
the
|
|
|
|
.BR host ,
|
|
|
|
and the
|
|
|
|
.BR port
|
|
|
|
fields.
|
|
|
|
This option is OpenLDAP specific.
|
2009-08-20 03:32:09 +08:00
|
|
|
.SH SASL OPTIONS
|
|
|
|
The SASL options are OpenLDAP specific.
|
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_AUTHCID
|
|
|
|
Gets the SASL authentication identity;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
its content needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_AUTHZID
|
|
|
|
Gets the SASL authorization identity;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
its content needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_MAXBUFSIZE
|
|
|
|
Gets/sets SASL maximum buffer size;
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const ber_len_t *" ,
|
|
|
|
while
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
2009-08-20 04:15:39 +08:00
|
|
|
must be
|
|
|
|
.BR "ber_len_t *" .
|
|
|
|
See also
|
|
|
|
.BR LDAP_OPT_X_SASL_SECPROPS .
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_MECH
|
|
|
|
Gets the SASL mechanism;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
its content needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_MECHLIST
|
|
|
|
Gets the list of the available mechanisms,
|
|
|
|
in form of a NULL-terminated array of strings;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
2009-08-20 04:15:39 +08:00
|
|
|
must be
|
|
|
|
.BR "char ***" .
|
2009-08-27 06:52:09 +08:00
|
|
|
The caller must not free or otherwise muck with it.
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2012-10-11 23:37:33 +08:00
|
|
|
.B LDAP_OPT_X_SASL_NOCANON
|
2009-08-20 04:15:39 +08:00
|
|
|
Sets/gets the NOCANON flag.
|
|
|
|
When unset, the hostname is canonicalized.
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
its value should either be
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR LDAP_OPT_OFF
|
|
|
|
or
|
|
|
|
.BR LDAP_OPT_ON .
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2009-08-20 04:15:39 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_SASL_REALM
|
|
|
|
Gets the SASL realm;
|
|
|
|
.BR outvalue
|
2009-08-20 03:32:09 +08:00
|
|
|
must be a
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
its content needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_SASL_SECPROPS
|
2009-08-20 04:15:39 +08:00
|
|
|
Sets the SASL secprops;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR invalue
|
|
|
|
must be a
|
|
|
|
.BR "char *" ,
|
|
|
|
containing a comma-separated list of properties.
|
|
|
|
Legal values are:
|
|
|
|
.BR none ,
|
|
|
|
.BR nodict ,
|
|
|
|
.BR noplain ,
|
|
|
|
.BR noactive ,
|
|
|
|
.BR passcred ,
|
|
|
|
.BR forwardsec ,
|
|
|
|
.BR noanonymous ,
|
|
|
|
.BR minssf=<minssf> ,
|
|
|
|
.BR maxssf=<maxssf> ,
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR maxbufsize=<maxbufsize> .
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_SSF
|
|
|
|
Gets the SASL SSF;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR outvalue
|
2009-08-20 04:15:39 +08:00
|
|
|
must be a
|
|
|
|
.BR "ber_len_t *" .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_SASL_SSF_EXTERNAL
|
|
|
|
Sets the SASL SSF value related to an authentication
|
|
|
|
performed using an EXTERNAL mechanism;
|
|
|
|
.BR invalue
|
|
|
|
must be a
|
2009-08-20 06:34:16 +08:00
|
|
|
.BR "const ber_len_t *" .
|
2009-08-20 03:32:09 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_SASL_SSF_MAX
|
|
|
|
Gets/sets SASL maximum SSF;
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const ber_len_t *" ,
|
|
|
|
while
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "ber_len_t *" .
|
|
|
|
See also
|
|
|
|
.BR LDAP_OPT_X_SASL_SECPROPS .
|
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_SASL_SSF_MIN
|
|
|
|
Gets/sets SASL minimum SSF;
|
2009-08-20 03:32:09 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const ber_len_t *" ,
|
|
|
|
while
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "ber_len_t *" .
|
|
|
|
See also
|
|
|
|
.BR LDAP_OPT_X_SASL_SECPROPS .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_SASL_USERNAME
|
|
|
|
Gets the SASL username;
|
|
|
|
.BR outvalue
|
|
|
|
must be a
|
|
|
|
.BR "char **" .
|
2009-08-20 06:34:16 +08:00
|
|
|
Its content needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 04:27:10 +08:00
|
|
|
.SH TCP OPTIONS
|
|
|
|
The TCP options are OpenLDAP specific.
|
|
|
|
Mainly intended for use with Linux, they may not be portable.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_KEEPALIVE_IDLE
|
|
|
|
Sets/gets the number of seconds a connection needs to remain idle
|
|
|
|
before TCP starts sending keepalive probes.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_KEEPALIVE_PROBES
|
|
|
|
Sets/gets the maximum number of keepalive probes TCP should send
|
|
|
|
before dropping the connection.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_KEEPALIVE_INTERVAL
|
|
|
|
Sets/gets the interval in seconds between individual keepalive probes.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2009-08-20 03:00:48 +08:00
|
|
|
.SH TLS OPTIONS
|
|
|
|
The TLS options are OpenLDAP specific.
|
2009-08-20 04:15:39 +08:00
|
|
|
.\".TP
|
|
|
|
.\".B LDAP_OPT_X_TLS
|
|
|
|
.\"Sets/gets the TLS mode.
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CACERTDIR
|
|
|
|
Sets/gets the path of the directory containing CA certificates.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CACERTFILE
|
2009-08-27 06:32:09 +08:00
|
|
|
Sets/gets the full-path of the CA certificate file.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2006-10-10 05:17:43 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CERTFILE
|
2009-08-27 06:32:09 +08:00
|
|
|
Sets/gets the full-path of the certificate file.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2013-09-10 02:41:28 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CIPHER
|
|
|
|
Gets the cipher being used on an established TLS session.
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CIPHER_SUITE
|
|
|
|
Sets/gets the allowed cipher suite.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CONNECT_ARG
|
|
|
|
Sets/gets the connection callback argument.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const void *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "void **" .
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CONNECT_CB
|
|
|
|
Sets/gets the connection callback handle.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const LDAP_TLS_CONNECT_CB *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "LDAP_TLS_CONNECT_CB **" .
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_CRLCHECK
|
|
|
|
Sets/gets the CRL evaluation strategy, one of
|
|
|
|
.BR LDAP_OPT_X_TLS_CRL_NONE ,
|
|
|
|
.BR LDAP_OPT_X_TLS_CRL_PEER ,
|
|
|
|
or
|
|
|
|
.BR LDAP_OPT_X_TLS_CRL_ALL .
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
2009-08-20 03:00:48 +08:00
|
|
|
Requires OpenSSL.
|
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CRLFILE
|
|
|
|
Sets/gets the full-path of the CRL file.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-27 06:57:22 +08:00
|
|
|
This option is only valid for GnuTLS.
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_CTX
|
2009-08-27 07:21:13 +08:00
|
|
|
Sets/gets the TLS library context. New TLS sessions will inherit their
|
|
|
|
default settings from this library context.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const void *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "void **" .
|
2009-08-27 07:12:47 +08:00
|
|
|
When using the OpenSSL library this is an SSL_CTX*. When using other
|
2009-08-27 07:17:43 +08:00
|
|
|
crypto libraries this is a pointer to an OpenLDAP private structure.
|
|
|
|
Applications generally should not use this option or attempt to
|
|
|
|
manipulate this structure.
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_DHFILE
|
|
|
|
Gets/sets the full-path of the file containing the parameters
|
|
|
|
for Diffie-Hellman ephemeral key exchange.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2013-09-10 02:41:28 +08:00
|
|
|
Ignored by Mozilla NSS.
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_ECNAME
|
|
|
|
Gets/sets the name of the curve used for
|
|
|
|
elliptic curve key exchanges.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
|
|
|
Ignored by GnuTLS and Mozilla NSS. In GnuTLS a curve may be selected
|
|
|
|
in the cipher suite specification.
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_KEYFILE
|
2009-08-27 06:32:09 +08:00
|
|
|
Sets/gets the full-path of the certificate key file.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2009-08-20 04:15:39 +08:00
|
|
|
.TP
|
2009-08-20 03:00:48 +08:00
|
|
|
.B LDAP_OPT_X_TLS_NEWCTX
|
2009-08-27 07:21:13 +08:00
|
|
|
Instructs the library to create a new TLS library context.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" .
|
|
|
|
A non-zero value pointed to by
|
2006-10-10 05:17:43 +08:00
|
|
|
.BR invalue
|
2009-08-27 07:21:13 +08:00
|
|
|
tells the library to create a context for a server.
|
2009-08-20 03:00:48 +08:00
|
|
|
.TP
|
2013-09-10 19:26:51 +08:00
|
|
|
.B LDAP_OPT_X_TLS_PEERCERT
|
|
|
|
Gets the peer's certificate in DER format from an established TLS session.
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "struct berval *" ,
|
|
|
|
and the data it returns needs to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
|
|
|
.TP
|
2009-08-20 04:15:39 +08:00
|
|
|
.B LDAP_OPT_X_TLS_PROTOCOL_MIN
|
|
|
|
Sets/gets the minimum protocol version.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const int *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "int *" .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_RANDOM_FILE
|
|
|
|
Sets/gets the random file when
|
2009-08-20 06:34:16 +08:00
|
|
|
.B /dev/random
|
2009-08-20 04:15:39 +08:00
|
|
|
and
|
2009-08-20 06:34:16 +08:00
|
|
|
.B /dev/urandom
|
2009-08-20 04:15:39 +08:00
|
|
|
are not available.
|
|
|
|
.BR invalue
|
|
|
|
must be
|
|
|
|
.BR "const char *" ;
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
2009-08-20 06:34:16 +08:00
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2011-02-01 05:13:11 +08:00
|
|
|
Ignored by GnuTLS older than version 2.2. Ignored by Mozilla NSS.
|
2009-08-20 04:15:39 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_REQUIRE_CERT
|
|
|
|
Sets/gets the peer certificate checking strategy,
|
|
|
|
one of
|
|
|
|
.BR LDAP_OPT_X_TLS_NEVER ,
|
|
|
|
.BR LDAP_OPT_X_TLS_HARD ,
|
|
|
|
.BR LDAP_OPT_X_TLS_DEMAND ,
|
|
|
|
.BR LDAP_OPT_X_TLS_ALLOW ,
|
|
|
|
.BR LDAP_OPT_X_TLS_TRY .
|
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_SSL_CTX
|
2009-08-27 07:17:43 +08:00
|
|
|
Gets the TLS session context associated with this handle.
|
2009-08-20 04:15:39 +08:00
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "void **" .
|
2009-08-27 07:12:47 +08:00
|
|
|
When using the OpenSSL library this is an SSL*. When using other
|
2009-08-27 07:17:43 +08:00
|
|
|
crypto libraries this is a pointer to an OpenLDAP private structure.
|
|
|
|
Applications generally should not use this option.
|
2013-09-10 02:41:28 +08:00
|
|
|
.TP
|
|
|
|
.B LDAP_OPT_X_TLS_VERSION
|
|
|
|
Gets the TLS version being used on an established TLS session.
|
|
|
|
.BR outvalue
|
|
|
|
must be
|
|
|
|
.BR "char **" ,
|
|
|
|
and its contents need to be freed by the caller using
|
|
|
|
.BR ldap_memfree (3).
|
2006-10-10 05:17:43 +08:00
|
|
|
.SH ERRORS
|
|
|
|
On success, the functions return
|
|
|
|
.BR LDAP_OPT_SUCCESS ,
|
|
|
|
while they may return
|
|
|
|
.B LDAP_OPT_ERROR
|
|
|
|
to indicate a generic option handling error.
|
|
|
|
Occasionally, more specific errors can be returned, like
|
|
|
|
.B LDAP_NO_MEMORY
|
|
|
|
to indicate a failure in memory allocation.
|
|
|
|
.SH NOTES
|
|
|
|
The LDAP libraries with the
|
|
|
|
.B LDAP_OPT_REFERRALS
|
|
|
|
option set to
|
|
|
|
.B LDAP_OPT_ON
|
|
|
|
(default value) automatically follow referrals using an anonymous bind.
|
|
|
|
Application developers are encouraged to either implement consistent
|
|
|
|
referral chasing features, or explicitly disable referral chasing
|
|
|
|
by setting that option to
|
|
|
|
.BR LDAP_OPT_OFF .
|
2009-08-20 03:00:48 +08:00
|
|
|
.P
|
|
|
|
The protocol version used by the library defaults to LDAPv2 (now historic),
|
|
|
|
which corresponds to the
|
|
|
|
.B LDAP_VERSION2
|
|
|
|
macro.
|
|
|
|
Application developers are encouraged to explicitly set
|
|
|
|
.B LDAP_OPT_PROTOCOL_VERSION
|
|
|
|
to LDAPv3, using the
|
|
|
|
.B LDAP_VERSION3
|
|
|
|
macro, or to allow users to select the protocol version.
|
2006-10-10 05:17:43 +08:00
|
|
|
.SH SEE ALSO
|
|
|
|
.BR ldap (3),
|
|
|
|
.BR ldap_error (3),
|
|
|
|
.B RFC 4422
|
|
|
|
(http://www.rfc-editor.org),
|
|
|
|
.SH ACKNOWLEDGEMENTS
|
2007-01-03 04:25:16 +08:00
|
|
|
.so ../Project
|