Commit e72d583a authored by nimrod's avatar nimrod
Browse files

Update README.

parent 8b93a3ad
Loading
Loading
Loading
Loading
+6 −3
Changes for README.rst: 6 added lines, 3 removed lines.
Original line number Diff line number Diff line
ansible-openldap
************
################

Ansible role for installing OpenLDAP, phpLDAPadmin and daily backup.

@@ -47,16 +47,19 @@ Restore procedure

Deleting existing basedn: ::

    ldapdelete -Y EXTERNAL -H ldapi:/// -rD "cn=admin,dc=example,dc=com" #Run as root, no password needed.
    ldapdelete -Y EXTERNAL -r #Run as root, no password needed.
    ldapdelete -rxWD "cn=admin,dc=example,dc=com" #Run as any user, asks for OpenLDAP admin password.

Restoring from backup: ::

    ldapadd -Y EXTERNAL -H ldapi:/// -D "cn=admin,dc=example,dc=com -f backup.ldif #Run as root, no password needed.
    ldapadd -Y EXTERNAL -f backup.ldif #Run as root, no password needed.
    ldapadd -xWD "cn=admin,dc=example,dc=com -f backup.ldif #Run as any user, asks for OpenLDAP admin password.

TODO
----

- ldapadd/ modify import of ldaps.ldif fails (and ldaps is unavailable as a
  result).
- Log to syslog (Apache as well).
- Metrics (also Apache).
- Testing (ldaps, backup and restore).