Changeset 395 for trunk/admin/inc/class.sovoip.inc.php
- Timestamp:
- 08/14/08 11:44:42 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.sovoip.inc.php
r357 r395 73 73 { 74 74 $filter = "(&(phpgwAccountType=g)(objectClass=posixGroup))"; 75 $justthese = array("cn" );75 $justthese = array("cn","gidNumber"); 76 76 $search = ldap_list($this->ldap, $organization, $filter, $justthese); 77 77 $entry = ldap_get_entries( $this->ldap, $search ); 78 78 79 79 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 } 84 88 } 85 89 … … 93 97 { 94 98 $this->db = $GLOBALS['phpgw']->db; 95 96 99 if( $this->db ) 97 100 {
Note: See TracChangeset
for help on using the changeset viewer.