aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-21 16:25:16 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-21 16:25:16 +0100
commit3e186b4098c9f811decc5f79bc279cfa4d3880f4 (patch)
treebf9056b3725fdea957b83ef98d4cad047d27d4fb /roles
parentd2864ab4eb221007ce3647d22c1d3e334e6134cc (diff)
downloadansible_collection-3e186b4098c9f811decc5f79bc279cfa4d3880f4.tar.gz
Icinga: fix ldap
Diffstat (limited to 'roles')
-rw-r--r--roles/icinga2/defaults/main.yml3
-rw-r--r--roles/icinga2/templates/web/groups.ini.j22
2 files changed, 3 insertions, 2 deletions
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 %}