summaryrefslogtreecommitdiffstats
path: root/core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf
blob: dfdfb6de0c51e4de921998291f7c6a862f96550b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/ash

LIST="$(< /etc/passwd awk -F: '{printf $1 ","}')"
sed -i "s/^filter_users.*\$/filter_users = ${LIST%,}/g" /etc/sssd/sssd.conf

LIST="$(< /etc/group awk -F: '{printf $1 ","}')"
sed -i "s/^filter_groups.*\$/filter_groups = ${LIST%,}/g" /etc/sssd/sssd.conf

exit 0