summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_sudo.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-10-16 11:53:24 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-11-15 20:20:18 +0100
commit6a31a971a376a992afb838fe60b311360c970267 (patch)
tree8a715cab753678a69f87a77f5345f4a1f572f6a6 /src/providers/ldap/sdap_sudo.c
parent7d056853e4a5fe6daa5743e38d21b4493f4fca27 (diff)
downloadsssd-6a31a971a376a992afb838fe60b311360c970267.tar.gz
sssd-6a31a971a376a992afb838fe60b311360c970267.tar.xz
sssd-6a31a971a376a992afb838fe60b311360c970267.zip
SYSDB: Drop the sysdb_ctx parameter from the sysdb_sudo.c module
Diffstat (limited to 'src/providers/ldap/sdap_sudo.c')
-rw-r--r--src/providers/ldap/sdap_sudo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index b8bc409ef..9da549ac8 100644
--- a/src/providers/ldap/sdap_sudo.c
+++ b/src/providers/ldap/sdap_sudo.c
@@ -250,8 +250,7 @@ static int sdap_sudo_setup_periodical_refresh(struct sdap_sudo_ctx *sudo_ctx)
}
}
- ret = sysdb_sudo_get_last_full_refresh(id_ctx->be->domain->sysdb,
- id_ctx->be->domain,
+ ret = sysdb_sudo_get_last_full_refresh(id_ctx->be->domain,
&last_full);
if (ret != EOK) {
return ret;
@@ -631,8 +630,7 @@ static void sdap_sudo_full_refresh_done(struct tevent_req *subreq)
state->sudo_ctx->full_refresh_done = true;
/* save the time in the sysdb */
- ret = sysdb_sudo_set_last_full_refresh(state->sysdb, state->domain,
- time(NULL));
+ ret = sysdb_sudo_set_last_full_refresh(state->domain, time(NULL));
if (ret != EOK) {
DEBUG(SSSDBG_MINOR_FAILURE, ("Unable to save time of "
"a successful full refresh\n"));