nlu_dn_attribut permit to choose DN attribute
This commit is contained in:
@@ -12,7 +12,7 @@ Role Variables
|
||||
--------------
|
||||
org: no default
|
||||
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
|
||||
bindpwd - from group variables
|
||||
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
|
||||
become: false
|
||||
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
|
||||
-------
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
---
|
||||
# defaults file for tco.new_ldap_user
|
||||
nlu_dn_attribute: "firstname"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
sn: "{{ lastname | default( firstname ) }}"
|
||||
cn: "{{ firstname }}"
|
||||
mail: "{{ email }}"
|
||||
uid: "{{ firstname | lower }}"
|
||||
PreferredDeliveryMethod: any
|
||||
displayName: "{{ firstname }} {{ lastname }}"
|
||||
userPassword: "{{ password }}"
|
||||
|
||||
Reference in New Issue
Block a user