diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-05-27 14:16:12 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-23 13:47:24 +0200 |
commit | beec1ee5799570f34a51ea57674c7291c15f7022 (patch) | |
tree | 55d3d1061e8250b45589928234ea6599198cca62 /po | |
parent | b8946a5dbde01a87465de707092716349a35248b (diff) | |
download | sssd-beec1ee5799570f34a51ea57674c7291c15f7022.tar.gz sssd-beec1ee5799570f34a51ea57674c7291c15f7022.tar.xz sssd-beec1ee5799570f34a51ea57674c7291c15f7022.zip |
LDAP: Shortcut looking up for group members sooner
This patch is a performance enhancement. When looking for entries to
refresh, we always looked up all members in the cache, even if we ended
up dereferencing the whole group. If we are about to try dereference, it
makes sense to shortcut the lookups after the dereference threshold is
reached. In that case, the split_members function returns a special
error code and the caller just dereferences the whole group.
Only if dereference fails, we fall back to looking up all members so
that we can look them up one-by-one.
Also adds an integration test to make sure the dereference code works.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions