Stig Venaas wrote: >On Thu, Jul 18, 2002 at 02:40:33PM -0500, Matthew Gray wrote: > > >>A while back there was some talk about adding ldap_search_ext() and >>ldap_create_*_control()-style functions to PHP to allow server(and maybe >>client someday?) controls to be sent along with a request. Is anybody >>working on or still thinking about doing this? >> >> > >I have done some investigation and I believe you can send pass all >the client and server controls you like using the existing >ldap_set_option() function. The only drawback is that when you set >controls using that, the controls will apply to all subsequent LDAP >operations. If you want some controls for just one operation you >will have to use ldap_set_option() again setting no controls or >new control list that you need for the next opertaion. > >Hastily written from an internet cafe in Kyoto (: > >Stig > > I've tried passing server controls with ldap_set_option() before, but I couldn't get it to work(I did not try very hard however). Still, I think it is a good idea to stick close to the C API. I like the names ldap_search_ext() and ldap_create_*_control(). Would it then make sense to have an ldap_create_control() function that would allow any OID for a control as well? Or if controls continue to be represented as arrays, ldap_create_*_control() functions might not even be needed. I would be happy to see and test any code for this.
Thanks, Matt -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php