diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 23:53:02 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:02 +0100 |
commit | 80c6afa474d8a1e0198832bddfe5da75a9818b29 (patch) | |
tree | f318887d71caa3250e8a96c50d6d67d349e4f0fe /src/db | |
parent | 84c986f9bb2767d8930b6f5d92d34b09b8fabe60 (diff) | |
download | sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.tar.gz sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.tar.bz2 sssd-80c6afa474d8a1e0198832bddfe5da75a9818b29.zip |
Add domain argument to sysdb_has/set_enumerated()
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb.c | 12 | ||||
-rw-r--r-- | src/db/sysdb.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 623cf2b5..65a0140f 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -1492,6 +1492,7 @@ done: } errno_t sysdb_has_enumerated(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, bool *has_enumerated) { errno_t ret; @@ -1505,9 +1506,7 @@ errno_t sysdb_has_enumerated(struct sysdb_ctx *sysdb, goto done; } - dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, - SYSDB_DOM_BASE, - sysdb->domain->name); + dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_DOM_BASE, domain->name); if (!dn) { ret = ENOMEM; goto done; @@ -1521,6 +1520,7 @@ done: } errno_t sysdb_set_enumerated(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, bool enumerated) { errno_t ret; @@ -1533,15 +1533,13 @@ errno_t sysdb_set_enumerated(struct sysdb_ctx *sysdb, goto done; } - dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, - SYSDB_DOM_BASE, - sysdb->domain->name); + dn = ldb_dn_new_fmt(tmp_ctx, sysdb->ldb, SYSDB_DOM_BASE, domain->name); if (!dn) { ret = ENOMEM; goto done; } - ret = sysdb_set_bool(sysdb, dn, sysdb->domain->name, + ret = sysdb_set_bool(sysdb, dn, domain->name, SYSDB_HAS_ENUMERATED, enumerated); done: diff --git a/src/db/sysdb.h b/src/db/sysdb.h index de5953c2..96bbb8d2 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -806,9 +806,11 @@ errno_t sysdb_set_bool(struct sysdb_ctx *sysdb, bool value); errno_t sysdb_has_enumerated(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, bool *has_enumerated); errno_t sysdb_set_enumerated(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, bool enumerated); errno_t sysdb_remove_attrs(struct sysdb_ctx *sysdb, |