Skip to content

sirtoobii/vaultwarden_ldap_sync

Repository files navigation

Vaultwarden LDAP sync adapter

This python library is a lightweight alternative to the official Bitwarden Directory Connector aiming to be less "clunkly" than the vaultwarden_ldap (written in Rust) implementation.

Specifically, it invites unseen LDAP users (according to filter) and disables users which vanished from LDAP while even surviving a user initiated change of the email address in Vaultwarden. Furthermore, its simple architecture should allow for easy integration of other email sources.

Configuration

In general, this libray is configured using environment variables and supports .env files. See .env.dist for a comprehensive list of configuration options.

Usage

Configure the .env file according your needs and run docker-compose up -d.

Development

  • Install os requirements: apt install libldap2-dev libsasl2-dev python3-dev python3-venv
  • Then, after repo checkout:
cd vaultwarden_ldap_sync

# Create venv
python3 -m venv venv

# Activate venv
source venv/bin/activate

# Install requirements
pip install -r requirements.txt

# Run tests
python3 -m unittest discover -s tests/

Contributions and feedback welcome

About

Autmatically keep ldap in sync with your Vaultwarden installation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published