diff options
author | Simon Rettberg | 2017-11-24 15:48:06 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-24 15:48:06 +0100 |
commit | 8f7ace290cf43cc55431b44ea620383b1686ad28 (patch) | |
tree | 0f599ca1e29cba771e679a6530c63e2bc1d1ea60 /core/modules/sssd/data | |
parent | [vmware*/run-virt] Implement NIC bridging (diff) | |
download | mltk-8f7ace290cf43cc55431b44ea620383b1686ad28.tar.gz mltk-8f7ace290cf43cc55431b44ea620383b1686ad28.tar.xz mltk-8f7ace290cf43cc55431b44ea620383b1686ad28.zip |
[sssd] Add all local users to filter list
Diffstat (limited to 'core/modules/sssd/data')
-rwxr-xr-x | core/modules/sssd/data/opt/openslx/scripts/systemd-patch_sssd_conf | 10 |
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 + |