2020-09-02 19:41:16 +00:00
# bitwardenrs_ldap
2020-09-02 19:28:18 +00:00
2020-09-22 20:20:18 +00:00
Custom image for the BitwardenRS LDAP connector
2020-02-04 08:47:39 +00:00
2020-02-22 17:08:14 +00:00
[![Build Status ](https://img.shields.io/drone/build/docker/bitwardenrs_ldap?logo=drone&server=https%3A%2F%2Fdrone.rknet.org )](https://drone.rknet.org/docker/bitwardenrs_ldap)
2020-09-21 20:11:02 +00:00
[![Docker Hub ](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white )](https://hub.docker.com/r/thegeeklab/bitwardenrs_ldap)
2020-09-02 19:28:18 +00:00
[![Quay.io ](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white )](https://quay.io/repository/thegeeklab/bitwardenrs_ldap)
[![Source: Gitea ](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white )](https://gitea.rknet.org/docker/bitwardenrs_ldap)
2020-02-22 17:08:14 +00:00
[![License: MIT ](https://img.shields.io/badge/license-MIT-blue.svg )](https://gitea.rknet.org/docker/bitwardenrs_ldap/src/branch/master/LICENSE)
2020-02-04 08:47:39 +00:00
2020-09-22 20:20:18 +00:00
This is a rootless custom Docker image for [bitwarden_rs_ldap ](https://github.com/ViViDboarder/bitwarden_rs_ldap ) a simple LDAP connector for bitwarden_rs.
2020-02-04 08:47:39 +00:00
## Usage
### Docker Compose
```Yaml
---
version: '3'
services:
2020-05-04 17:43:13 +00:00
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_DB: bitwarden
POSTGRES_PASSWORD: pass
POSTGRES_USER: user
ldap:
container_name: ldap
image: osixia/openldap
bitwardenrs:
container_name: bitwardenrs_server
2020-09-21 20:11:02 +00:00
image: thegeeklab/bitwardenrs:latest
2020-05-04 17:43:13 +00:00
depends_on:
- postgres
ports:
- "80:8080"
volumes:
- data:/app/data
environment:
BITWARDENRS_DATABASE_URL: postgresql://user:pass@postgres:5432/bitwarden
BITWARDENRS_ADMIN_TOKEN: my_secure_token
2020-02-04 08:47:39 +00:00
bitwardenrs_ldap:
2020-05-04 17:43:13 +00:00
container_name: ldap_sync
restart: always
2020-09-21 20:11:02 +00:00
image: thegeeklab/bitwardenrs_ldap:latest
2020-05-04 17:43:13 +00:00
depends_on:
- bitwardenrs
- ldap
environment:
BITWARDENRS_LDAP_BITWARDEN_URL: http://bitwardenrs_server:8080
BITWARDENRS_LDAP_BITWARDEN_ADMIN_TOKEN: my_secure_token
BITWARDENRS_LDAP_HOST: ldap
BITWARDENRS_LDAP_SSL: "False"
BITWARDENRS_LDAP_BIND_DN: "cn=admin,dc=example,dc=org"
BITWARDENRS_LDAP_SEARCH_BASE_DN: "dc=example,dc=org"
BITWARDENRS_LDAP_BIND_PASSWORD: admin
volumes:
data:
driver: local
2020-02-04 08:47:39 +00:00
```
## Configuration
```Shell
BITWARDENRS_LDAP_BITWARDEN_URL=
BITWARDENRS_LDAP_BITWARDEN_ADMIN_TOKEN=
2020-10-18 12:24:21 +00:00
BITWARDENRS_LDAP_BITWARDEN_ROOT_CERT_FILE=
2020-02-04 08:47:39 +00:00
BITWARDENRS_LDAP_HOST=
BITWARDENRS_LDAP_SCHEME=
BITWARDENRS_LDAP_SSL=True
2020-10-18 12:24:21 +00:00
BITWARDENRS_LDAP_SSL_VERIFY=True
2020-02-04 08:47:39 +00:00
BITWARDENRS_LDAP_PORT=
BITWARDENRS_LDAP_BIND_DN=
BITWARDENRS_LDAP_BIND_PASSWORD=
BITWARDENRS_LDAP_SEARCH_BASE_DN=
BITWARDENRS_LDAP_SEARCH_FILTER="(& (objectClass=*)(uid=*))"
BITWARDENRS_LDAP_MAIL_FIELD=mail
BITWARDENRS_LDAP_SYNC_INTERVAL_SECONDS=60
BITWARDENRS_LDAP_SYNC_LOOP=True
```
2020-02-22 17:08:14 +00:00
## License
2020-02-04 08:47:39 +00:00
2020-02-22 17:08:14 +00:00
This project is licensed under the MIT License - see the [LICENSE ](https://gitea.rknet.org/docker/bitwardenrs_ldap/src/branch/master/LICENSE ) file for details.