[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Unix sockets connection to server ?
Another approach would be to have a routine which
created an ldap session which no protocol/address
information. It couldn't be used for LDAP ops
until either protocol/address information was
provided OR an established socket was provided.
Something like:
int rc;
LDAP *ld;
rc = ldap_create(&ld);
followed by:
rc = ldap_set_option(ld, LDAP_OPT_SESSION_SOCKET, &sd);
or:
rc = ldap_set_option(ld, LDAP_OPT_SESSION_URL, "ldap:///");
then: /* LDAP ops */
rc = ldap_unbind(ld);
----
Kurt D. Zeilenga <kurt@boolean.net>
Net Boolean Incorporated <http://www.boolean.net/>