Skip to content

Commit

Permalink
HBAC: fix typos preventing proper hostgroup evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallagher committed Sep 28, 2011
1 parent 582ffb9 commit 28a9f96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/providers/ipa/ipa_hbac_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -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"));
Expand Down

0 comments on commit 28a9f96

Please sign in to comment.