|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #69437 Support for LDAP control response
Submitted: 2015-04-13 13:24 UTC Modified: 2017-09-27 15:26 UTC
From: come dot bernigaud at opensides dot be Assigned: mcmic (profile)
Status: Closed Package: LDAP related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2015-04-13 13:24 UTC] come dot bernigaud at opensides dot be

We should be able to access LDAP control response in ldap_parse_result.
(As in

This would allow to use EXOP operation to change passwords, and to read ppolicy overlay answer, along with many other things.

There seems to have been several patches made for this over the years also I’m not sure why this never got merged in php-ldap.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-14 13:12 UTC] come dot bernigaud at opensides dot be
I opened for EXOP support as EXOP and controls are two separate issues.
Please consider this request is only about controls and the other one about EXOP support.
 [2015-06-10 10:53 UTC]
-Status: Open +Status: Assigned
 [2015-06-10 10:53 UTC]
-Assigned To: +Assigned To: mcmic
 [2017-01-10 07:50 UTC]
Are you still working on this?
 [2017-01-10 14:34 UTC]
-Assigned To: mcmic +Assigned To:
 [2017-07-05 14:46 UTC]
I fixed support for LDAP_OPT_SERVER_CONTROLS and LDAP_OPT_CLIENT_CONTROLS in ldap_get_option.
ldap_set_option already supported it so this should be enough to use controls but this is a bit lowlevel, datas will need to be DER encoded before being sent.

So we should still look into adding controls support for ldap standard operations.
 [2017-07-26 10:13 UTC]
-Assigned To: +Assigned To: mcmic
 [2017-09-27 15:26 UTC]
-Status: Assigned +Status: Closed
 [2017-09-27 15:26 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Support for controls will be available in PHP 7.3

Please open separate tickets if you find bugs or missing features in control support in PHP 7.3
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 12:01:29 2024 UTC