Changeset 4886 for trunk/phpgwapi/inc/class.auth_ldap.inc.php
- Timestamp:
- 08/02/11 09:44:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.auth_ldap.inc.php
r4791 r4886 56 56 } 57 57 /* 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'); 60 59 $filter = $GLOBALS['phpgw_info']['server']['ldap_search_filter'] ? $GLOBALS['phpgw_info']['server']['ldap_search_filter'] : '(uid=%user)'; 61 60 $filter = str_replace(array('%user','%domain'),array($username,$GLOBALS['phpgw_info']['user']['domain']),$filter); … … 74 73 { 75 74 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']) 76 83 { 77 84 return false;
Note: See TracChangeset
for help on using the changeset viewer.