diff options
Diffstat (limited to 'src')
-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) { |