Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ansible-ldap
************
Ansible role for installing OpenLDAP, phpLDAPadmin and daily backup.
Requirements
------------
- Debian Jessie.
Role Variables
--------------
::
organization: '{{ ansible_domain }}' #Organization name, defaults to the domain name.
domain: '{{ ansible_domain }}' #LDAP domain, converted to ldap formatted. Defaults to the domain name of the machine.
basedn: #LDAP base distinguished name, defaults to machine's domain converted to LDAP format.
password: #Password for admin account, if blank a random password will be generated and shown on screen.
tls_cert: #Certificate for LDAPS, if blank the self-signed snakeoil cert is used.
tls_key: #Key for LDAPS, if blank the self-signed snakeoil key is used.
Dependencies
------------
None.
Example Playbook
----------------
::
- hosts: servers
roles:
- ansible-ldap
License
-------
MIT
Author Information
------------------
Nimrod Adar.
Restore procedure
-----------------
Deleting existing basedn: ::
ldapdelete -rxWD "cn=admin,dc=example,dc=com"
Restoring from backup: ::
ldapadd -xWD "cn=admin,dc=example,dc=com -f backup.ldif