mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #396] [CLOSED] [WIP] Simple LDAP sync #2730
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2730
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/396
Author: @ViViDboarder
Created: 2/15/2019
Status: ❌ Closed
Base:
master← Head:ldap📝 Commits (4)
2de6ba6Woo! Got db connectionsca7ff10Working LDAP invites!80a2e4bAdd sync interval94f26c5Added some comments and add a few expects📊 Changes
6 files changed (+435 additions, -0 deletions)
View changed files
📝
Cargo.lock(+258 -0)📝
Cargo.toml(+6 -0)📝
src/config.rs(+32 -0)📝
src/db/mod.rs(+8 -0)➕
src/ldap.rs(+121 -0)📝
src/main.rs(+10 -0)📄 Description
So this is definitely a work in progress as it's quite messy. This is also my first time using Rust, so this is probably not very idiomatic and contains mistakes.
This patch adds several new config values for setting up a connection to an LDAP server, then polling it periodically and generating invites for users that do not yet have accounts. In short, I roughly did what was discussed in #40 and used what @mprasil wrote in #173 to add users.
A couple of notes:
Please let me know any feedback. I'm happy to iterate on this!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.