summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-05-07 13:50:52 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:37:17 -0400
commit0f808798eefaedc3eb241f26aa49680d87f22336 (patch)
treefefcf767d483fcfaa7ee1080d64ed94091f95ecf /src
parentc407643004a02566e35a864ba0d8b0c0f88d9d67 (diff)
downloadsssd-0f808798eefaedc3eb241f26aa49680d87f22336.tar.gz
sssd-0f808798eefaedc3eb241f26aa49680d87f22336.tar.xz
sssd-0f808798eefaedc3eb241f26aa49680d87f22336.zip
sysdb: remove sudo_set/get_refreshed
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_sudo.c57
-rw-r--r--src/db/sysdb_sudo.h6
2 files changed, 0 insertions, 63 deletions
diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c
index 108640e4e..586e95883 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 606434517..4a3926757 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);