[Tickets #8265] KOLAB backend: listUsers fails due to new LDAP2_Filter buildSearchQuery

bugs at horde.org bugs at horde.org
Tue May 12 12:34:23 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8265
------------------------------------------------------------------------------
  Ticket             | 8265
  Created By         | m.gabriel at das-netzwerkteam.de
  Summary            | KOLAB backend: listUsers fails due to new LDAP2_Filter
                     | buildSearchQuery
  Queue              | Horde Groupware Webmail Edition
  Version            | 1.2.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | 20090512_Kolab_Server_ldap-search.patch
------------------------------------------------------------------------------


m.gabriel at das-netzwerkteam.de (2009-05-12 08:34) wrote:

with my upgrade from horde-webmail-1.2.3-rc1 to 1.2.3-final (KOLAB  
backend usage) listing users was not possible any more. further code  
inspection showed a last minute introduction of PEAR's LDAP2 usage  
with the current KolabLDAP code.

applied you find a patch the renders user listing functional again,  
the problem probably can be traced back to some encoding issue /  
charset transformation (though i could not find, where):

horde-webmail-1.2.3-final with patch (note the values for '_filter'):
----------------------------------------------------
Net_LDAP2_Filter::__set_state(array(    '_subfilters' =>    array (     
  0 =>      Net_LDAP2_Filter::__set_state(array(        '_subfilters'  
=>        array (       ),        '_match' => NULL,        '_filter'  
=> '(sn=*)',        '_debug' => false,        '_default_error_mode' =>  
NULL,        '_default_error_options' => NULL,         
'_default_error_handler' => '',        '_error_class' => 'PEAR_Error',  
        '_expected_errors' =>        array (       ),     )),     1 =>  
      Net_LDAP2_Filter::__set_state(array(        '_subfilters' =>      
    array (       ),        '_match' => NULL,        '_filter' =>  
'(mail=*)',        '_debug' => false,        '_default_error_mode' =>  
NULL,        '_default_error_options' => NULL,         
'_default_error_handler' => '',        '_error_class' => 'PEAR_Error',  
        '_expected_errors' =>        array (       ),     )),     2 =>  
      Net_LDAP2_Filter::__set_state(array(        '_subfilters' =>      
    array (       ),  ... etc.

horde-webmail-1.2.3-final without patch (note the values for '_filter'):
----------------------------------------------------
Net_LDAP2_Filter::__set_state(array(    '_subfilters' =>    array (     
  0 =>      Net_LDAP2_Filter::__set_state(array(        '_subfilters'  
=>        array (       ),        '_match' => NULL,        '_filter'  
=> '(sn=\\2a)',        '_debug' => false,        '_default_error_mode'  
=> NULL,        '_default_error_options' => NULL,         
'_default_error_handler' => '',        '_error_class' => 'PEAR_Error',  
        '_expected_errors' =>        array (       ),     )),     1 =>  
      Net_LDAP2_Filter::__set_state(array(        '_subfilters' =>      
    array (       ),        '_match' => NULL,        '_filter' =>  
'(mail=\\2a)',        '_debug' => false,        '_default_error_mode'  
=> NULL,        '_default_error_options' => NULL,         
'_default_error_handler' => '',        '_error_class' => 'PEAR_Error',  
        '_expected_errors' =>        array (       ),     )),     2 =>  
      Net_LDAP2_Filter::__set_state(array(        '_subfilters' =>      
    array (       ), ... etc.







More information about the bugs mailing list