|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70131 add custom ldap_*_option support
Submitted: 2015-07-24 16:38 UTC Modified: 2016-03-01 04:23 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: joe at exchangecore dot com Assigned: mcmic (profile)
Status: Closed Package: LDAP related
PHP Version: 5.5Git-2015-07-24 (Git) OS: Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: joe at exchangecore dot com
New email:
PHP Version: OS:


 [2015-07-24 16:38 UTC] joe at exchangecore dot com
Currently ldap_set_option is restricted to only the defined ldap options within PHP. However, there are numerous other options that are available if you know the correct value to pass in (Such as LDAP_OPT_X_TLS_*)

I think it would be appropriate to allow any value to be passed to the ldap_set_option or ldap_get_option 2nd parameter and simply pass it through as is. Alternatively, if we want to be more strict about it and allow for it to be passed more explicitely we could introduce a new LDAP_OPT_CUSTOM which behaves much like LDAP_OPT_SERVER_CONTROLS/LDAP_OPT_CLIENT_CONTROLS in that it could take in an array as the third param and these values would be passed directly though regardless as to whether or not they might or might not be valid.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-01 04:23 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: mcmic
 [2016-03-01 04:23 UTC]

After discussing with a few PHP-LDAP users, this is not the way we want to go.
We think it’s better to add support for needed options and not have some kind of joker letting anything get through.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 18:01:30 2024 UTC