diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-02-17 18:35:31 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-23 16:16:25 -0500 |
commit | f8c6a449412c6d5aa86609584fe4e530fd51a4b1 (patch) | |
tree | f8159d8c625ad53a4ed04b699c422a82405718ba | |
parent | c24dd6734f36f13df84d9fdb28ce1be45451a41d (diff) | |
download | sssd-f8c6a449412c6d5aa86609584fe4e530fd51a4b1.tar.gz sssd-f8c6a449412c6d5aa86609584fe4e530fd51a4b1.tar.xz sssd-f8c6a449412c6d5aa86609584fe4e530fd51a4b1.zip |
Store lastLogin attribute when authenticating online
-rw-r--r-- | src/responder/pam/pamsrv_cmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/pam/pamsrv_cmd.c b/src/responder/pam/pamsrv_cmd.c index 254b18e59..8d67da1b3 100644 --- a/src/responder/pam/pamsrv_cmd.c +++ b/src/responder/pam/pamsrv_cmd.c @@ -417,6 +417,11 @@ static errno_t set_last_login(struct pam_auth_req *preq) goto fail; } + ret = sysdb_attrs_add_time_t(attrs, SYSDB_LAST_LOGIN, time(NULL)); + if (ret != EOK) { + goto fail; + } + ret = sysdb_get_ctx_from_list(preq->cctx->rctx->db_list, preq->domain, &dbctx); if (ret != EOK) { |