diff options
-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); |