cldap_open(3)

cldap_open3

Prepare for connectionless ldap communication

Usage

#include <lber.h>
#include <ldap.h>

LDAP *cldap_open(host, port) char *host; int port;

Overview

The cldap_open() routine is called to prepare for connectionless LDAP communication (over udp(4p)). It allocates an LDAP structure which is passed to future search requests.

cldap_open() takes host, the nane of the host on which the LDAP server is running, and port, the port number to which to connect. If the default IANA-assigned port of 389 is desired, LDAP_PORT should be specified for port. host can contain a space-separated list of hosts or addresses to try. cldap_open() returns a pointer to an LDAP structure, which should be passed to subsequent calls to cldap_search_s(3), cldap_setretryinfo(3), and cldap_close(3). Certain fields in the LDAP structure can be set to indicate size limit, time limit, and how aliases are handled during operations. See ldap_open(3) and <ldap.h> for more details.

Errors

If an error occurs, cldap_open() will return NULL and errno will be set appropriately.

Acknowledgements

OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release.

Releases

2 releases since Debian 2.1 (Slink); the text changed 1 time.

  1. 2.1
  2. 2.2

From libopenldap-dev 1:1.2.12-1 in Debian 2.2 (Potato). Also shipped by umich-libldap-dev. Parsed by carta from the page's man source.