diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-05-07 13:50:52 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:37:17 -0400 |
commit | 0f808798eefaedc3eb241f26aa49680d87f22336 (patch) | |
tree | fefcf767d483fcfaa7ee1080d64ed94091f95ecf /src | |
parent | c407643004a02566e35a864ba0d8b0c0f88d9d67 (diff) | |
download | sssd-0f808798eefaedc3eb241f26aa49680d87f22336.tar.gz sssd-0f808798eefaedc3eb241f26aa49680d87f22336.tar.bz2 sssd-0f808798eefaedc3eb241f26aa49680d87f22336.zip |
sysdb: remove sudo_set/get_refreshed
Diffstat (limited to 'src')
-rw-r--r-- | src/db/sysdb_sudo.c | 57 | ||||
-rw-r--r-- | src/db/sysdb_sudo.h | 6 |
2 files changed, 0 insertions, 63 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index 108640e4..586e9588 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -526,63 +526,6 @@ errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, time_t *value) value); } -errno_t sysdb_sudo_set_refreshed(struct sysdb_ctx *sysdb, - bool refreshed) -{ - errno_t ret; - struct ldb_dn *dn; - TALLOC_CTX *tmp_ctx; - - - tmp_ctx = talloc_new(NULL); - if (!tmp_ctx) { - ret = ENOMEM; - goto done; - } - - dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE, - SUDORULE_SUBDIR, sysdb->domain->name); - if (!dn) { - ret = ENOMEM; - goto done; - } - - ret = sysdb_set_bool(sysdb, dn, SUDORULE_SUBDIR, - SYSDB_SUDO_AT_REFRESHED, refreshed); - -done: - talloc_free(tmp_ctx); - return ret; -} - -errno_t sysdb_sudo_get_refreshed(struct sysdb_ctx *sysdb, - bool *refreshed) -{ - errno_t ret; - struct ldb_dn *dn; - TALLOC_CTX *tmp_ctx; - - - tmp_ctx = talloc_new(NULL); - if (!tmp_ctx) { - ret = ENOMEM; - goto done; - } - - dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_TMPL_CUSTOM_SUBTREE, - SUDORULE_SUBDIR, sysdb->domain->name); - if (!dn) { - ret = ENOMEM; - goto done; - } - - ret = sysdb_get_bool(sysdb, dn, SYSDB_SUDO_AT_REFRESHED, refreshed); - -done: - talloc_free(tmp_ctx); - return ret; -} - char **sysdb_sudo_build_sudouser(TALLOC_CTX *mem_ctx, const char *username, uid_t uid, char **groupnames, bool include_all) { diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h index 60643451..4a392675 100644 --- a/src/db/sysdb_sudo.h +++ b/src/db/sysdb_sudo.h @@ -85,12 +85,6 @@ sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx, errno_t sysdb_sudo_set_last_full_refresh(struct sysdb_ctx *sysdb, time_t value); errno_t sysdb_sudo_get_last_full_refresh(struct sysdb_ctx *sysdb, time_t *value); -errno_t sysdb_sudo_set_refreshed(struct sysdb_ctx *sysdb, - bool refreshed); - -errno_t sysdb_sudo_get_refreshed(struct sysdb_ctx *sysdb, - bool *refreshed); - char **sysdb_sudo_build_sudouser(TALLOC_CTX *mem_ctx, const char *username, uid_t uid, char **groupnames, bool include_all); |