[PR #3740] [MERGED] Fix UserOrg status during LDAP Import #2941

Closed
opened 2025-10-09 18:14:15 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/3740
Author: @BlackDex
Created: 7/31/2023
Status: Merged
Merged: 8/12/2023
Merged by: @dani-garcia

Base: mainHead: fix-ldap-import-org-status


📝 Commits (1)

  • d892880 Fix UserOrg status during LDAP Import

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/api/core/public.rs (+1 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/3740 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 7/31/2023 **Status:** ✅ Merged **Merged:** 8/12/2023 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix-ldap-import-org-status` --- ### 📝 Commits (1) - [`d892880`](https://github.com/dani-garcia/vaultwarden/commit/d892880dd2f96dd9f72a6ce9437bf638719a4bcb) Fix UserOrg status during LDAP Import ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/public.rs` (+1 -1) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:14:15 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2941