diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-01 14:03:36 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-04 08:27:16 -0500 |
commit | 169fa5bd3edd34aa0db35681832bd7406e423c1b (patch) | |
tree | 10571e2eedf792bc94d4da77a128843d78e56d3a /src/providers/ipa | |
parent | 9264332df73311e2ed244b37b470cac74a784f4a (diff) | |
download | sssd-169fa5bd3edd34aa0db35681832bd7406e423c1b.tar.gz sssd-169fa5bd3edd34aa0db35681832bd7406e423c1b.tar.bz2 sssd-169fa5bd3edd34aa0db35681832bd7406e423c1b.zip |
LDAP: Do not fail if RootDSE check cannot determine search bases
https://fedorahosted.org/sssd/ticket/1152
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_netgroups.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c index d61728f5..620f03cc 100644 --- a/src/providers/ipa/ipa_netgroups.c +++ b/src/providers/ipa/ipa_netgroups.c @@ -209,6 +209,13 @@ struct tevent_req *ipa_get_netgroups_send(TALLOC_CTX *memctx, state->base_filter = filter; state->netgr_base_iter = 0; + if (!ipa_options->id->netgroup_search_bases) { + DEBUG(SSSDBG_CRIT_FAILURE, + ("Netgroup lookup request without a search base\n")); + ret = EINVAL; + goto done; + } + ret = sss_hash_create(state, 32, &state->new_netgroups); if (ret != EOK) goto done; ret = sss_hash_create(state, 32, &state->new_users); |