Copyright (C) 1990, Regents of the University of Michigan. All Rights Reserved.
Portions Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
cc[ flag... ] file... -lldap[ library... ] #include <lber.h> #include <ldap.h>
An application might use the LDAP client library functions as follows. The application would initialize a LDAP session with a LDAP server by calling ldap_init(3LDAP). Next, it authenticates to the LDAP server by calling ldap_sasl_bind(3LDAP) and friends. It may perform some LDAP operations and obtain results by calling ldap_search(3LDAP) and friends. To parse the results returned from these functions, it calls ldap_parse_result(3LDAP), ldap_next_entry(3LDAP), and ldap_first_entry(3LDAP) and others. It closes the LDAP session by calling ldap_unbind(3LDAP).
LDAP operations can be either synchronous or asynchronous. By convention, the names of the synchronous functions end with "_s." For example, a synchronous binding to the LDAP server can be performed by calling ldap_sasl_bind_s(3LDAP). Complete an asynchronous binding with ldap_sasl_bind(3LDAP). All synchronous functions return the actual outcome of the operation, either LDAP_SUCCESS or an error code. Asynchronous routines provide an invocation identifier which can be used to obtain the result of a specific operation by passing it to the ldap_result(3LDAP) function.
You can use ldap_first_entry(3LDAP) and ldap_next_entry(3LDAP) to step through and obtain a list of entries from a list of messages returned by a search result. ldap_count_entries(3LDAP) returns the number of entries contained in a list of messages. Call either ldap_first_attribute(3LDAP) and ldap_next_attribute(3LDAP) to step through a list of attributes associated with an entry. Retrieve the values of a given attribute by calling ldap_get_values(3LDAP) and ldap_get_values_len(3LDAP). Count the number of values returned by using ldap_count_values(3LDAP) and ldap_count_values_len(3LDAP).
Use the ldap_get_lang_values(3LDAP) and ldap_get_lang_values_len(3LDAP) to return an attribute's values that matches a specified language subtype. The ldap_get_lang_values() function returns an array of an attribute's string values that matches a specified language subtype. To retrieve the binary data from an attribute, call the ldap_get_lang_values_len() function instead.
Deprecated. Use ldap_init(3LDAP).
Initialize a session with a LDAP server without opening a connection to a server.
Obtain the result from a previous asynchronous operation.
Abandon or abort an asynchronous operation.
Asynchronously add an entry
Synchronously add an entry.
Asynchronously add an entry with support for LDAPv3 controls.
Synchronously add an entry with support for LDAPv3 controls.
Deprecated. Use ldap_sasl_bind(3LDAP) or ldap_simple_bind(3LDAP).
Asynchronously bind to the directory using SASL authentication
Synchronously bind to the directory using SASL authentication
Deprecated. Use ldap_sasl_bind_s(3LDAP) or ldap_simple_bind_s(3LDAP).
Asynchronously bind to the directory using simple authentication.
Synchronously bind to the directory using simple authentication.
Synchronously unbind from the LDAP server, close the connection, and dispose the session handle.
Synchronously unbind from the LDAP server and close the connection. ldap_unbind_ext() allows you to explicitly include both server and client controls in the unbind request.
Set callback function for obtaining credentials from a referral.
Create the in-memory client side cache.
Associate an in-memory cache that has been already created by calling the ldap_memcache_init(3LDAP) function with an LDAP connection handle.
Get the cache associated with the specified LDAP structure.
Flushes search requests from the cache.
Frees the specified LDAPMemCache structure pointed to by cache from memory.
Checks the cache for items that have expired and removes them.
Asynchronous compare with a directory entry.
Synchronous compare with a directory entry.
Asynchronous compare with a directory entry, with support for LDAPv3 controls.
Synchronous compare with a directory entry, with support for LDAPv3 controls.
Dispose of an LDAP control.
Dispose of an array of LDAP controls.
Asynchronously delete an entry.
Synchronously delete an entry.
Asynchronously delete an entry, with support for LDAPv3 controls.
Synchronously delete an entry, with support for LDAPv3 controls.
Read a sequence of templates from a LDAP template configuration file.
Read a sequence of templates from a buffer.
Dispose of the templates allocated.
Step through a list of continuation references from a search result.
Step through a list of continuation references from a search result.
Count the number of messages in a search result.
Step through a list of messages in a search result.
Count the messages in a list of messages in a search result.
Step through a list of messages in a search result.
Return the type of LDAP message.
Get first display template in a list.
Get next display template in a list.
Return template appropriate for the objectclass.
Return named template
Return attributes needed by the template.
Return first row of displayable items in a template.
Return next row of displayable items in a template.
Return first column of displayable items in a template.
Return next column of displayable items in a template.
Display an entry as text by using a display template.
Search for and display an entry as text by using a display template.
Display values as text.
Display an entry as HTML (HyperText Markup Language) by using a display template.
Search for and display an entry as HTML by using a display template.
Display values as HTML.
Deprecated. Use ldap_parse_result(3LDAP).
Deprecated. Use ldap_parse_result(3LDAP).
Convert LDAP error indication to a string.
Return first attribute name in an entry.
Return next attribute name in an entry.
Return first entry in a chain of search results.
Return next entry in a chain of search results.
Return number of entries in a search result.
Map from unfriendly to friendly names.
Free resources used by ldap_friendly(3LDAP).
Extract the DN from an entry.
Convert a DN into its component parts.
Convert a DNS-style DN into its component parts (experimental).
Check to see if a DN is a DNS-style DN (experimental).
Convert a DNS domain name into an X.500 distinguished name.
Convert a DN into user friendly form.
Return an attribute's values.
Return an attribute's values with lengths.
Free memory allocated by ldap_get_values(3LDAP).
Free memory allocated by ldap_get_values_len(3LDAP).
Return number of values.
Return number of values.
Initialize getfilter functions from a file.
Initialize getfilter functions from a buffer.
Free resources allocated by ldap_init_getfilter(3LDAP).
Return first search filter.
Return next search filter.
Construct an LDAP search filter from a pattern.
Set prefix and suffix for search filters.
Asynchronously modify an entry.
Synchronously modify an entry.
Asynchronously modify an entry, return value, and place message.
Synchronously modify an entry, return value, and place message.
Free array of pointers to mod structures used by ldap_modify(3LDAP).
Deprecated. Use ldap_rename(3LDAP) instead.
Deprecated. Use ldap_rename_s(3LDAP) instead.
Deprecated. Use ldap_rename(3LDAP) instead.
Depreciated. Use ldap_rename_s(3LDAP) instead.
Asynchronously modify the name of an LDAP entry.
Synchronously modify the name of an LDAP entry.
Free result messages.
Search for a message to parse.
Search for a message to parse.
Search for a message to parse.
Asynchronously search the directory.
Synchronously search the directory.
Asynchronously search the directory with support for LDAPv3 controls.
Synchronously search the directory with support for LDAPv3 controls.
Synchronously search the directory with support for a local timeout value.
User friendly search the directory.
User friendly search the directory with cancel.
User friendly search the directory with cancel and timeout.
Set filter file used by ldap_ufn(3LDAP) functions.
Set prefix used by ldap_ufn(3LDAP) functions.
Set timeout used by ldap_ufn(3LDAP) functions.
Check a URL string to see if it is an LDAP URL.
Break up an LDAP URL string into its components.
Free an LDAP URL structure.
Asynchronously search by using an LDAP URL.
Synchronously search by using an LDAP URL.
Asynchronously search by using an LDAP URL, with support for a local timeout value.
Locate the LDAP URL associated with a DNS domain name.
Locate the LDAP URL associated with a distinguished name.
Initialize searchprefs functions from a file.
Initialize searchprefs functions from a buffer.
Free memory allocated by searchprefs functions.
Return first searchpref object.
Return next searchpref object.
Sort a list of search results.
Sort a list of attribute values.
Case insensitive string comparison.
Set character set translation functions used by LDAP library.
Translate from the T.61 character set to another character set.
Translate to the T.61 character set from another character set.
Enable or disable character translation for an LDAP entry result.
Get version information about the LDAP SDK for C.
Return an attribute's value that matches a specified language subtype.
Return an attribute's value that matches a specified language subtype along with lengths.
Get the LDAP controls included with a directory entry in a set of search results.
Get session preferences in an LDAP structure.
Set session preferences in an LDAP structure.
Free memory allocated by LDAP API functions.
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Stability Level Evolving |