diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-05-08 14:49:09 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-07-15 17:32:43 +0200 |
commit | 1f2fc55ecf7b5e170b2c0752304d1a2ecebc5259 (patch) | |
tree | 036d47c3870844e7da3a8e840c1dff25131dfa87 /src/providers/ldap/ldap_auth.c | |
parent | 5b2ca5cc0e22dd184e3eba84af2c00d7065c59c7 (diff) | |
download | sssd-1f2fc55ecf7b5e170b2c0752304d1a2ecebc5259.tar.gz sssd-1f2fc55ecf7b5e170b2c0752304d1a2ecebc5259.tar.xz sssd-1f2fc55ecf7b5e170b2c0752304d1a2ecebc5259.zip |
LDAP: Add sdap_lookup_type enum
Related:
https://fedorahosted.org/sssd/ticket/2553
Change the boolan parameter of sdap_get_users_send and sdap_get_groups_send
to a tri-state that controls whether we expect only a single entry
(ie don't use the paging control), multiple entries with a search limit
(wildcard request) or multiple entries with no limit (enumeration).
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/providers/ldap/ldap_auth.c')
-rw-r--r-- | src/providers/ldap/ldap_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index 817179426..217e80fd0 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -418,7 +418,7 @@ static struct tevent_req *get_user_dn_send(TALLOC_CTX *memctx, sh, attrs, filter, dp_opt_get_int(opts->basic, SDAP_SEARCH_TIMEOUT), - false); + SDAP_LOOKUP_SINGLE); if (!subreq) { ret = ENOMEM; goto done; |