Issue 7532 - File descriptor needed before sending a request
Summary: File descriptor needed before sending a request
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: 2.5.0
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 19:01 UTC by npmccallum@redhat.com
Modified: 2020-10-14 21:04 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 npmccallum@redhat.com 2013-02-27 19:01:33 UTC
Full_Name: Nathaniel McCallum
Version: git master
OS: fedora rawhide
URL: https://github.com/npmccallum/openldap/commit/4e12a8ca31bcc6ad91f036b9200d704dd223e947
Submission from: (NULL) (76.177.249.65)


For asynchronous usage, it is common to create a "write" callback and perform
all request sending in this callback from an internal queue. However, since
ldap_open() was deprecated, there is no way to ensure a connection is
established before the request is sent.

This patch adds a function: int ldap_connect(LDAP *ld). You can call this
function immediately after ldap_initialize() to ensure that a file descriptor is
created for polling. No default behaviour changes, so applications that don't
call ldap_connect() will always get the default lazy connection.

The attached file is derived from OpenLDAP Software. All of the modifications
to OpenLDAP Software represented in the following patch(es) were developed by
Red Hat. Red Hat has not assigned rights and/or interest in this work to any
party. I, Nathaniel McCallum am authorized by Red Hat, my employer, to release
this work
under the following terms.

Red Hat hereby places the following modifications to OpenLDAP Software (and only
these modifications) into the public domain. Hence, these modifications may be
freely used and/or redistributed for any purpose with or without attribution
and/or other notice.
Comment 1 Quanah Gibson-Mount 2017-04-12 15:22:04 UTC
changed notes
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2017-09-08 18:02:23 UTC
changed notes
Comment 3 Quanah Gibson-Mount 2017-09-08 18:40:55 UTC
changed notes
Comment 4 Quanah Gibson-Mount 2017-10-11 21:42:43 UTC
changed notes
changed state Open to Test
Comment 5 OpenLDAP project 2018-02-09 19:08:34 UTC
fixed in master (master only)
Comment 6 Quanah Gibson-Mount 2018-02-09 19:08:34 UTC
changed notes