LDAP Library Functions cldapopen(3LDAP)
NAME
cldapopen - LDAP connectionless communication preparation
SYNOPSIS
cc[ flag... ] file... -lldap[ library... ]
#include
#include
LDAP *cldapopen(char *host, int port);
PARAMETERS
host The name of the host on which the LDAP server is
running.
port The port number to connect.
DESCRIPTION
The cldapopen() function is called to prepare for connec-
tionless LDAP communication (over udp(7P)). It allocates an
LDAP structure which is passed to future search requests.
If the default IANA-assigned port of 389 is desired,
LDAPORT should be specified for port. host can contain a
space-separated list of hosts or addresses to try.
cldapopen() returns a pointer to an LDAP structure, which
should be passed to subsequent calls to
cldapsearchs(3LDAP), cldapsetretryinfo(3LDAP), and
cldapclose(3LDAP). Certain fields in the LDAP structure can
be set to indicate size limit, time limit, and how aliases
are handled during operations. See ldapopen(3LDAP) and
for more details.
ERORS
If an error occurs, cldapopen() will return NUL and
errno will be set appropriately.
ATRIBUTES
See attributes(5) for a description of the following attri-
butes:
SunOS 5.11 Last change: 27 Jan 2002 1
LDAP Library Functions cldapopen(3LDAP)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWcsl (32-bit)
SUNWcslx (64-bit)
Interface Stability Evolving
SEE ALSO
ldap(3LDAP) cldapsearchs(3LDAP),
cldapsetretryinfo(3LDAP), cldapclose(3LDAP), attri-
butes(5), udp(7P)
SunOS 5.11 Last change: 27 Jan 2002 2
|