nlu_dn_attribut permit to choose DN attribute
This commit is contained in:
@@ -12,7 +12,7 @@ Role Variables
|
|||||||
--------------
|
--------------
|
||||||
org: no default
|
org: no default
|
||||||
ldap_base - from group variables
|
ldap_base - from group variables
|
||||||
nlu_dn_attribute - default firstname can be email
|
nlu_dn_attribute - TODO: defaults override host var in this case ? firstname or email
|
||||||
binddn - from group variables
|
binddn - from group variables
|
||||||
bindpwd - from group variables
|
bindpwd - from group variables
|
||||||
file : default account.csv csv file containing user to create:
|
file : default account.csv csv file containing user to create:
|
||||||
@@ -39,7 +39,7 @@ Including an example of how to use your role (for instance, with variables passe
|
|||||||
user: tom
|
user: tom
|
||||||
become: false
|
become: false
|
||||||
roles:
|
roles:
|
||||||
- { role: tco.new_ldap_user, org=plop.fr,file: ~/Documents/Opendoor/Clients/Plop/account.csv }
|
- { role: tco.new_ldap_user, org=plop.fr,file: ~/Documents/Opendoor/Clients/Plop/account.csv , nlu_dn_attribute: email }
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
---
|
---
|
||||||
# defaults file for tco.new_ldap_user
|
# defaults file for tco.new_ldap_user
|
||||||
nlu_dn_attribute: "firstname"
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
sn: "{{ lastname | default( firstname ) }}"
|
sn: "{{ lastname | default( firstname ) }}"
|
||||||
cn: "{{ firstname }}"
|
cn: "{{ firstname }}"
|
||||||
mail: "{{ email }}"
|
mail: "{{ email }}"
|
||||||
uid: "{{ firstname | lower }}"
|
|
||||||
PreferredDeliveryMethod: any
|
PreferredDeliveryMethod: any
|
||||||
displayName: "{{ firstname }} {{ lastname }}"
|
displayName: "{{ firstname }} {{ lastname }}"
|
||||||
userPassword: "{{ password }}"
|
userPassword: "{{ password }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user