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().
*** This issue has been marked as a duplicate of issue 8671 ***