diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-06 01:39:03 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:49:20 +0100 |
commit | de526c8425886ca3bed8f07a0f092ba5ac325654 (patch) | |
tree | 14e700518dec7dfe3a4d3f64f990f8566081fe2b /src/providers/ipa | |
parent | 4b49384056874e7999d8338ce5288f3d5c27a7b8 (diff) | |
download | sssd-de526c8425886ca3bed8f07a0f092ba5ac325654.tar.gz sssd-de526c8425886ca3bed8f07a0f092ba5ac325654.tar.xz sssd-de526c8425886ca3bed8f07a0f092ba5ac325654.zip |
Make sysdb_custom_dn() require a domain.
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_hbac_common.c | 6 | ||||
-rw-r--r-- | src/providers/ipa/ipa_selinux.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/providers/ipa/ipa_hbac_common.c b/src/providers/ipa/ipa_hbac_common.c index 33d1944e..500f3548 100644 --- a/src/providers/ipa/ipa_hbac_common.c +++ b/src/providers/ipa/ipa_hbac_common.c @@ -630,7 +630,8 @@ hbac_eval_service_element(TALLOC_CTX *mem_ctx, svc->name = servicename; - svc_dn = sysdb_custom_dn(sysdb, tmp_ctx, svc->name, HBAC_SERVICES_SUBDIR); + svc_dn = sysdb_custom_dn(sysdb, tmp_ctx, + domain, svc->name, HBAC_SERVICES_SUBDIR); if (svc_dn == NULL) { ret = ENOMEM; goto done; @@ -737,7 +738,8 @@ hbac_eval_host_element(TALLOC_CTX *mem_ctx, goto done; } - host_dn = sysdb_custom_dn(sysdb, tmp_ctx, host->name, HBAC_HOSTS_SUBDIR); + host_dn = sysdb_custom_dn(sysdb, tmp_ctx, + domain, host->name, HBAC_HOSTS_SUBDIR); if (host_dn == NULL) { ret = ENOMEM; goto done; diff --git a/src/providers/ipa/ipa_selinux.c b/src/providers/ipa/ipa_selinux.c index d1dbe576..7a615677 100644 --- a/src/providers/ipa/ipa_selinux.c +++ b/src/providers/ipa/ipa_selinux.c @@ -53,6 +53,7 @@ static errno_t ipa_get_selinux_recv(struct tevent_req *req, static struct ipa_selinux_op_ctx * ipa_selinux_create_op_ctx(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, struct be_req *be_req, const char *username, const char *hostname); static void ipa_selinux_handler_done(struct tevent_req *subreq); @@ -98,8 +99,8 @@ void ipa_selinux_handler(struct be_req *be_req) goto fail; } - op_ctx = ipa_selinux_create_op_ctx(be_req, be_req->sysdb, be_req, - pd->user, hostname); + op_ctx = ipa_selinux_create_op_ctx(be_req, be_req->sysdb, be_req->domain, + be_req, pd->user, hostname); if (op_ctx == NULL) { DEBUG(SSSDBG_OP_FAILURE, ("Cannot create op context\n")); goto fail; @@ -120,6 +121,7 @@ fail: static struct ipa_selinux_op_ctx * ipa_selinux_create_op_ctx(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, + struct sss_domain_info *domain, struct be_req *be_req, const char *username, const char *hostname) { @@ -144,7 +146,7 @@ ipa_selinux_create_op_ctx(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, goto fail; } - host_dn = sysdb_custom_dn(sysdb, op_ctx, hostname, HBAC_HOSTS_SUBDIR); + host_dn = sysdb_custom_dn(sysdb, op_ctx, domain, hostname, HBAC_HOSTS_SUBDIR); if (host_dn == NULL) { goto fail; } |