diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-03-05 15:39:26 -0500 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-03-05 17:25:50 -0500 |
commit | 132ccd66fb7f7bf583a6ddbed031a2bf5eef473c (patch) | |
tree | d8356cdc4c71a6c5f038bf391aa4f22623580ac1 /server/responder | |
parent | 16802de42f27a9060eb395751e82c9ad85cb8fe3 (diff) | |
download | sssd-132ccd66fb7f7bf583a6ddbed031a2bf5eef473c.tar.gz sssd-132ccd66fb7f7bf583a6ddbed031a2bf5eef473c.tar.bz2 sssd-132ccd66fb7f7bf583a6ddbed031a2bf5eef473c.zip |
Implement GetCachedUsers in the InfoPipe
This function allows a caller to retrieve a list of users who have
logged in on the system, specifying an optional minimum last login
time to trim the list.
I modified sysdb_enumpwent to accept an optional search argument.
GetCachedUsers takes advantage of this argument to limit the search
by the last login time.
I also found and fixed a few additional low-memory conditions
around D-BUS message replies.
Diffstat (limited to 'server/responder')
-rw-r--r-- | server/responder/nss/nsssrv_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c index 130b8c66..94f92319 100644 --- a/server/responder/nss/nsssrv_cmd.c +++ b/server/responder/nss/nsssrv_cmd.c @@ -788,7 +788,7 @@ static void nss_cmd_setpw_dp_callback(uint16_t err_maj, uint32_t err_min, } ret = sysdb_enumpwent(cmdctx, cctx->nctx->sysdb, - dctx->domain, dctx->legacy, + dctx->domain, dctx->legacy, NULL, nss_cmd_setpwent_callback, cmdctx); if (ret != EOK) { DEBUG(1, ("Failed to make request to our cache!\n")); @@ -885,7 +885,7 @@ static int nss_cmd_setpwent_ext(struct cli_ctx *cctx, bool immediate) NULL, 0); } else { ret = sysdb_enumpwent(dctx, cctx->nctx->sysdb, - dctx->domain, dctx->legacy, + dctx->domain, dctx->legacy, NULL, nss_cmd_setpwent_callback, cmdctx); } if (ret != EOK) { |