mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
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:
parent
72f44b5596
commit
20c7bd5eba
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user