Skip to content

Commit

Permalink
Use ldap_lastauth_attribute option to display correct last auth attri…
Browse files Browse the repository at this point in the history
…bute
  • Loading branch information
coudot committed Nov 19, 2024
1 parent e2e0c0d commit 10498a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
$display_items = array('identifier', 'firstname', 'lastname', 'title', 'businesscategory', 'employeenumber', 'employeetype', 'mail', 'mailquota', 'phone', 'mobile', 'fax', 'postaladdress', 'street', 'postalcode', 'l', 'state', 'organizationalunit', 'organization', 'manager', 'secretary' );
$display_title = "fullname";
$display_show_undefined = false;
$display_password_items = array('pwdchangedtime', 'pwdfailuretime','pwdpolicysubentry', 'authtimestamp', 'pwdlastsuccess', 'pwdgraceusetime', 'starttime', 'endtime', 'created', 'modified');
$display_password_items = array('pwdchangedtime', 'pwdfailuretime','pwdpolicysubentry', 'authtimestamp', 'pwdgraceusetime', 'starttime', 'endtime', 'created', 'modified');
$display_password_expiration_date = true;

# Features
Expand Down
1 change: 1 addition & 0 deletions htdocs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
# Load specific directory settings
switch($ldap_type) {
case "openldap":
$openldap_attributes_map['authtimestamp']['attribute'] = strtolower($ldap_lastauth_attribute);
$attributes_map = array_merge($attributes_map, $openldap_attributes_map);
$directory = new \Ltb\Directory\OpenLDAP();
break;
Expand Down

0 comments on commit 10498a9

Please sign in to comment.