Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added changes for federated login. #70

Merged
merged 2 commits into from
Mar 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion group_vars/gearshift-cluster/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ uri_ldap: 172.23.40.249
uri_ldaps: comanage-in.id.rug.nl
ldap_port: 389
ldaps_port: 636
ldap_base: ou=umcg,o=asds
ldap_base: ou=research,o=asds
ldap_binddn: cn=clusteradminumcg,o=asds
filter_passwd: '(|(rugpersonentitlementvalue=scz)(rugpersonentitlementvalue=umcg))'
filter_shadow: '(|(rugpersonentitlementvalue=scz)(rugpersonentitlementvalue=umcg))'
pam_authz_search: '(|(&(objectClass=posixGroup)(cn=co_bbmri_g-GRP_Gearshift)(memberUid=$username))(&(cn=$username)(rugpersonentitlementvalue=umcg)))'

nameservers: [
'172.23.40.244', # Order is important: local DNS for Isilon storage first!
'8.8.4.4', # Google DNS.
Expand Down
2 changes: 1 addition & 1 deletion roles/ldap/templates/ldap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

uri ldap://{{ uri_ldap }}
base ou=umcg,o=asds
base {{ ldap_base }}
ssl no
tls_cacertdir /etc/openldap/cacerts
binddn {{ ldap_binddn }}
Expand Down
9 changes: 9 additions & 0 deletions roles/ldap/templates/nslcd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ ssl no
tls_cacertdir /etc/openldap/cacerts
uri ldap://{{ uri_ldap }}
base {{ ldap_base }}
{% if filter_passwd is defined %}
filter passwd {{ filter_passwd }}
{% endif %}
{% if filter_shadow is defined %}
filter shadow {{ filter_shadow }}
{% endif %}
{% if pam_authz_search is defined %}
pam_authz_search {{ pam_authz_search }}
{% endif %}
binddn {{ ldap_binddn }}
bindpw {{ bindpw }}
8 changes: 8 additions & 0 deletions single_role_playbooks/ldap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

- name: Install ldap role.
hosts: cluster
become: true
tasks:
roles:
- ldap