summaryrefslogtreecommitdiff
path: root/src/providers/ipa
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 02:04:58 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-15 10:49:20 +0100
commit9675bccabff4e79d224f64611ad9ff3e073b488e (patch)
tree39f5a16b37263395930a6e0ed209a3244ae22c81 /src/providers/ipa
parentde526c8425886ca3bed8f07a0f092ba5ac325654 (diff)
downloadsssd-9675bccabff4e79d224f64611ad9ff3e073b488e.tar.gz
sssd-9675bccabff4e79d224f64611ad9ff3e073b488e.tar.bz2
sssd-9675bccabff4e79d224f64611ad9ff3e073b488e.zip
Make sysdb_custom_subtree_dn() require a domain.
Diffstat (limited to 'src/providers/ipa')
-rw-r--r--src/providers/ipa/ipa_access.c2
-rw-r--r--src/providers/ipa/ipa_hbac_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 3a34864c..47bd91e7 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -491,7 +491,7 @@ static void hbac_sysdb_save(struct tevent_req *req)
* are also denied.
*/
base_dn = sysdb_custom_subtree_dn(sysdb, tmp_ctx,
- HBAC_RULES_SUBDIR);
+ domain, HBAC_RULES_SUBDIR);
if (base_dn == NULL) {
talloc_free(tmp_ctx);
ipa_access_reply(hbac_ctx, PAM_SYSTEM_ERR);
diff --git a/src/providers/ipa/ipa_hbac_common.c b/src/providers/ipa/ipa_hbac_common.c
index 500f3548..73789bd1 100644
--- a/src/providers/ipa/ipa_hbac_common.c
+++ b/src/providers/ipa/ipa_hbac_common.c
@@ -44,7 +44,7 @@ ipa_hbac_save_list(struct sysdb_ctx *sysdb, bool delete_subdir,
}
if (delete_subdir) {
- base_dn = sysdb_custom_subtree_dn(sysdb, tmp_ctx, subdir);
+ base_dn = sysdb_custom_subtree_dn(sysdb, tmp_ctx, domain, subdir);
if (base_dn == NULL) {
ret = ENOMEM;
goto done;