Allow the configuration of servers attributes
This commit is contained in:
parent
b388042cd6
commit
8c79aa4e1a
2 changed files with 12 additions and 5 deletions
|
@ -70,11 +70,11 @@ group_search_base_dns = {{ ldap_params.group_search_base_dns }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
[servers.attributes]
|
[servers.attributes]
|
||||||
name = "givenName"
|
name = "{{ ldap_params.servers.attributes.name }}"
|
||||||
surname = "sn"
|
surname = "{{ ldap_params.servers.attributes.surname }}"
|
||||||
username = "cn"
|
username = "{{ ldap_params.servers.attributes.username }}"
|
||||||
member_of = "memberOf"
|
member_of = "{{ ldap_params.servers.attributes.member_of }}"
|
||||||
email = "email"
|
email = "{{ ldap_params.servers.attributes.email }}"
|
||||||
|
|
||||||
{%- if ldap_params.get('authorization', {}).get('enabled', False) %}
|
{%- if ldap_params.get('authorization', {}).get('enabled', False) %}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,13 @@ Debian:
|
||||||
user_search_filter: "(cn=%s)"
|
user_search_filter: "(cn=%s)"
|
||||||
user_search_base_dns:
|
user_search_base_dns:
|
||||||
- "dc=grafana,dc=org"
|
- "dc=grafana,dc=org"
|
||||||
|
servers:
|
||||||
|
attributes:
|
||||||
|
name: "givenName"
|
||||||
|
surname: "sn"
|
||||||
|
username: "cn"
|
||||||
|
member_of: "memberOf"
|
||||||
|
email: "email"
|
||||||
admin:
|
admin:
|
||||||
user: admin
|
user: admin
|
||||||
password: admin
|
password: admin
|
||||||
|
|
Loading…
Reference in a new issue