This repository has been archived on 2024-05-31 . You can view files and clone it, but cannot push or open issues or pull requests.
2023-01-17 11:21:33 +00:00
---
title: Troubleshooting LDAP Synchronization
---
To troubleshoot LDAP sources, you can run the command below to run a synchronization in the foreground and see any errors or warnings that might happen directly
```
2023-12-04 08:26:13 +00:00
docker-compose run --rm worker ldap_sync --schema public *slug of the source*
2023-01-17 11:21:33 +00:00
```
or, for Kubernetes, run
```
2023-12-04 08:26:13 +00:00
kubectl exec -it deployment/authentik-worker -c authentik -- ak ldap_sync --schema public *slug of the source*
2023-01-17 11:21:33 +00:00
```
2023-11-13 14:01:40 +00:00
Starting with authentik 2023.10, you can also run command below to explicitly check the connectivity to the configured LDAP Servers:
```
2023-12-04 08:26:13 +00:00
docker-compose run --rm worker ldap_check_connection --schema public *slug of the source*
2023-11-13 14:01:40 +00:00
```
or, for Kubernetes, run
```
2023-12-04 08:26:13 +00:00
kubectl exec -it deployment/authentik-worker -c authentik -- ak ldap_check_connection --schema public *slug of the source*
2023-11-13 14:01:40 +00:00
```