forked from finallycoffee/base
fix(openldap): allow properly configuring the cn=config namespace and the config db
This commit is contained in:
@ -26,11 +26,13 @@ openldap_additional_schemas: []
|
||||
openldap_schemas: >-2
|
||||
{{ openldap_enabled_schemas + openldap_additional_schemas }}
|
||||
|
||||
openldap_config_db: "cn=config"
|
||||
openldap_config_db_olc_access: >-2
|
||||
to *
|
||||
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
|
||||
by * none
|
||||
openldap_config_dn: "cn=config"
|
||||
openldap_config_db_dn: "olcDatabase={0}config,cn=config"
|
||||
openldap_config_db_olc_access:
|
||||
- '{0} to *
|
||||
by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
|
||||
by * none'
|
||||
openldap_config_attributes: {}
|
||||
openldap_config_db_attributes:
|
||||
olcAccess: "{{ openldap_config_db_olc_access }}"
|
||||
|
||||
@ -49,7 +51,7 @@ openldap_default_database_directory: >-2
|
||||
openldap_default_database_indices: >-2
|
||||
{{ openldap_default_indices + openldap_indices }}
|
||||
openldap_default_database_config: >-2
|
||||
olcDatabase={1}{{ openldap_default_database_name }},{{ openldap_config_db }}
|
||||
olcDatabase={1}{{ openldap_default_database_name }},{{ openldap_config_dn }}
|
||||
openldap_default_database:
|
||||
name: "{{ openldap_default_database_name }}"
|
||||
object_class: "{{ openldap_default_database_object_class }}"
|
||||
@ -58,5 +60,6 @@ openldap_default_database:
|
||||
root_pw: "{{ openldap_default_database_root_pw }}"
|
||||
directory: "{{ openldap_default_database_directory }}"
|
||||
indices: "{{ openldap_default_database_indices }}"
|
||||
openldap_default_database_olc_access: "{{ openldap_config_db_olc_access }}"
|
||||
openldap_databases:
|
||||
- "{{ openldap_default_database }}"
|
||||
|
Reference in New Issue
Block a user