1
0
Fork 0
mirror of synced 2024-11-22 00:45:34 -05:00

Merge pull request #23 from thouveng/servers_attributes_configuration

Allow the configuration of servers attributes
This commit is contained in:
thouveng 2016-12-13 14:20:06 +01:00 committed by GitHub
commit 852764d54f
2 changed files with 12 additions and 5 deletions

View file

@ -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) %}

View file

@ -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