Skip to content

ldap_sync for many users is spamming the System Tasks #6816

@a-gerhard

Description

@a-gerhard

Describe the bug
Due to pagination, one instance of the ldap_sync task is created for each 50 users from an LDAP source. My LDAP source has more than 100,000 users. This in itself wouldn't be an issue, but for each completed ldap_sync task, an entry is shown in the web's admin interface in "System Tasks". This makes the page huge and ugly.

To Reproduce
Steps to reproduce the behavior:

  1. Create an LDAP source with more than 50 users
  2. Wait for it to sync
  3. Go to "System Tasks" page in the Admin Interface

Expected behavior
There is an entry for ldap_sync_all or ldap_sync_single, and maybe an aggregation entry for all ldap_sync tasks, but not so many duplicates.

Screenshots
Of the 1000 entries in this list, more than 99% are ldap_sync.
image

Version and Deployment (please complete the following information):

  • authentik version: 2023.8.2
  • Deployment: docker-compose

Additional context
Just some small extra bug: pagination seems to be not working as intended on that page.

BTW, I'm filing a lot of issues around LDAP here, but I've come across all of these within just one day of getting sync to run again...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/confirmedConfirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions