Changeset 951


Ignore:
Timestamp:
06/04/09 15:21:28 (15 years ago)
Author:
alexandrecorreia
Message:

Ticket #505 - Arquivos modificados para a administração de hosts virtuais no servidor Jabber.

File:
1 edited

Legend:

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

    r946 r951  
    2424        private $ldap_dn; 
    2525        private $ldap_host; 
     26        private $ldap_org; 
    2627        private $ldap_pass; 
    2728        private $max_result; 
     
    182183                        $this->ldap_context = $confHosts[$i]['contextLdap']; 
    183184                        $this->ldap_dn          = $confHosts[$i]['user']; 
     185                        $this->ldap_org         = $confHosts[$i]['org']; 
    184186                        $this->ldap_pass        = $confHosts[$i]['password']; 
    185  
     187                         
    186188                        $conn = $this->ldapCatalog(); 
    187189 
     
    190192                                $filter = "(&(phpgwaccounttype=u)(".$search ."))"; 
    191193                                $justthese = array("uid","uidNumber","cn","mail","phpgwAccountVisible","dn","jpegPhoto");                                                                
    192                                 $search1 = @ldap_search($conn, $this->ldap_context, $filter, $justthese, 0, $this->max_result + 1); 
     194                                $searchRoot = ( $this->ldap_org != "*" ) ? "ou=".$this->ldap_org.",".$this->ldap_context : $this->ldap_context; 
     195                                $search1 = @ldap_search($conn, $searchRoot, $filter, $justthese, 0, $this->max_result + 1); 
    193196                                $entry1 = @ldap_get_entries( $conn, $search1 ); 
    194  
    195197                                $result = $this->resultArray($entry1, $conn ); 
    196198 
Note: See TracChangeset for help on using the changeset viewer.