ipa-client-install: invoke nsupdate twice (GSS-TSIG, plain)

ipa-client-install invokes nsupdate with GSS-TSIG at client
enrollment time. If that fails, no retry is done.
Change that behavior to try again without GSS-TSIG.

Fixes: https://pagure.io/freeipa/issue/8402
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
François Cami authored and Alexander Bokovoy committed 2021-06-28 11:41:07 +03:00
1 parent 72f44b5596
commit 20c7bd5eba
1 file changed
+5
+5
View File
@@ -1370,6 +1370,11 @@ def do_nsupdate(update_txt):
result = True
except CalledProcessError as e:
logger.debug('nsupdate failed: %s', str(e))
try:
ipautil.run([paths.NSUPDATE, UPDATE_FILE])
result = True
except CalledProcessError as e:
logger.debug('Unauthenticated nsupdate failed: %s', str(e))
try:
os.remove(UPDATE_FILE)