.TH CLDAP_OPEN 3 "18 November 1994" "U-M LDAP LDVERSION" .SH NAME cldap_open \- Prepare for Connectionless LDAP Communication .SH SYNOPSIS .nf .ft B #include #include .LP .ft B LDAP *cldap_open(host, port) .ft char *host; int port; .SH DESCRIPTION .LP The .B cldap_open() routine is called to prepare for connectionless LDAP communication (over .BR udp (4p)). It allocates an LDAP structure which is passed to future search requests. .LP .B cldap_open() takes \fIhost\fP, the nane of the host on which the LDAP server is running, and \fIport\fP, the port number to which to connect. If the default IANA-assigned port of 389 is desired, LDAP_PORT should be specified for \fIport\fP. \fIhost\fP can contain a space-separated list of hosts or addresses to try. .B cldap_open() returns a pointer to an LDAP structure, which should be passed to subsequent calls to .BR cldap_search_s (3), .BR cldap_setretryinfo (3), and .BR 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 .BR ldap_open (3) and for more details. .SH ERRORS If an error occurs, .B cldap_open() will return NULL and errno will be set appropriately. .SH SEE ALSO .BR ldap (3) .BR cldap_search_s (3), .BR cldap_setretryinfo (3), .BR cldap_close (3), .BR udp (4p)