2020-06-21 20:10:02 +00:00
---
2021-05-16 15:16:23 +00:00
title: vaultwarden_ldap_docker
2020-06-21 20:10:02 +00:00
type: docs
---
2022-06-20 20:45:56 +00:00
[![Source Code ](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white )](https://gitea.rknet.org/ansible/xoxys.vaultwarden_ldap_docker) [![Build Status ](https://img.shields.io/drone/build/ansible/xoxys.vaultwarden_ldap_docker?logo=drone&server=https%3A%2F%2Fdrone.rknet.org )](https://drone.rknet.org/ansible/xoxys.vaultwarden_ldap_docker) [![License: MIT ](https://img.shields.io/badge/license-MIT-blue.svg )](https://gitea.rknet.org/ansible/xoxys.vaultwarden_ldap_docker/src/branch/main/LICENSE)
2020-06-21 20:10:02 +00:00
2021-05-16 15:16:23 +00:00
Role to setup a [Vaultwarden LDAP ](https://gitea.rknet.org/docker/vaultwarden-ldap ) Sync Service for [Vaultwarden ](https://github.com/dani-garcia/vaultwarden ) password safe.
2020-06-21 20:10:02 +00:00
2022-06-20 20:45:56 +00:00
<!-- more -->
2022-03-03 20:38:34 +00:00
- [Default Variables ](#default-variables )
- [vaultwarden_ldap_bind_dn ](#vaultwarden_ldap_bind_dn )
- [vaultwarden_ldap_bind_password ](#vaultwarden_ldap_bind_password )
- [vaultwarden_ldap_cap_add ](#vaultwarden_ldap_cap_add )
- [vaultwarden_ldap_cap_drop ](#vaultwarden_ldap_cap_drop )
- [vaultwarden_ldap_container_name ](#vaultwarden_ldap_container_name )
- [vaultwarden_ldap_cpu_shares ](#vaultwarden_ldap_cpu_shares )
- [vaultwarden_ldap_host ](#vaultwarden_ldap_host )
- [vaultwarden_ldap_image ](#vaultwarden_ldap_image )
- [vaultwarden_ldap_mail_field ](#vaultwarden_ldap_mail_field )
- [vaultwarden_ldap_memory_limit ](#vaultwarden_ldap_memory_limit )
- [vaultwarden_ldap_memory_reservation ](#vaultwarden_ldap_memory_reservation )
- [vaultwarden_ldap_networks ](#vaultwarden_ldap_networks )
- [vaultwarden_ldap_networks_applied ](#vaultwarden_ldap_networks_applied )
- [vaultwarden_ldap_pids_limit ](#vaultwarden_ldap_pids_limit )
- [vaultwarden_ldap_port ](#vaultwarden_ldap_port )
- [vaultwarden_ldap_restart_policy ](#vaultwarden_ldap_restart_policy )
- [vaultwarden_ldap_scheme ](#vaultwarden_ldap_scheme )
- [vaultwarden_ldap_search_base_dn ](#vaultwarden_ldap_search_base_dn )
- [vaultwarden_ldap_search_filter ](#vaultwarden_ldap_search_filter )
- [vaultwarden_ldap_security_opt ](#vaultwarden_ldap_security_opt )
- [vaultwarden_ldap_service_directory ](#vaultwarden_ldap_service_directory )
- [vaultwarden_ldap_service_stopped ](#vaultwarden_ldap_service_stopped )
- [vaultwarden_ldap_ssl ](#vaultwarden_ldap_ssl )
- [vaultwarden_ldap_sync_interval_seconds ](#vaultwarden_ldap_sync_interval_seconds )
- [vaultwarden_ldap_sync_loop ](#vaultwarden_ldap_sync_loop )
- [vaultwarden_ldap_vaultwarden_admin_token ](#vaultwarden_ldap_vaultwarden_admin_token )
- [vaultwarden_ldap_vaultwarden_url ](#vaultwarden_ldap_vaultwarden_url )
- [vaultwarden_ldap_version ](#vaultwarden_ldap_version )
- [vaultwarden_ldap_volumes ](#vaultwarden_ldap_volumes )
- [Dependencies ](#dependencies )
2020-06-21 20:10:02 +00:00
---
## Default Variables
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_bind_dn
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_bind_dn: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_bind_password
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_bind_password: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_cap_add
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_cap_add: []
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_cap_drop
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_cap_drop: []
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_container_name
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_container_name: vaultwarden_ldap
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_cpu_shares
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_cpu_shares: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
#### Example usage
2020-06-21 20:10:02 +00:00
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_cpu_shares: '1024'
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_host
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_host: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_image
#### Default value
2020-06-21 20:10:02 +00:00
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_image: thegeeklab/vaultwarden-ldap:{{ vaultwarden_ldap_version }}
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_mail_field
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_mail_field: mail
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_memory_limit
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_memory_limit: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
#### Example usage
2020-06-21 20:10:02 +00:00
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_memory_limit: 512m
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_memory_reservation
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_memory_reservation: _unset_
2020-06-21 20:10:02 +00:00
```
#### Example usage
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_memory_reservation: 256m
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_networks
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_networks:
- name: vaultwarden_default
external: true
2020-06-21 20:10:02 +00:00
```
#### Example usage
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_networks:
- name: default
# optional network driver, defaults to 'bride'
driver: host
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_networks_applied
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_networks_applied:
- vaultwarden_default
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_pids_limit
#### Default value
2020-06-21 20:10:02 +00:00
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_pids_limit: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_port
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_port: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_restart_policy
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_restart_policy: always
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_scheme
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_scheme: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_search_base_dn
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_search_base_dn: _unset_
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_search_filter
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_search_filter: (& (objectclass=*)(uid=*))
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_security_opt
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_security_opt: []
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_service_directory
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_service_directory: /var/lib/docker/services/vaultwarden_ldap
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_service_stopped
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_service_stopped: false
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_ssl
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_ssl: true
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_sync_interval_seconds
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_sync_interval_seconds: 60
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_sync_loop
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_sync_loop: true
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_vaultwarden_admin_token
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_vaultwarden_admin_token: abc123
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_vaultwarden_url
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_vaultwarden_url: vaultwarden.example.com
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_version
2020-06-21 20:10:02 +00:00
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_version: latest
2020-06-21 20:10:02 +00:00
```
2021-05-16 15:16:23 +00:00
### vaultwarden_ldap_volumes
2020-06-21 20:10:02 +00:00
> Define required docker volumes.
#### Default value
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_volumes: []
2020-06-21 20:10:02 +00:00
```
#### Example usage
```YAML
2021-05-16 15:16:23 +00:00
vaultwarden_ldap_volumes:
2020-06-21 20:10:02 +00:00
# Instead of the name you could specify a path on the container host system,
# but you also have to enable bind mount for this volume
- name: data
# target location inside the container
dest: /app/data
# enable bind mount, if false volume will be configured as named volume
# keep in mind you MUST set bind in any case
bind: True
```
2022-03-03 20:38:34 +00:00
2020-06-21 20:10:02 +00:00
## Dependencies
None.