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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 09:01:27 2024 UTC