summaryrefslogtreecommitdiffstats
path: root/src/responder
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-05-27 14:16:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-06-23 13:47:24 +0200
commitbeec1ee5799570f34a51ea57674c7291c15f7022 (patch)
tree55d3d1061e8250b45589928234ea6599198cca62 /src/responder
parentb8946a5dbde01a87465de707092716349a35248b (diff)
downloadsssd-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 'src/responder')
0 files changed, 0 insertions, 0 deletions