ldap groupdn now a var

This commit is contained in:
2025-11-04 17:09:20 +01:00
parent d54bce8e75
commit 5f7b68fb44
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ Role Variables
* org: no default * org: no default
* ldap_base - from group variables * ldap_base - from group variables
* ldap_group_dn - from group variables
* nlu_dn_attribute - firstname or email - default to email * nlu_dn_attribute - firstname or email - default to email
* binddn - from group variables * binddn - from group variables
* bindpwd - from group variables * bindpwd - from group variables

View File

@@ -34,7 +34,7 @@
- name: "add account to group" - name: "add account to group"
when: group != "" when: group != ""
community.general.ldap_attrs: community.general.ldap_attrs:
dn: "cn={{ group }},ou={{ org }},{{ ldap_base }}" dn: "cn={{ group }},{{ ldap_group_dn }}"
bind_dn: "{{ ldap_binddn }}" bind_dn: "{{ ldap_binddn }}"
bind_pw: "{{ ldap_bindpwd }}" bind_pw: "{{ ldap_bindpwd }}"
attributes: attributes: