Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Double escape @ in realm to avoid shell interpretation
From: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/linux_domain_identity_authentication_and_policy_guide/managing-kerberos-aliases "When adding or removing enterprise principal aliases, escape the @ symbol using two backslashes (\\). Otherwise, the shell interprets the @ symbol as part of the Kerberos realm name and leads to the following error: ipa: ERROR: The realm for the principal does not match the realm for this IPA server" Also mentioned in: https://www.freeipa.org/page/V4/Kerberos_principal_aliases "Be careful to escape '@' in the enterprise principal name, otherwise the framework will complain about bad realm" How to recreate and test this: 1) Deploy a recent new appliance 2) Configure ipa client using the demo environment: https://www.freeipa.org/page/Demo 3) kinit helpdesk # or any other user configured on the demo env webpage 4) Run appliance_console_cli --http-cert This recreates realm does not match error above. Apply this code change allows us to get further but fails because we're not configured to make changes such as adding aliases on the ipa server.
- Loading branch information