diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 21:43:20 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:01 +0100 |
commit | dd7192379e5fc5bb852863e60ad4b6a20c5da183 (patch) | |
tree | 6178abc8f7f78fd3099d5b28360bacacb2616f69 /src/db | |
parent | 74ac1c2834cd8961ed9e7cadcfe28b113bffe4de (diff) | |
download | sssd-dd7192379e5fc5bb852863e60ad4b6a20c5da183.tar.gz sssd-dd7192379e5fc5bb852863e60ad4b6a20c5da183.tar.bz2 sssd-dd7192379e5fc5bb852863e60ad4b6a20c5da183.zip |
Add domain argument to sysdb_store_custom()
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb.h | 1 | ||||
-rw-r--r-- | src/db/sysdb_autofs.c | 2 | ||||
-rw-r--r-- | src/db/sysdb_ops.c | 3 | ||||
-rw-r--r-- | src/db/sysdb_ssh.c | 2 | ||||
-rw-r--r-- | src/db/sysdb_sudo.c | 2 |
5 files changed, 6 insertions, 4 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 687818dc..4d4d3bde 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -716,6 +716,7 @@ int sysdb_cache_auth(struct sysdb_ctx *sysdb, time_t *_delayed_until); int sysdb_store_custom(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *object_name, const char *subtree_name, struct sysdb_attrs *attrs); diff --git a/src/db/sysdb_autofs.c b/src/db/sysdb_autofs.c index 446b3cac..d07f1c63 100644 --- a/src/db/sysdb_autofs.c +++ b/src/db/sysdb_autofs.c @@ -142,7 +142,7 @@ sysdb_save_autofsmap(struct sysdb_ctx *sysdb_ctx, goto done; } - ret = sysdb_store_custom(sysdb_ctx, name, AUTOFS_MAP_SUBDIR, attrs); + ret = sysdb_store_custom(sysdb_ctx, sysdb_ctx->domain, name, AUTOFS_MAP_SUBDIR, attrs); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("sysdb_store_custom failed [%d]: %s\n", ret, strerror(ret))); diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 6ff10d7d..386f94b3 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -2099,6 +2099,7 @@ done: /* =Custom Store (replaces-existing-data)================== */ int sysdb_store_custom(struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *object_name, const char *subtree_name, struct sysdb_attrs *attrs) @@ -2146,7 +2147,7 @@ int sysdb_store_custom(struct sysdb_ctx *sysdb, } msg->dn = sysdb_custom_dn(sysdb, tmp_ctx, - sysdb->domain, object_name, subtree_name); + domain, object_name, subtree_name); if (!msg->dn) { DEBUG(1, ("sysdb_custom_dn failed.\n")); ret = ENOMEM; diff --git a/src/db/sysdb_ssh.c b/src/db/sysdb_ssh.c index 2f193a5c..c3e42143 100644 --- a/src/db/sysdb_ssh.c +++ b/src/db/sysdb_ssh.c @@ -30,7 +30,7 @@ sysdb_update_ssh_host(struct sysdb_ctx *sysdb, { errno_t ret; - ret = sysdb_store_custom(sysdb, name, SSH_HOSTS_SUBDIR, attrs); + ret = sysdb_store_custom(sysdb, sysdb->domain, name, SSH_HOSTS_SUBDIR, attrs); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("Error storing host %s [%d]: %s\n", name, ret, strerror(ret))); diff --git a/src/db/sysdb_sudo.c b/src/db/sysdb_sudo.c index 2e0738eb..beb8e5e1 100644 --- a/src/db/sysdb_sudo.c +++ b/src/db/sysdb_sudo.c @@ -443,7 +443,7 @@ sysdb_save_sudorule(struct sysdb_ctx *sysdb_ctx, return ret; } - ret = sysdb_store_custom(sysdb_ctx, rule_name, SUDORULE_SUBDIR, attrs); + ret = sysdb_store_custom(sysdb_ctx, sysdb_ctx->domain, rule_name, SUDORULE_SUBDIR, attrs); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, ("sysdb_store_custom failed [%d]: %s\n", ret, strerror(ret))); |