diff --git a/README.md b/README.md index cc06fa6..82efd0b 100644 --- a/README.md +++ b/README.md @@ -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 ------- diff --git a/defaults/main.yml b/defaults/main.yml index 3389d1d..56fa136 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,2 @@ --- # defaults file for tco.new_ldap_user -nlu_dn_attribute: "firstname" diff --git a/tasks/ldap_user_inc.yml b/tasks/ldap_user_inc.yml index 0e1ffe8..b081b31 100644 --- a/tasks/ldap_user_inc.yml +++ b/tasks/ldap_user_inc.yml @@ -21,7 +21,6 @@ sn: "{{ lastname | default( firstname ) }}" cn: "{{ firstname }}" mail: "{{ email }}" - uid: "{{ firstname | lower }}" PreferredDeliveryMethod: any displayName: "{{ firstname }} {{ lastname }}" userPassword: "{{ password }}"