mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
[PR #396] [CLOSED] [WIP] Simple LDAP sync #3728
Reference in New Issue
Block a user
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.