summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-09-27 15:04:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-09-28 09:06:57 -0400
commit3b6d344d84274e2aa3616c74237035b0e8a2eaaf (patch)
treed84752db2cf208b6dd847608ffd6221004ad1216 /src
parentd14332fc3880761ff595104d1d5b0bcf69fbb244 (diff)
downloadsssd-3b6d344d84274e2aa3616c74237035b0e8a2eaaf.tar.gz
sssd-3b6d344d84274e2aa3616c74237035b0e8a2eaaf.tar.bz2
sssd-3b6d344d84274e2aa3616c74237035b0e8a2eaaf.zip
HBAC: fix typos preventing proper hostgroup evaluation
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_hbac_common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_hbac_common.c b/src/providers/ipa/ipa_hbac_common.c
index be34e845..b37320a4 100644
--- a/src/providers/ipa/ipa_hbac_common.c
+++ b/src/providers/ipa/ipa_hbac_common.c
@@ -803,7 +803,7 @@ hbac_eval_host_element(TALLOC_CTX *mem_ctx,
struct ldb_message **msgs;
const char *group_name;
struct ldb_dn *host_dn;
- const char *attrs[] = { IPA_HOST_FQDN, NULL };
+ const char *attrs[] = { IPA_CN, NULL };
const char *host_filter;
tmp_ctx = talloc_new(mem_ctx);
@@ -840,7 +840,7 @@ hbac_eval_host_element(TALLOC_CTX *mem_ctx,
}
host_dn = sysdb_custom_dn(sysdb, tmp_ctx, domain->name,
- host->name, HBAC_SERVICES_SUBDIR);
+ host->name, HBAC_HOSTS_SUBDIR);
if (host_dn == NULL) {
ret = ENOMEM;
goto done;
@@ -865,7 +865,7 @@ hbac_eval_host_element(TALLOC_CTX *mem_ctx,
for (i = 0; i < count; i++) {
group_name = ldb_msg_find_attr_as_string(msgs[i],
- IPA_HOST_FQDN,
+ IPA_CN,
NULL);
if (group_name == NULL) {
DEBUG(1, ("Group with no name?\n"));