goauthentik / goauthentik/authentik

[Bug]: UI drops selected user from payload when creating LDAP User Connection

Open
#25,672 4 comments 0 reactions 0 assignees View on GitHub
bug/confirmed
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

### Describe the bug

When attempting to manually create an LDAP User Connection via the Authentik Web UI, the frontend drops the selected "User" field from the JSON payload when submitting the form to the API. This results in the API receiving a `null` user value, causing the creation to fail.

### How to reproduce

1. Go to the Authentik Admin UI.
2. Navigate to create a new LDAP User Connection (`/api/v3/sources/user_connections/ldap/`).
3. Select a valid target user from the dropdown.
4. Select the source and fill in the required identifier (e.g., `S-1-5-21-...`).
5. Submit the form.
6. Inspect the network request and observe the missing `user` field in the POST payload.

### Expected behavior

The UI should correctly include the selected `user` ID in the POST payload sent to the API.

### Screenshots

Image

### Additional context

This issue is linked to a backend validation bug where the API does not catch the missing field and instead returns a 500 error.

### Deployment Method

Docker

### Version

2026.8.1

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start at the Authentik Admin UI form for /api/v3/sources/user_connections/ldap/ and inspect the POST payload after selecting a User. Confirm the selected user ID is preserved, then exercise the form flow and verify the request includes user; it is done when manual creation no longer omits that field.

Written by the indexing model from the issue text.

Assessment

Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.