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.
In general, this libray is configured using environment variables and supports .env
files. See .env.dist
for a comprehensive list of configuration options.
Configure the .env
file according your needs and run docker-compose up -d
.
- 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