diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-24 14:06:07 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-06-28 10:53:58 -0400 |
commit | 0daccb28ba9b40a20ac3494aea42ce68c7a92a31 (patch) | |
tree | fdab915b41a8e434a575900d3bcb6b5ff03b2eef /src/providers/ldap/sdap_async.c | |
parent | b22c0449d1f4943944b8a4dd037f97a69192c6ca (diff) | |
download | sssd-0daccb28ba9b40a20ac3494aea42ce68c7a92a31.tar.gz sssd-0daccb28ba9b40a20ac3494aea42ce68c7a92a31.tar.xz sssd-0daccb28ba9b40a20ac3494aea42ce68c7a92a31.zip |
Make RootDSE optional
In violation of the standard, some LDAP servers control access to
the RootDSE, thus preventing us from being able to read it before
performing a bind.
This patch will allow us to continue on if the RootDSE was
inaccessible. All of the places that we use the return value of
the RootDSE after this are already checked for NULL and use sane
defaults if the RootDSE is unavailable
Diffstat (limited to 'src/providers/ldap/sdap_async.c')
-rw-r--r-- | src/providers/ldap/sdap_async.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index 25f8bcfd2..18f2bc0c5 100644 --- a/src/providers/ldap/sdap_async.c +++ b/src/providers/ldap/sdap_async.c @@ -689,7 +689,9 @@ static void sdap_get_rootdse_done(struct tevent_req *subreq) } if (num_results == 0 || !results) { - DEBUG(2, ("No RootDSE for server ?!\n")); + DEBUG(2, ("RootDSE could not be retrieved. " + "Please check that anonymous access to RootDSE is allowed\n" + )); tevent_req_error(req, ENOENT); return; } |