1cldap_open(3LDAP)           LDAP Library Functions           cldap_open(3LDAP)
2
3
4

NAME

6       cldap_open - LDAP connectionless communication preparation
7

SYNOPSIS

9       cc[ flag... ] file... -lldap[ library... ]
10       #include <lber.h>
11       #include <ldap.h>
12
13       LDAP *cldap_open(char *host, int port);
14
15

PARAMETERS

17       host    The name of the host on which the LDAP server is running.
18
19
20       port    The port number to connect.
21
22

DESCRIPTION

24       The  cldap_open() function is called to prepare for connectionless LDAP
25       communication (over udp(7P)). It allocates an LDAP structure  which  is
26       passed to future search requests.
27
28
29       If  the default IANA-assigned port of 389 is desired,  LDAP_PORT should
30       be specified for port. host can contain a space-separated list of hosts
31       or  addresses  to try. cldap_open() returns a pointer to an LDAP struc‐
32       ture,   which   should   be   passed    to    subsequent    calls    to
33       cldap_search_s(3LDAP),          cldap_setretryinfo(3LDAP),          and
34       cldap_close(3LDAP). Certain fields in the LDAP structure can be set  to
35       indicate  size  limit,  time  limit, and how aliases are handled during
36       operations.  See ldap_open(3LDAP) and  <ldap.h> for more details.
37

ERRORS

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

ATTRIBUTES

43       See attributes(5) for a description of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       │Availability                 │SUNWcsl (32-bit)             │
51       │                             │SUNWcslx (64-bit)            │
52       │Interface Stability          │Evolving                     │
53       └─────────────────────────────┴─────────────────────────────┘
54

SEE ALSO

56       ldap(3LDAP)      cldap_search_s(3LDAP),      cldap_setretryinfo(3LDAP),
57       cldap_close(3LDAP), attributes(5), udp(7P)
58
59
60
61SunOS 5.11                        27 Jan 2002                cldap_open(3LDAP)
Impressum