ipa-rmkeytab(1)
π ipa-rmkeytab β the "bye bye keytab entry" era π
okay bestie, so you know ipa-rmkeytab? that's the one β it's an IPA Manual Pages girlie and she does exactly one job and she does it slayfully: remove a kerberos principal from a keytab. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
ipa-rmkeytab [ -p principal-name ] [ -k keytab-file ] [ -r realm ] [ -d ]
πΈ DESCRIPTION πΈ
So. She removes a kerberos principal from a keytab. Iconic, minimal, no notes. π
Now let's talk keytabs, because this is the lore you need. Kerberos keytabs are what services (like sshd) use to do kerberos authentication. A keytab is literally just a file with one or more secrets (or keys) for a kerberos principal. that's it. a lil file full of secrets. π«Ά
And a kerberos service principal? That's a kerberos identity you can use for authentication. Service principals contain three things: the name of the service, the hostname of the server, and the realm name. all three, together, no cap. β¨
ipa-rmkeytab gives you two ways to remove principals, and honestly pick your fighter:
- you can remove a specific principal, or
- you can remove all principals for a given realm. π₯
When she removes a principal, all encryption types and versions of that principal go too. every single one. gone. π
Oh and when you're removing a specific principal, the realm may be included β but it is not required. your call, queen. π
NOTE: removing a principal from the keytab does not affect the Kerberos principal stored in the IPA server. It merely removes the entry from the local keytab. So don't panic β the server-side principal is untouched, this is a local-file situation only. π
π¦ OPTIONS π¦
-pprincipal-name β the non-realm part of the full principal name.-kkeytab-file β the keytab file to remove the principal(s) from.-rrealm β a realm to remove all principals for.-dβ debug mode. additional information is displayed. (for when you need the tea β)
π EXAMPLES π
Remove the NFS service principal on the host foo.example.com from /tmp/nfs.keytab:
# ipa-rmkeytab -p nfs/foo.example.com -k /tmp/nfs.keytab
Remove the ldap service principal on the host foo.example.com from /etc/krb5.keytab:
# ipa-rmkeytab -p ldap/foo.example.com -k /etc/krb5.keytab
Remove all principals for the realm EXAMPLE.COM:
# ipa-rmkeytab -r EXAMPLE.COM -k /etc/krb5.keytab
β EXIT STATUS β
The exit status is 0 on success, nonzero on error. she will tell you. π
- Kerberos initialization failed
- Memory allocation error
- Unable to open keytab
- Unable to parse the principal name
- Principal name or realm not found in keytab
- Unable to remove principal from keytab
- Failed to set cursor
and that's the whole page bestie, you're so welcome. this one's brought to you by IPA, dated Oct 30 2009 β vintage but still eating, fr fr. go forth and clean up your keytabs, you've got this πβ¨π
π¦ where this page comes from
- centos-stream 10: ipa-client 4.13.4-1.el10 Β· GPL-3.0-or-later
- centos-stream 9: ipa-client 4.13.4-1.el9 Β· GPL-3.0-or-later
- debian bookworm: freeipa-client 4.9.11-1 Β· GPL-3.0-or-later
- debian trixie: freeipa-client 4.12.4-1 Β· GPL-3.0-or-later
- fedora 43: freeipa-client 4.12.5-3.fc43 Β· GPL-3.0-or-later
- fedora 43: freeipa-client 4.13.4-2.fc43
- fedora 43: freeipa-client 4.13.4-3.fc43 Β· GPL-3.0-or-later
- fedora 44: freeipa-client 4.13.1-9.fc44 Β· GPL-3.0-or-later
- fedora 44: freeipa-client 4.13.4-2.fc44
- fedora 44: freeipa-client 4.13.4-3.fc44 Β· GPL-3.0-or-later
- nixos 26.05: freeipa 4.12.5
- nixpkgs unstable: freeipa 4.13.1
- ubuntu jammy: freeipa-client 4.9.8-1 Β· GPL-3.0-or-later
- ubuntu noble: freeipa-client 4.11.1-2 Β· GPL-3.0-or-later
- ubuntu questing: freeipa-client 4.12.4-1
- ubuntu resolute: freeipa-client 4.13.1-1 Β· GPL-3.0-or-later
- ubuntu stonking: freeipa-client 4.13.1-1build1 Β· GPL-3.0-or-later
- Copyright (C) 2009 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms