summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Gordeev <lasaine@lvk.cs.msu.su>2010-06-24 16:18:13 +0400
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:51:16 -0400
commitdaf90966267f31d28ab5b53f3d228710b7994cc6 (patch)
tree7a2709ced56419734c0aac869e8fc85c000d9a7f
parente9a90bbce198774ee504143662ecf370d60ee557 (diff)
downloadsssd-daf90966267f31d28ab5b53f3d228710b7994cc6.tar.gz
sssd-daf90966267f31d28ab5b53f3d228710b7994cc6.tar.xz
sssd-daf90966267f31d28ab5b53f3d228710b7994cc6.zip
Add explicit requests for several operational attrs
Operational attributes are not returned in searched requests unless explicitly requested according to RFC 4512 section 5.1. Therefore to get several standard attributes of root DSE we have to request for them. The requested attrs are: - altServer - namingContexts - supportedControl - supportedExtension - supportedFeatures - supportedLDAPVersion - supportedSASLMechanisms Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
-rw-r--r--src/providers/ldap/sdap_async.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index 5c2e2e3e1..18f2bc0c5 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -637,6 +637,17 @@ struct tevent_req *sdap_get_rootdse_send(TALLOC_CTX *memctx,
{
struct tevent_req *req, *subreq;
struct sdap_get_rootdse_state *state;
+ const char *attrs[] = {
+ "*",
+ "altServer",
+ "namingContexts",
+ "supportedControl",
+ "supportedExtension",
+ "supportedFeatures",
+ "supportedLDAPVersion",
+ "supportedSASLMechanisms",
+ NULL
+ };
DEBUG(9, ("Getting rootdse\n"));
@@ -650,7 +661,7 @@ struct tevent_req *sdap_get_rootdse_send(TALLOC_CTX *memctx,
subreq = sdap_get_generic_send(state, ev, opts, sh,
"", LDAP_SCOPE_BASE,
- "(objectclass=*)", NULL, NULL, 0);
+ "(objectclass=*)", attrs, NULL, 0);
if (!subreq) {
talloc_zfree(req);
return NULL;