Set up LDAP user authentication using debconf
in Debian and Ubuntu.
The role uses apt module and debconf module which have basic dependencies. You can use bootstrap-debian role to setup common Ansible requirements on Debian-based systems.
Variables reflect the debconf settings for ldap-auth-config
package, see also sudo debconf-show ldap-auth-client
.
See vars/main.yml for a complete list of variables. Note that type
key must be present in your variables configuration unless you have hash merging enabled.
roles:
- role: jnv.ldap-auth-client
tags: ldap
ldap_auth_config:
ldapns/base-dn:
type: string
value: "dc=example,dc=net"
ldapns/ldap-server:
type: string
value: "ldaps://ldap.example.net"
pam_password:
type: select
value: exop
dbrootlogin:
type: boolean
value: false
GPLv2