1
0
Fork 0
mirror of synced 2024-12-22 06:31:06 -05:00

Allow the configuration of servers attributes

This commit is contained in:
Guillaume Thouvenin 2016-12-13 13:53:05 +01:00
parent b388042cd6
commit 8c79aa4e1a
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