Ignore:
Timestamp:
08/14/08 11:44:42 (16 years ago)
Author:
niltonneto
Message:

Alterações necessárias devido à mudança de implementação do método
memberships() da API, que traz somente o ID dos grupos agora.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/class.sovoip.inc.php

    r357 r395  
    7373                { 
    7474                        $filter = "(&(phpgwAccountType=g)(objectClass=posixGroup))"; 
    75                         $justthese = array("cn"); 
     75                        $justthese = array("cn","gidNumber"); 
    7676                        $search = ldap_list($this->ldap, $organization, $filter, $justthese); 
    7777                        $entry = ldap_get_entries( $this->ldap, $search ); 
    7878 
    7979                        if( $entry ) 
    80                         { 
    81                                 foreach($entry as $tmp) 
    82                                         if( $tmp['cn'][0] != "" ) 
    83                                                 $result_groups[] = $tmp['cn'][0]; 
     80                        {                                        
     81                                $idx = 0; 
     82                                foreach($entry as $tmp) { 
     83                                        if( $tmp['gidnumber'][0] != "" ){ 
     84                                                $result_groups[$idx]['gid'] = $tmp['gidnumber'][0]; 
     85                                                $result_groups[$idx++]['cn'] = $tmp['cn'][0];                                            
     86                                        } 
     87                                } 
    8488                        } 
    8589                         
     
    9397        { 
    9498                $this->db = $GLOBALS['phpgw']->db; 
    95                  
    9699                if( $this->db ) 
    97100                { 
Note: See TracChangeset for help on using the changeset viewer.