Description of problem:
The 'ipa-getkeytab' tool is used to retrieve a kerberos keytab from the server. The man page contains a warning that retrieving the keytab resets the secret for the Kerberos principal and that this renders all other keytabs for that principal invalid.
Some more details why resetting the key in a replicated environment might be not the best idea should be added to the man page.
https://www.freeipa.org/page/V4/Keytab_Retrieval can be used as a reference.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. $ man ipa-getkeytab
WARNING: retrieving the keytab resets the secret for the Kerberos principal. This renders all other keytabs for that principal invalid. When multiple hosts or
services need to share the same key (for instance in high availability or load balancing clusters), the -r option must be used to retrieve the existing key
instead of generating a new one (please refer to the EXAMPLES section).
Note that the user or host calling ipa-getkeytab needs to be allowed to generate the key with ipa host-allow-create-keytab or ipa service-allow-create-keytab,
and the user or host calling ipa-getkeytab -r needs to be allowed to retrieve the keytab for the host or service with ipa host-allow-retrieve-keytab or ipa ser‐
Based on above observations, marking the bug as verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.