aboutsummaryrefslogtreecommitdiff
path: root/src/usr/sbin/freeipa-helper-post-install
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-24 12:15:37 +0000
committerB Stack <bgstack15@gmail.com>2020-03-24 12:15:37 +0000
commitc4de32cb5959072aadf46686e311f4d0a974dc13 (patch)
treebf30a9449a3ee3afbc6fc46c860591a64907ac8d /src/usr/sbin/freeipa-helper-post-install
parentadd debian/ (diff)
parentfix sssd.conf and improve packaging (diff)
downloadfreeipa-helper-master.tar.gz
freeipa-helper-master.tar.bz2
freeipa-helper-master.zip
Merge branch 'dev' into 'master'HEADmaster
fix sssd.conf and improve packaging Closes #1 See merge request bgstack15/freeipa-helper!1
Diffstat (limited to 'src/usr/sbin/freeipa-helper-post-install')
-rwxr-xr-xsrc/usr/sbin/freeipa-helper-post-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/sbin/freeipa-helper-post-install b/src/usr/sbin/freeipa-helper-post-install
index e9b61b2..8baa604 100755
--- a/src/usr/sbin/freeipa-helper-post-install
+++ b/src/usr/sbin/freeipa-helper-post-install
@@ -7,10 +7,12 @@
# Purpose: Turn my configs into a one-liner
# History:
# 2020-03-11 contents ripped entirely from devuan.txt
+# 2020-03-23 add sssd.conf templating
# Usage:
# sudo freeipa-helper-post-install
# References:
# /mnt/public/Support/Platforms/devuan/devuan.txt
+# almost-bashism for templating from file https://stackoverflow.com/questions/2914220/bash-templating-how-to-build-configuration-files-from-templates-with-bash/60820800#60820800
# Improve:
# Dependencies:
# raw: /usr/share/bgconf/confs/kerberos/kerberos.sh
@@ -22,5 +24,10 @@ tf=/etc/pam.d/common-session ; ! grep -q 'mkhomedir' "${tf}" && { thisline="$((
# set dns_canonicalize_hostname = true
sudo updateval -a /etc/krb5.conf -s '[libdefaults]' '^(\s*dns_canonicalize_hostname\s*=\s*).*' ' dns_canonicalize_hostname = true'
test -e /usr/share/bgconf/confs/kerberos/kerberos.sh && sudo sh /usr/share/bgconf/confs/kerberos/kerberos.sh
+eval "cat <<EOF >/etc/sssd/sssd.conf
+$( cat /usr/share/freeipa-helper/sssd.conf.in )
+EOF
+"
+chmod 0600 /etc/sssd/sssd.conf
service sssd stop ; service sssd start
service ssh stop ; service ssh start
bgstack15