diff --git a/ipalib/install/kinit.py b/ipalib/install/kinit.py index 968605c05..cc839ec38 100644 --- a/ipalib/install/kinit.py +++ b/ipalib/install/kinit.py @@ -172,4 +172,6 @@ def kinit_pkinit( # this workaround enables us to capture stderr and put it # into the raised exception in case of unsuccessful authentication - run(args, env=env, raiseonerr=True, capture_error=True) + # Unsuccessful pkinit can lead to a password prompt. Send \n to skip + # prompt. + run(args, env=env, stdin="\n", raiseonerr=True, capture_error=True)