Skip to content

Commit

Permalink
Revert "Workaround 1708275."
Browse files Browse the repository at this point in the history
This reverts commit 1a72655.

The issue was fixed in SSSD 2.3.
  • Loading branch information
adelton committed Dec 12, 2024
1 parent de8c84c commit 76035c1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ipa-client-enroll
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ set -e

exec >> /run/docker-console/fd/1 2>> /run/docker-console/fd/2

workaround_1708275 () {
# Workaround 1708275
if ! grep -q dyndns_refresh_interval /etc/sssd/sssd.conf ; then
sed -i '/^\[domain/adyndns_refresh_interval = 999999' /etc/sssd/sssd.conf
fi
}

if [ -f /etc/ipa/default.conf ] ; then
echo "$HOSTNAME is already IPA-enrolled."
workaround_1708275
exit
fi

Expand All @@ -43,8 +35,6 @@ curl -o /tmp/otp-password -fs https://$IPA/pub/$HOSTNAME-otp
ipa-client-install --server $IPA --domain $DOMAIN --password $( cat /tmp/otp-password ) --enable-dns-updates --no-ntp --no-nisdomain --no-ssh --no-sshd --no-sudo --no-dns-sshfp --unattended
)

workaround_1708275

if id apache &> /dev/null ; then
HTTP_CERT=/etc/pki/tls/certs/localhost.crt
rm -f $HTTP_CERT
Expand Down

0 comments on commit 76035c1

Please sign in to comment.