Changeset 5141 for trunk/phpgwapi/inc/class.auth_ldap.inc.php
- Timestamp:
- 11/03/11 13:53:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.auth_ldap.inc.php
r4886 r5141 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','usercertificate'); 58 $attributes = array('uid','dn','givenName','sn','mail','uidNumber','gidNumber'); 59 59 60 $filter = $GLOBALS['phpgw_info']['server']['ldap_search_filter'] ? $GLOBALS['phpgw_info']['server']['ldap_search_filter'] : '(uid=%user)'; 60 61 $filter = str_replace(array('%user','%domain'),array($username,$GLOBALS['phpgw_info']['user']['domain']),$filter); … … 73 74 { 74 75 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'])83 76 { 84 77 return false;
Note: See TracChangeset
for help on using the changeset viewer.