php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: joe at exchangecore dot com
New email:
PHP Version: OS:

 

 [2015-07-24 16:38 UTC] joe at exchangecore dot com
Description:
------------
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-01 04:23 UTC] mcmic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: mcmic
 [2016-03-01 04:23 UTC] mcmic@php.net
Hello,

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-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 16:03:56 2022 UTC