summaryrefslogtreecommitdiffstats
path: root/core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf')
-rwxr-xr-xcore/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf b/core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf
new file mode 100755
index 00000000..dfdfb6de
--- /dev/null
+++ b/core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf
@@ -0,0 +1,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
+