Ignore:
Timestamp:
08/02/11 09:44:07 (13 years ago)
Author:
roberto.santosjunior
Message:

Ticket #1820 - Disponibilizar certificado na sessão do usuário.4867

File:
1 edited

Legend:

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

    r4791 r4886  
    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'); 
    59                          
     58                        $attributes     = array('uid','dn','givenName','sn','mail','uidNumber','gidNumber','usercertificate'); 
    6059                        $filter = $GLOBALS['phpgw_info']['server']['ldap_search_filter'] ? $GLOBALS['phpgw_info']['server']['ldap_search_filter'] : '(uid=%user)'; 
    6160                        $filter = str_replace(array('%user','%domain'),array($username,$GLOBALS['phpgw_info']['user']['domain']),$filter); 
     
    7473                                { 
    7574                                        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']) 
    7683                                        { 
    7784                                                return false; 
Note: See TracChangeset for help on using the changeset viewer.