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