Issue 8834 - ldap_init_fd is documented but not in ldap.h
Summary: ldap_init_fd is documented but not in ldap.h
Status: VERIFIED DUPLICATE of issue 8671
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.45
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-05 10:38 UTC by cheimes@redhat.com
Modified: 2020-03-13 21:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description cheimes@redhat.com 2018-04-05 10:38:10 UTC
Full_Name: Christian Heimes
Version: 2.4.45
OS: Fedora
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2001:16b8:64c0:cb00:461d:ffb:6e2a:db60)


ldap_init_fd and LDAP_PROTO_* constants are documented in the man page of
ldap_initialize. However the function and its constants are not exposed in
ldap.h. They are only defined in the private header ldap_pvt.h.

It would be useful to have the function available for general use. I have
described one use case at
https://github.com/python-ldap/python-ldap/issues/178#issuecomment-372628773 .
An application can combine SRV lookup, getaddrinfo(), non-blocking socket
connect and poll() to efficiently locate a responding LDAP server, then pass the
connected socket fd to ldap_init_fd().
Comment 2 Quanah Gibson-Mount 2020-03-13 21:00:36 UTC

*** This issue has been marked as a duplicate of issue 8671 ***