Req #70131 [Opn->Csd]: add custom ldap_*_option support

From: Date: Tue, 01 Mar 2016 04:23:29 +0000
Subject: Req #70131 [Opn->Csd]: add custom ldap_*_option support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199542@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70131&edit=1

 ID:                 70131
 Updated by:         mcmic@php.net
 Reported by:        joe at exchangecore dot com
 Summary:            add custom ldap_*_option support
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            LDAP related
 Operating System:   Ubuntu
 PHP Version:        5.5Git-2015-07-24 (Git)
-Assigned To:        
+Assigned To:        mcmic
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2015-07-24 16:38:14] 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.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70131&edit=1


Thread (2 messages)

« previous php.bugs (#199542) next »