summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-09-11 18:00:58 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-12 14:22:45 +0200
commit5e9bc89b28f1ac3ce573ecdece74fe9623580c28 (patch)
tree741ae4354c846d983296051d6a7093bce6998c69
parent4bd57ad3df9c8a33f703029742b4d7b812a9520e (diff)
downloadsssd-5e9bc89b28f1ac3ce573ecdece74fe9623580c28.tar.gz
sssd-5e9bc89b28f1ac3ce573ecdece74fe9623580c28.tar.xz
sssd-5e9bc89b28f1ac3ce573ecdece74fe9623580c28.zip
netgroup: resolve hostgroup membership correctly
https://fedorahosted.org/sssd/ticket/1519 IPA host refactoring changed mapping of memberOf attribute which caused SSSD being unable to retrieve membership of hostgroup when being interpreted as netgroup.
-rw-r--r--src/providers/ipa/ipa_netgroups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c
index 7d9a433e0..360c14d25 100644
--- a/src/providers/ipa/ipa_netgroups.c
+++ b/src/providers/ipa/ipa_netgroups.c
@@ -712,7 +712,7 @@ static bool extract_entities(hash_entry_t *entry, void *pvt)
state = talloc_get_type(pvt, struct extract_state);
member = talloc_get_type(entry->value.ptr, struct sysdb_attrs);
- ret = sysdb_attrs_get_el(member, SYSDB_MEMBEROF, &el);
+ ret = sysdb_attrs_get_el(member, SYSDB_ORIG_MEMBEROF, &el);
if (ret != EOK) return false;
ret = sysdb_attrs_get_el(member, SYSDB_NAME, &name_el);