#6271 Client re-enrollment with keytab not working
Closed: Invalid Opened by dkupka.

Steps to reproduce:

# ipa-client-install -p admin -w Secret123 -U
# rm /etc/ipa/default.conf
# rm /var/lib/ipa-client/sysrestore/*
# ipa-client-install --keytab /etc/krb5.keytab -U

Actual result:

Using existing certificate '/etc/ipa/ca.crt'.
Client hostname: client.example.com
Realm: EXAMPLE.COM
DNS Domain: example.com
IPA Server: server.example.com
BaseDN: dc=example,dc=com
Removed old keys for realm EXAMPLE.COM from /etc/krb5.keytab
Skipping synchronizing time with NTP server.
Please make sure the following ports are opened in the firewall settings:
     TCP: 80, 88, 389
     UDP: 88 (at least one of TCP/UDP ports 88 has to be open)
Also note that following ports are necessary for ipa-client working properly after enrollment:
     TCP: 464
     UDP: 464, 123 (if NTP enabled)
Kerberos authentication failed: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (2529639107): No credentials cache found
Installation failed. Rolling back changes.
IPA client is not configured on this system.

Expected result:

Using existing certificate '/etc/ipa/ca.crt'.
Client hostname: client.example.com
Realm: EXAMPLE.COM
DNS Domain: example.com
IPA Server: server.example.com
BaseDN: dc=example,dc=com
Skipping synchronizing time with NTP server.
Enrolled in IPA realm EXAMPLE.COM
Created /etc/ipa/default.conf
Domain example.com is already configured in existing SSSD config, creating a new one.
The old /etc/sssd/sssd.conf is backed up and will be restored during uninstall.
Configured sudoers in /etc/nsswitch.conf
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm EXAMPLE.COM
trying https://server.example.com/ipa/json
Forwarding 'ping' to json server 'https://server.example.com/ipa/json'
Forwarding 'ca_is_enabled' to json server 'https://server.example.com/ipa/json'
Systemwide CA database updated.
Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_ed25519_key.pub
Forwarding 'host_mod' to json server 'https://server.example.com/ipa/json'
Could not update DNS SSHFP records.
SSSD enabled
Configured /etc/openldap/ldap.conf
Configured /etc/ssh/ssh_config
Configured /etc/ssh/sshd_config
Configuring example.com as NIS domain.
Client configuration complete.

This is expected behavior. My bad, I should read the design before opening tickets.

Metadata Update from @dkupka:
- Issue assigned to someone
- Issue set to the milestone: 0.0 NEEDS_TRIAGE

Metadata