diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-07 22:15:14 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:01 +0100 |
commit | 770896b194b7b66b09c2a30545b4d091fd86b1f4 (patch) | |
tree | c2cbe2a448060e73cba6d92bbbe4c191cb20a210 /src/db/sysdb_ops.c | |
parent | dd7192379e5fc5bb852863e60ad4b6a20c5da183 (diff) | |
download | sssd-770896b194b7b66b09c2a30545b4d091fd86b1f4.tar.gz sssd-770896b194b7b66b09c2a30545b4d091fd86b1f4.tar.xz sssd-770896b194b7b66b09c2a30545b4d091fd86b1f4.zip |
Add domain argument to sysdb_search_custom()
Also changes sysdb_search_custom_by_name()
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 386f94b37..4cd94bd57 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -2009,6 +2009,7 @@ fail: int sysdb_search_custom(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *filter, const char *subtree_name, const char **attrs, @@ -2022,8 +2023,7 @@ int sysdb_search_custom(TALLOC_CTX *mem_ctx, return EINVAL; } - basedn = sysdb_custom_subtree_dn(sysdb, mem_ctx, - sysdb->domain, subtree_name); + basedn = sysdb_custom_subtree_dn(sysdb, mem_ctx, domain, subtree_name); if (basedn == NULL) { DEBUG(1, ("sysdb_custom_subtree_dn failed.\n")); return ENOMEM; @@ -2041,6 +2041,7 @@ int sysdb_search_custom(TALLOC_CTX *mem_ctx, int sysdb_search_custom_by_name(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, const char *object_name, const char *subtree_name, const char **attrs, @@ -2063,7 +2064,7 @@ int sysdb_search_custom_by_name(TALLOC_CTX *mem_ctx, } basedn = sysdb_custom_dn(sysdb, tmp_ctx, - sysdb->domain, object_name, subtree_name); + domain, object_name, subtree_name); if (basedn == NULL) { DEBUG(1, ("sysdb_custom_dn failed.\n")); ret = ENOMEM; @@ -2129,7 +2130,7 @@ int sysdb_store_custom(struct sysdb_ctx *sysdb, goto done; } - ret = sysdb_search_custom_by_name(tmp_ctx, sysdb, + ret = sysdb_search_custom_by_name(tmp_ctx, sysdb, domain, object_name, subtree_name, search_attrs, &resp_count, &resp); if (ret != EOK && ret != ENOENT) { |