Ignore:
Timestamp:
10/07/09 16:34:46 (15 years ago)
Author:
eduardoalex
Message:

Ticket #681 - Criada a função para delegar evento

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r1495 r1500  
    772772                return null; 
    773773        } 
     774         
     775        function uid2uidnumber($uid) 
     776        { 
     777                // do not follow the referral 
     778                $this->ldapRootConnect(false); 
     779                if ($this->ds) 
     780                { 
     781                        $filter="(&(phpgwAccountType=u)(uid=$uid))"; 
     782                        $justthese = array("uidnumber"); 
     783                        $sr=@ldap_search($this->ds, $this->ldap_context, $filter, $justthese); 
     784                        if(!$sr) 
     785                                return false; 
     786                        $info = ldap_get_entries($this->ds, $sr); 
     787                        return $info[0]["uidnumber"][0]; 
     788                } 
     789                return false; 
     790        } 
    774791} 
    775792?> 
Note: See TracChangeset for help on using the changeset viewer.