24 lines
		
	
	
		
			633 B
		
	
	
	
		
			Django/Jinja
		
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			633 B
		
	
	
	
		
			Django/Jinja
		
	
	
{{ ansible_header | comment }}
 | 
						|
 | 
						|
{% if re2o_ldap.replica is defined %}
 | 
						|
dn: olcDatabase={1}hdb,cn=config
 | 
						|
changetype: modify
 | 
						|
add: olcSyncrepl
 | 
						|
olcSyncrepl: rid=1
 | 
						|
        provider={{ re2o_ldap.url }}
 | 
						|
        bindmethod=simple
 | 
						|
        binddn="cn={{ re2o_ldap.replica.username }},{{ re2o_ldap.suffix }}"
 | 
						|
        credentials={{ re2o_ldap.replica.password }}
 | 
						|
        searchbase="{{ re2o_ldap.suffix }}"
 | 
						|
        scope=sub
 | 
						|
        schemachecking=on
 | 
						|
        type=refreshAndPersist
 | 
						|
        timeout=0
 | 
						|
        network-timeout=0
 | 
						|
        retry="30 20 300 +"
 | 
						|
        tls_reqcert=allow
 | 
						|
-
 | 
						|
add: olcUpdateRef
 | 
						|
olcUpdateRef: {{ re2o_ldap.url }}
 | 
						|
{% endif %}
 |