Ignore:
Timestamp:
11/03/11 13:53:15 (12 years ago)
Author:
wmerlotto
Message:

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, modulo phpgwapi.

File:
1 edited

Legend:

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

    r4886 r5141  
    5656                        } 
    5757                        /* find the dn for this uid, the uid is not always in the dn */ 
    58                         $attributes     = array('uid','dn','givenName','sn','mail','uidNumber','gidNumber','usercertificate'); 
     58                        $attributes     = array('uid','dn','givenName','sn','mail','uidNumber','gidNumber'); 
     59                         
    5960                        $filter = $GLOBALS['phpgw_info']['server']['ldap_search_filter'] ? $GLOBALS['phpgw_info']['server']['ldap_search_filter'] : '(uid=%user)'; 
    6061                        $filter = str_replace(array('%user','%domain'),array($username,$GLOBALS['phpgw_info']['user']['domain']),$filter); 
     
    7374                                { 
    7475                                        if($allValues[0]['uid'][0] != $username) 
    75                                         { 
    76                                                 return false; 
    77                                         } 
    78                                 } 
    79                                 if($_SESSION['login_certificate']) 
    80                                 { 
    81                                         # certificate not equal, not authenticate. 
    82                                         if($allValues[0]['usercertificate'][0] != $_SESSION['login_certificate']) 
    8376                                        { 
    8477                                                return false; 
Note: See TracChangeset for help on using the changeset viewer.