authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Improve sync statuses

Open OLED1 opened this issue 1 year ago • 4 comments

Describe the bug

The Authentik LDAP Source Sync fields Last successful sync and Last sync status are not getting refreshed with current task execution status and the schedules list is not listing any past sync schedules, despite the sync has been ended successfully according to the System tasks.

How to reproduce

We set up an LDAP Sync via Directory -> Federation and Social Login with the following settings:

  • Enabled = On
  • Update internal passwords on login = Off
  • Sync Users = On
  • User password writeback = On
  • Sync groups = On
  • Delete Not Found Object = Off

Connection Settings:

  • Two ldaps backend
  • Enabled StartTLS = On
  • Set up TLS Verfiication certificate
  • Bind CN
  • Bind Password
  • Base DN
  • User Property Mapping: Default
  • Group Property Mapping: athentik default LDAP Mapping: Name

Additional Settings => Default

The sync runs successfully and under Dashboard => System task => Sync LDAP source We can see the following steps:

  • Task has been queued
  • Task is being processed
  • Synced 328 objects.
  • Task finished processing without errors

But when switching back to Directory -> Federation and Social Login: We can see the following: Sync status Current status: Sync is not currently running. Last successful sync: No successful sync found. Last sync status: Unknown

Connectivity shows: All Connections ok

Schedules: No objects found

But we have all users and group synced. Even to login via their ldap password is possible.

When tying to debug the LDAP connections like described here it always ends with a red formatted Switching to schema 'public' message.

Expected behavior

Last successful sync should return a positive message. Last sync status should also return a positive message. Schedules should show all schedules.

Screenshots

Image Image Image

Additional context

No response

Deployment Method

Docker

Version

2025.10.1

Relevant log output


OLED1 avatar Nov 17 '25 11:11 OLED1

We are aware, but apparently didn't have a tracking issue for it, so I'll hijack this one.

rissson avatar Nov 17 '25 12:11 rissson

hi. I've got the same situation. sync state on web page is not refreshed , from CLI sync only writes "Switching to schema 'public'". I'm currently on ver 2025.10.1. can I help with that case ? I can grab logs , dumps etc ?

cli version of sync was earlier very useful with debugging sync with LDAP.

maxilee avatar Nov 28 '25 10:11 maxilee

https://github.com/goauthentik/authentik/issues/18180#issuecomment-3541649999

rissson avatar Nov 28 '25 15:11 rissson

We're closing this in favor of this parent issue: #25285

dominic-r avatar Aug 19 '26 17:08 dominic-r