From 3e186b4098c9f811decc5f79bc279cfa4d3880f4 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 21 Jan 2022 16:25:16 +0100 Subject: Icinga: fix ldap --- roles/icinga2/defaults/main.yml | 3 ++- roles/icinga2/templates/web/groups.ini.j2 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'roles') diff --git a/roles/icinga2/defaults/main.yml b/roles/icinga2/defaults/main.yml index 9b6a007..0c36ee6 100644 --- a/roles/icinga2/defaults/main.yml +++ b/roles/icinga2/defaults/main.yml @@ -44,7 +44,8 @@ icingaweb: filter: '' groups: base_dn: '' - group_member_attribute: 'cn' + group_member_attribute: 'member' + group_name_attribute: 'cn' group_class: 'groupOfNames' group_filter: 'cn=*' user_base_dn: '' diff --git a/roles/icinga2/templates/web/groups.ini.j2 b/roles/icinga2/templates/web/groups.ini.j2 index 848b254..04dba70 100644 --- a/roles/icinga2/templates/web/groups.ini.j2 +++ b/roles/icinga2/templates/web/groups.ini.j2 @@ -13,5 +13,5 @@ group_class = {{ icingaweb.ldap.groups.group_class }} group_filter = {{ icingaweb.ldap.groups.group_filter }} user_base_dn = {{ icingaweb.ldap.groups.user_base_dn }} user_class = {{ icingaweb.ldap.groups.user_class }} -user_name_attribute = {{ icingaweb.ldap.groups.uid }} +user_name_attribute = {{ icingaweb.ldap.groups.user_name_attribute }} {% endif %} -- cgit v1.2.3