Commit 4836a606 authored by nimrod's avatar nimrod
Browse files

Filled README file.

parent 05df757c
Loading
Loading
Loading
Loading
−38

File deleted.

+52
Changes for README.rst: 52 added lines, 0 removed lines.
Original line number Diff line number Diff line
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