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/ldap/sdap_async_netgroups.c | |
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/ldap/sdap_async_netgroups.c')
-rw-r--r-- | src/providers/ldap/sdap_async_netgroups.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_netgroups.c b/src/providers/ldap/sdap_async_netgroups.c index 0888c7e2..f3a378f6 100644 --- a/src/providers/ldap/sdap_async_netgroups.c +++ b/src/providers/ldap/sdap_async_netgroups.c @@ -579,7 +579,17 @@ struct tevent_req *sdap_get_netgroups_send(TALLOC_CTX *memctx, state->base_iter = 0; state->search_bases = search_bases; + if (!state->search_bases) { + DEBUG(SSSDBG_CRIT_FAILURE, + ("Netgroup lookup request without a netgroup search base\n")); + ret = EINVAL; + goto done; + } + + ret = sdap_get_netgroups_next_base(req); + +done: if (ret != EOK) { tevent_req_error(req, ret); tevent_req_post(req, state->ev); |