diff options
author | B Stack <bgstack15@gmail.com> | 2020-03-11 17:11:31 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-03-11 17:11:31 -0400 |
commit | 45a5328ed934dc4b718e9eceb18ce13c7ccafbde (patch) | |
tree | d520495a382185340834bd44c45a2ce9a386eda0 /src/usr/sbin/freeipa-helper-post-install | |
download | freeipa-helper-45a5328ed934dc4b718e9eceb18ce13c7ccafbde.tar.gz freeipa-helper-45a5328ed934dc4b718e9eceb18ce13c7ccafbde.tar.bz2 freeipa-helper-45a5328ed934dc4b718e9eceb18ce13c7ccafbde.zip |
initial commit
Diffstat (limited to 'src/usr/sbin/freeipa-helper-post-install')
-rwxr-xr-x | src/usr/sbin/freeipa-helper-post-install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/usr/sbin/freeipa-helper-post-install b/src/usr/sbin/freeipa-helper-post-install new file mode 100755 index 0000000..e9b61b2 --- /dev/null +++ b/src/usr/sbin/freeipa-helper-post-install @@ -0,0 +1,26 @@ +#!/bin/sh +# File: /usr/sbin/freeipa-helper-post-install +# License: CC-BY-SA 4.0 +# Author: bgstack15 +# Startdate: 2020-03-11 +# Title: Script for configuring system after ipa-client-install on non-RH-like systems +# Purpose: Turn my configs into a one-liner +# History: +# 2020-03-11 contents ripped entirely from devuan.txt +# Usage: +# sudo freeipa-helper-post-install +# References: +# /mnt/public/Support/Platforms/devuan/devuan.txt +# Improve: +# Dependencies: +# raw: /usr/share/bgconf/confs/kerberos/kerberos.sh +# devuan: bgconf +# el7: bgconf + +# add pam_mkhomedir +tf=/etc/pam.d/common-session ; ! grep -q 'mkhomedir' "${tf}" && { thisline="$(( $( grep -nE 'session\s+optional' "${tf}" | head -n1 | awk -F':' '{print $1}' ) - 0 ))" ; awk -v thisline="$thisline" 'NR == (thisline) {print "session optional pam_mkhomedir.so"; } {print;}' "${tf}" > "${tf}.2" ; test -f "${tf}.2" && mv "${tf}.2" "${tf}" ; } +# 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 +service sssd stop ; service sssd start +service ssh stop ; service ssh start |