Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2258598

Summary: [RFE] Provide a history for 'LastLoginTime'
Product: Red Hat Directory Server Reporter: thierry bordaz <tbordaz>
Component: 389-ds-baseAssignee: Jamie Chapman <jachapma>
Status: CLOSED ERRATA QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: low Docs Contact: Evgenia Martynyuk <emartyny>
Priority: unspecified    
Version: 12.4CC: bsmejkal, idm-ds-dev-bugs, musoni
Target Milestone: DS12.4Keywords: FutureFeature, TestCaseProvided, Triaged
Target Release: dirsrv-12.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: redhat-ds-12-9040020240116164822-1674d574 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-07 00:15:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description thierry bordaz 2024-01-16 13:06:10 UTC
Description of problem:
This RFE is a RHDS clone of RHEL bug 1680061

When a user did a successfully bind, the "LastLoginTime" attribute is updated. We have now a request from our security department to display the users last successful bind before the current one. When we just read out this attribute the value is already updated, so that the user did not see his real last successful
login, in fact he sees the current login date and time.

Version-Release number of selected component (if applicable):
  RHDS 10

Actual results:
  There is no history of last logins available, only the last login time.

Expected results:
  A history of last logins is available.

Additional info:
  In our scenario, only the login time before the (currently available) last login time is needed - additional to the usual "LastLoginTime".

Comment 5 bsmejkal 2024-03-07 13:04:37 UTC
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.9.18, pytest-7.4.4, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.9.18', 'Platform': 'Linux-5.14.0-427.el9.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '7.4.4', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '3.1.1', 'html': '4.1.1', 'libfaketime': '0.1.2', 'flaky': '3.7.0'}}
389-ds-base: 2.4.5-2.module+el9dsrv+21124+30a62ae9
nss: 3.90.0-6.el9_3
nspr: 4.35.0-6.el9_3
openldap: 2.6.6-1.el9
cyrus-sasl: 2.1.27-21.el9
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests
configfile: pytest.ini
plugins: metadata-3.1.1, html-4.1.1, libfaketime-0.1.2, flaky-3.7.0
collected 18 items                                                                                                                                                                                                                           

dirsrvtests/tests/suites/plugins/accpol_test.py::test_glact_inact PASSED                                                                                                                                                               [  5%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glremv_lastlogin PASSED                                                                                                                                                          [ 11%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_login_history_valid_values PASSED                                                                                                                                                [ 16%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_lastlogin_history_size_zero PASSED                                                                                                                                               [ 22%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_lastlogin_history_size_negative PASSED                                                                                                                                           [ 27%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_lastlogin_history_size_non_integer PASSED                                                                                                                                        [ 33%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glact_login PASSED                                                                                                                                                               [ 38%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glinact_limit PASSED                                                                                                                                                             [ 44%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glnologin_attr PASSED                                                                                                                                                            [ 50%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glnoalt_stattr PASSED                                                                                                                                                            [ 55%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glattr_modtime PASSED                                                                                                                                                            [ 61%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glnoalt_nologin PASSED                                                                                                                                                           [ 66%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glinact_nsact PASSED                                                                                                                                                             [ 72%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glinact_acclock PASSED                                                                                                                                                           [ 77%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_glnact_pwexp PASSED                                                                                                                                                              [ 83%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_locact_inact PASSED                                                                                                                                                              [ 88%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_locinact_modrdn PASSED                                                                                                                                                           [ 94%]
dirsrvtests/tests/suites/plugins/accpol_test.py::test_locact_modrdn PASSED                                                                                                                                                             [100%]

================================================================================================= 18 passed, 8 warnings in 681.31s (0:11:21) =================================================================================================

Marking as VERIFIED.

Comment 7 errata-xmlrpc 2024-05-07 00:15:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (redhat-ds:12 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2024:2718