diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-12 20:29:26 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-13 10:01:12 -0400 |
commit | 2c62da337e31217d03f5bf0f768b574d166bb2fe (patch) | |
tree | 3742677f8ebcf242543590122494152c919b3f5f /src/providers/ldap/sdap_async_groups.c | |
parent | d42d371c00c83ae44b9d1c3e88ecbe0e01b112e6 (diff) | |
download | sssd-2c62da337e31217d03f5bf0f768b574d166bb2fe.tar.gz sssd-2c62da337e31217d03f5bf0f768b574d166bb2fe.tar.xz sssd-2c62da337e31217d03f5bf0f768b574d166bb2fe.zip |
LDAP: Auto-detect support for the ldap match rule
This patch extends the RootDSE lookup so that we will perform a
second request to test whether the match rule syntax can be used.
If both groups and initgroups are disabled in the configuration,
this lookup request can be skipped.
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r-- | src/providers/ldap/sdap_async_groups.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c index 8be5ff1d9..720c3cc29 100644 --- a/src/providers/ldap/sdap_async_groups.c +++ b/src/providers/ldap/sdap_async_groups.c @@ -1513,6 +1513,7 @@ static void sdap_get_groups_process(struct tevent_req *subreq) */ if (!state->enumeration && (state->opts->schema_type != SDAP_SCHEMA_RFC2307) + && state->opts->support_matching_rule && dp_opt_get_bool(state->opts->basic, SDAP_AD_MATCHING_RULE_GROUPS)) { subreq = sdap_get_ad_match_rule_members_send( state, state->ev, state->opts, state->sh, |