Skip to content

Commit

Permalink
[Kim] vyos#2554 remove pam-config profiles before diverting the overr…
Browse files Browse the repository at this point in the history
…idden files then re-enable
  • Loading branch information
arnoxit committed Dec 6, 2023
1 parent ad3264e commit 8f673e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian/vyos-1x.preinst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ dpkg-divert --package vyos-1x --divert /config/freeipa/etc/sssd/pki/sssd_auth_ca
dpkg-divert --package vyos-1x --divert /config/freeipa/etc/sssd/sssd.conf --add --rename /etc/sssd/sssd.conf
dpkg-divert --package vyos-1x --divert /config/freeipa/etc/telegraf/telegraf.conf --add --rename /etc/telegraf/telegraf.conf
dpkg-divert --package vyos-1x --divert /config/freeipa/root/.k5login --add --rename /root/.k5login

# override pam-configs
pam-auth-update --package --remove sss ldap unix
dpkg-divert --package vyos-1x --add --rename /usr/share/pam-configs/ldap
dpkg-divert --package vyos-1x --add --rename /usr/share/pam-configs/sss
dpkg-divert --package vyos-1x --add --rename /usr/share/pam-configs/unix
pam-auth-update --package --enable unix sss

0 comments on commit 8f673e4

Please sign in to comment.