supportedSASLMechanisms is an operational attribute so it's not returned
by openldap if not told explicitly. This change adds an explicit request
for this attribute.
Signed-off-by: Alexander Gordeev <lasaine(a)lvk.cs.msu.su>
---
src/providers/ldap/sdap_async.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index 20828d2..2216143 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -637,6 +637,10 @@ struct tevent_req *sdap_get_rootdse_send(TALLOC_CTX *memctx,
{
struct tevent_req *req, *subreq;
struct sdap_get_rootdse_state *state;
+ char *attrs[] = {
+ "supportedSASLMechanisms",
+ NULL
+ };
DEBUG(9, ("Getting rootdse\n"));
@@ -650,7 +654,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;
--
1.7.1