Changeset 425 for trunk/phpgwapi


Ignore:
Timestamp:
09/12/08 16:56:42 (16 years ago)
Author:
niltonneto
Message:

Correções na função get_account_name da classe AccountsLDAP da API.
Atributo escrito de forma incorreta, e search com phpgwaccouttype errado.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.accounts_ldap.inc.php

    r397 r425  
    10991099 
    11001100                        /* jakjr: using justthese with ldap_search */ 
    1101                         $justthese = array("cn","uid","givename","sn"); 
     1101                        $justthese = array("cn","uid","givenname","sn"); 
    11021102 
    11031103                        /* search the dn for the given uid */ 
     
    11081108                        else 
    11091109                        { 
    1110                                 $sri = @ldap_search($this->ds, $this->user_context, '(&(gidnumber=' . (int)$account_id . ')(phpgwAccountType=g))', $justthese); 
     1110                                $sri = @ldap_search($this->ds, $this->user_context, '(&(uidnumber=' . (int)$account_id . ')(phpgwAccountType=u))', $justthese); 
    11111111                        } 
    11121112                        if(!$sri) 
Note: See TracChangeset for help on using the changeset viewer.