summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-09-27 15:04:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-09-30 09:42:55 -0400
commit87dfdc7068ea97c426a332adc2008d83c91b721f (patch)
tree4bd6b60234a0574f312f47b8ede65f1d2c96e3ac
parent5a309601240301319dada9592f02be5aeab992d0 (diff)
downloadsssd-87dfdc7068ea97c426a332adc2008d83c91b721f.tar.gz
sssd-87dfdc7068ea97c426a332adc2008d83c91b721f.tar.xz
sssd-87dfdc7068ea97c426a332adc2008d83c91b721f.zip
HBAC: fix typos preventing proper hostgroup evaluation
-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 a9be90b84..97784c02c 100644
--- a/src/providers/ipa/ipa_hbac_common.c
+++ b/src/providers/ipa/ipa_hbac_common.c
@@ -805,7 +805,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);
@@ -842,7 +842,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;
@@ -867,7 +867,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"));