Skip to content

Commit 39a4c64

Browse files
committed
sssd ubuntu fix
1 parent 2919a90 commit 39a4c64

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

playbooks/roles/sssd/tasks/debian.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
group: 'root'
1717
mode: '0600'
1818
notify: restart sssd
19+
when: not pam | bool
20+
21+
- name: Add configuration file to /etc/sssd/sssd.conf
22+
template:
23+
src: 'sssd_ubuntu.conf.j2'
24+
dest: '/etc/sssd/sssd.conf'
25+
owner: 'root'
26+
group: 'root'
27+
mode: '0600'
28+
notify: restart sssd
29+
when: pam | bool
1930

2031
- name: Copy CA certificate
2132
copy:

playbooks/roles/sssd/templates/sssd.conf.j2

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
[sssd]
2+
23
config_file_version = 2
4+
services = nss, pam
35
domains = cluster
46

7+
[nss]
8+
filter_users = root
9+
entry_negative_timeout = 5
10+
11+
[pam]
12+
pam_verbosity = 2
13+
pam_account_expired_message = 'Your account has expired. Please contact a system administrator'
14+
515
[domain/cluster]
616
ldap_schema = rfc2307bis
717
id_provider = ldap
@@ -16,4 +26,4 @@ ldap_network_timeout = 30
1626
ldap_access_order = expire
1727
ldap_access_filter = (&(objectclass=inetOrgPerson))
1828
ldap_account_expire_policy = shadow
19-
enumerate = true
29+
enumerate = true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[sssd]
2+
config_file_version = 2
3+
domains = cluster
4+
5+
[domain/cluster]
6+
ldap_schema = rfc2307bis
7+
id_provider = ldap
8+
auth_provider = ldap
9+
access_provider = ldap
10+
chpass_provider = ldap
11+
cache_credentials = true
12+
entry_cache_timeout = 600
13+
ldap_uri = ldaps://{{ hostvars[groups['bastion'][0]]['ansible_fqdn'] }}
14+
ldap_search_base = dc=local
15+
ldap_network_timeout = 30
16+
ldap_access_order = expire
17+
ldap_access_filter = (&(objectclass=inetOrgPerson))
18+
ldap_account_expire_policy = shadow
19+
enumerate = true

0 commit comments

Comments
 (0)