Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
88ef72a3
Commit
88ef72a3
authored
Aug 11, 2019
by
Robin Broda
Browse files
ldap: Create entries
parent
0ddc2d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/ldap/tasks/main.yml
View file @
88ef72a3
...
...
@@ -3,7 +3,48 @@
-
name
:
install ldap
pacman
:
name=389-ds-base state=present
-
name
:
create parent entry categories
ldap_entry
:
dn
:
ou={{item]],dc=archlinux,dc=org
objectClass
:
-
top
-
organizationalUnit
attributes
:
ou
:
"
{{item}}"
with_items
:
-
users
-
groups
-
name
:
create user entries
ldap_entry
:
dn
:
uid={{item.key}},ou=users,dc=archlinux,dc=org
objectClass
:
-
top
-
person
-
inetOrgPerson
-
organizationalPerson
-
posixAccount
attributes
:
uid
:
{{
item.key
}}
givenName
:
{{
item.value.name
}}
with_dict
:
"
{{
arch_users
}}"
-
name
:
create group entries
ldap_entry
:
dn
:
cn={{item}},ou=groups,dc=archlinux,dc=org
objectClass
:
-
top
-
posixGroup
with_items
:
"
{{
arch_groups
}}"
#TODO
#- name: associate groups with users
# ldap_attr:
# dn: cn={{ TODO GROUP HERE }},ou=groups,dc=archlinux,dc=org
# name: memberuid
# values: {{ TODO USER HERE }}
# state: present
# with_
-
name
:
open firewall hole
firewalld
:
service=ldap permanent=true state=enabled immediate=yes
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment