Changeset - 308745f2c2a8
[Not reviewed]
0 1 0
Branko Majic (branko) - 10 years ago 2015-03-08 11:22:30
branko@majic.rs
MAR-1: Load the memberof module, and enable the memberof overlay on top of default database.
1 file changed with 12 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/ldap_server/tasks/main.yml
Show inline comments
 
@@ -43,6 +43,18 @@
 
- name: Configure SSF
 
  ldap_entry: dn=cn=config state=replaceattributes olcSecurity=ssf="{{ ldap_server_config.ssf }}" olcLocalSSF="{{ ldap_server_config.ssf }}"
 

	
 
- name: Enable the memberof module
 
  ldap_entry: dn="cn=module{0},cn=config" state=addattributes olcModuleLoad="{1}memberof"
 

	
 
- name: Enable the memberof overlay for database
 
  ldap_entry:
 
    dn: "olcOverlay={0}memberof,olcDatabase={1}hdb,cn=config"
 
    objectClass:
 
      - olcConfig
 
      - olcMemberOf
 
      - olcOverlayConfig
 
    olcOverlay: memberof
 

	
 
- name: Apply database permissions
 
  ldap_permissions:
 
    filter: "{{ item.filter }}"
0 comments (0 inline, 0 general)