Changeset 1878


Ignore:
Timestamp:
12/18/09 16:39:06 (14 years ago)
Author:
alexandrecorreia
Message:

Ticket #808 - Busca implementada utilizando somente os grupos cadastrados.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jabberit_messenger/inc/class.ldap_im.inc.php

    r1876 r1878  
    337337                                $search1        = @ldap_search($this->ldap, $searchRoot, $filter, $justthese, 0, $this->max_result + 1); 
    338338                                $entry1         = @ldap_get_entries( $this->ldap, $search1 ); 
    339                                 $result         = $this->resultArray( $entry1, $this->ldap ); 
     339                                $result         = $this->resultArray( $entry1, $this->ldap, $this->ldap_org ); 
    340340 
    341341                                if( count($return) > 0 ) 
     
    367367        } 
    368368         
    369         private final function resultArray($pArray, $pConn) 
     369        private final function resultArray($pArray, $pConn, $pOrg = false) 
    370370        { 
    371371                $entry = $pArray; 
     
    384384                                $ou = explode("ou=",$ou[0]); 
    385385                                $ou = array_pop($ou); 
    386                                 $result[$j]['ou']       = strtoupper(substr($ou,0,strlen($ou)-1));                                       
     386                                $result[$j]['ou']       = strtoupper(substr($ou,0,strlen($ou)-1)); 
     387                                if( $pOrg === "*" ) 
     388                                        $result[$j]['ouAll'] = "*"; 
     389                                                                                 
    387390                                if( $entry[$i]['jpegphoto'][0] ) 
    388391                                { 
Note: See TracChangeset for help on using the changeset viewer.