Ignore:
Timestamp:
09/17/09 17:39:22 (15 years ago)
Author:
eduardoalex
Message:

Ticket #421 - Ajuste no tratamento do referral para catalogo externo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.bo_ldap_manager.inc.php

    r880 r1419  
    285285                        include(PHPGW_INCLUDE_ROOT . '/contactcenter/setup/external_catalogs.inc.php' ); 
    286286                        //include('external_catalogs.inc.php' ); 
    287  
     287                         
    288288                        if (!$external_srcs[$id_source]) 
    289289                        { 
    290290                                return null; 
    291291                        } 
    292  
     292                         
    293293                        // calls test_connection first. If succeeded continue, return error message otherwise. 
    294294                        if (!($response = $this->test_connection($external_srcs[$id_source]['host'], $external_srcs[$id_source]['acc'], $external_srcs[$id_source]['pw'], 10))) 
     
    468468                                // and whose attribute phpgwAccountVisible value is different from -1 
    469469                                $filter = '(&(!(objectClass='.$objectClass.')) (!(phpgwAccountVisible=-1)))'; 
    470                         } 
    471                         $context = preg_replace("/dc=(.*)/i",$this->srcs[$id_source]['dn'],$context); 
     470                                $context = preg_replace("/dc=(.*)/i",$this->srcs[$id_source]['dn'],$context);    
     471                        } 
     472                         
    472473                        $result_res = @ldap_list($resource,  $context, $filter, array(), 0, 0); 
    473474                        if (!$result_res) 
Note: See TracChangeset for help on using the changeset viewer.