This repository was archived by the owner on May 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,27 @@ security:
82
82
javascriptEnabled: {{ mongodb_security_javascript_enabled | to_nice_json }}
83
83
{% if mongodb_config ['security' ] is defined and mongodb_config ['security' ] is iterable -%}
84
84
{% for item in mongodb_config ['security' ] -%}
85
+ {% if item == 'ldap' -%}
86
+ ldap:
87
+ transportSecurity: "{{ mongodb_config['security'] ['ldap'] .transportSecurity }}"
88
+ servers: "{{ mongodb_config['security'] ['ldap'] .servers }}"
89
+ bind:
90
+ queryUser: "{{ mongodb_config['security'] ['ldap'] .bind.queryUser }}"
91
+ queryPassword: "{{ mongodb_config['security'] ['ldap'] .bind.queryPassword }}"
92
+ authz:
93
+ queryTemplate: "{{ mongodb_config['security'] ['ldap'] .authz.queryTemplate }}"
94
+ userToDNMapping:
95
+ {{ mongodb_config['security'] ['ldap'] .userToDNMapping }}
96
+ {% else -%}
97
+ {% if mongodb_config ['security' ][item ] is mapping -%}
85
98
{{ item }}:
86
99
{% for key , value in mongodb_config ['security' ][item ].items () %}
87
100
{{ key }}: {{ value | to_nice_json }}
88
101
{% endfor -%}
102
+ {% else -%}
103
+ {{ item }}: {{ mongodb_config['security'] [item] | to_nice_json }}
104
+ {% endif -%}
105
+ {% endif -%}
89
106
{% endfor %}
90
107
{% endif %}
91
108
You can’t perform that action at this time.
0 commit comments