Changeset 3530 for branches/2.2/jabberit_messenger
- Timestamp:
- 11/23/10 15:22:12 (13 years ago)
- Location:
- branches/2.2/jabberit_messenger
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/jabberit_messenger/inc/class.contacts_im.inc.php
r3406 r3530 119 119 foreach($users as $tmp) 120 120 { 121 121 if ( !array_key_exists($tmp['ou'], $order) ) 122 122 $order[$tmp['ou']] = array(); 123 123 -
branches/2.2/jabberit_messenger/inc/class.ldap_im.inc.php
r3266 r3530 340 340 if( $this->ldap ) 341 341 { 342 $filter = "(o u=*)";342 $filter = "(objectClass=organizationalUnit)"; 343 343 $justthese = array("dn"); 344 344 $search = ldap_search($this->ldap, $this->ldap_context, $filter, $justthese); … … 464 464 $result[$j]['uid'] = $entry[$i][$this->attribute][0]; 465 465 $result[$j]['jid'] = $entry[$i][$this->attribute][0]; 466 467 $ou = explode("dc=", $entry[$i]['dn']); 468 $ou = explode("ou=",$ou[0]); 469 $ou = array_pop($ou); 470 $result[$j]['ou'] = strtoupper(substr($ou,0,strlen($ou)-1)); 466 467 if(!strpos($entry[$i]['dn'],"ou=") === FALSE){ 468 $ou = explode("dc=", $entry[$i]['dn']); 469 $ou = explode("ou=",$ou[0]); 470 $ou = array_pop($ou); 471 $result[$j]['ou'] = strtoupper(substr($ou,0,strlen($ou)-1)); 472 }else{ 473 $ou = explode("dc=", $entry[$i]['dn']); 474 $result[$j]['ou'] = strtoupper(substr($ou[1],0,strlen($ou[1])-1)); 475 } 471 476 472 477 if( $pOrg === "*" ) -
branches/2.2/jabberit_messenger/jmessenger/inc/class.LdapIM.inc.php
r3326 r3530 339 339 if( $this->ldap ) 340 340 { 341 $filter = "(o u=*)";341 $filter = "(objectClass=organizationalUnit)"; 342 342 $justthese = array("dn"); 343 343 $search = ldap_search($this->ldap, $this->ldap_context, $filter, $justthese);
Note: See TracChangeset
for help on using the changeset viewer.