Fix UserOrg status during LDAP Import #1514

Closed
opened 2026-04-06 01:58:58 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @BlackDex on 7/31/2023

When a user does not have an account yet and SMTP was disabled it would set the UserOrg status still to Accepted, though that would make it possible to verify the user by the Org Admin's.
This would fail, since the user didn't actually crated his account, and therefor no PublicKey existed.

This PR fixes this behaviour by checking if the password is empty and if so, puts the user to an Invited state instead of Accepted.

Fixes #3737

*Originally created by @BlackDex on 7/31/2023* When a user does not have an account yet and SMTP was disabled it would set the UserOrg status still to Accepted, though that would make it possible to verify the user by the Org Admin's. This would fail, since the user didn't actually crated his account, and therefor no PublicKey existed. This PR fixes this behaviour by checking if the password is empty and if so, puts the user to an `Invited` state instead of `Accepted`. Fixes #3737
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1514