Skip to content

Performance issue in LDAP connector when user has lot of nested groups #4289

@as428y

Description

@as428y

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

master

Storage Type

etcd

Installation Type

Official container image

Expected Behavior

I have tried the feature "#4113,
to configure hierarchical groups

Expected that login based on hierarchy will be done in some logical time (a few seconds)

Actual Behavior

I have tried the feature "#4113,
to configure hierarchical groups

As soon as I have a lot of groups, the performance is not as good as expected.
For me, it took ~60 seconds to iterate over all groups I'm in

Maybe the following points will help

Replaced O(n²) duplicate detection with O(1) map lookup
Multiple string comparisons
query batching

Having multi-threading will improve it

Steps To Reproduce

No response

Additional Information

No response

Configuration

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions