Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tasks/install_ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@

- name: Install the openldap and required Packages for RedHat
yum: name={{ item }} state=installed
with_items: openldap_server_pkgs
with_items: "{{ openldap_server_pkgs }}"
when: ansible_os_family == 'RedHat'


- name: Install the openldap and required Packages for Ubuntu
apt: name={{ item }} state=installed update_cache=yes
with_items: openldap_server_pkgs
environment: env
with_items: "{{ openldap_server_pkgs }}"
when: ansible_os_family == 'Debian'

- name: Delete the configuration directory
Expand Down
2 changes: 1 addition & 1 deletion templates/slapd.conf_ubuntu.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ access to attrs=shadowLastChange
database bdb
suffix "dc={{ openldap_server_domain_name.split('.')[0] }},dc={{ openldap_server_domain_name.split('.')[1] }}"
rootdn "cn=Manager,dc={{ openldap_server_domain_name.split('.')[0] }},dc={{ openldap_server_domain_name.split('.')[1] }}"
rootpw {{ root_password.stdout }}
rootpw "{{ root_password.stdout }}"
#This directory has to be created and would contain the ldap database.
directory /var/lib/ldap/{{ openldap_server_domain_name }}/
index objectClass eq,pres
Expand Down