initial commit, work on opendoor

This commit is contained in:
2023-03-10 10:30:28 +01:00
commit 2f0ba395d1
9 changed files with 165 additions and 0 deletions

33
tasks/ldap_user_inc.yml Normal file
View File

@@ -0,0 +1,33 @@
---
- name: add ldap ou
community.general.ldap_entry:
dn: "ou={{ org }},{{ ldap_base }}"
bind_dn: "{{ binddn }}"
bind_pw: "{{ bindpwd }}"
objectClass:
- organizationalUnit
- top
- name: add ldap account
vars:
firstname: "{{ item.firstname }}"
lastname: "{{ item.lastname }}"
email: "{{ item.email }}"
password: "{{ item.password }}"
community.general.ldap_entry:
bind_dn: "{{ binddn }}"
bind_pw: "{{ bindpwd }}"
dn: "uid={{ firstname |lower }}, ou={{ org }},{{ ldap_base }}"
state: present
objectClass:
- inetorgperson
- inetLocalMailRecipient
attributes:
givenName: "{{ firstname }}"
sn: "{{ lastname | default( firstname ) }}"
cn: "{{ firstname }}"
mail: "{{ email }}"
uid: "{{ firstname | lower }}"
PreferredDeliveryMethod: any
displayName: "{{ firstname }} {{ lastname }}"
userPassword: "{{ password }}"