Full_Name: Matt Johnson Version: 2.4.40 OS: RedHat 7.2 (Maipo) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (15.203.233.86) The LDAPClient::modify logic has a leak within the ldap_create_assertion_control method. The leaky code occurs when the existing ld_errno is anything but 0 when the method is invoked. Not only that, but your assertion returned is NULL. The workaround is to call the following before calling ldap_create_assertion_control. int lvErrno = 0; ldap_set_option(myLDAPPtr, LDAP_OPT_RESULT_CODE, &lvErrno);
Hello, I encountered this bug as well while adding controls support into php-ldap (see https://github.com/php/php-src/pull/2640 - WIP) I used the work-around but it would still be better to fix this in openldap. Please consider merging the attached patch.
changed notes
changed notes changed state Open to Release moved from Incoming to Software Bugs
On Thu, Sep 07, 2017 at 03:42:50PM +0000, come@opensides.be wrote: > Hello, > > I encountered this bug as well while adding controls support into > php-ldap (see https://github.com/php/php-src/pull/2640 - WIP) > I used the work-around but it would still be better to fix this in > openldap. Hi Côme, thank you for your work, your patch has been pushed to master (2cac3ceb03530e3afe741d4a7d4d7e21059a6a97) and will also be part (8e6d1b8b81e94f89027a120ea862bd5938e953c6) of the upcoming 2.4.48 release. Thanks, -- Ondřej Kuzník Senior Software Engineer Symas Corporation http://www.symas.com Packaged, certified, and supported LDAP solutions powered by OpenLDAP
Fixed in master Fixed in RE24 (2.4.48)
changed notes changed state Release to Closed