howto:specific:disable_accounts
Table of Contents
Disabling Accounts
Since MIT Kerberos KDC acts as the source of truth for authentication, it is probably best to disable accounts there.
To do this, one could:
- SSH into `enclave`, you may have to SSH proxy through
sandboxor another gateway. - Enter the Kerberos admin shell
kadmin -p sonic/admin@TARDISPROJECT.UK- Password is stored on the admin vaultwarden.
- (other principles are available)
- Disable ticket issuance
- Disable:
modprinc -allow_tix [username] - Re-enable:
modprinc +allow_tix [username] - This does not kick the user out of any active sessions, which could take up to a day or two to expire.
- The user will receive a generic
Invalid username or password.error when logging in via keycloak OIDC or password SSH.
This does not block authentication via SSH key, ie. ~/.ssh/authorized_keys which should be handled separately. To do this, one could modify /etc/ssh/sshd_config on sandbox, adding the username to the DenyUsers section. For example:
DenyUsers username1 username2 username3
Stopping account processes
- Use
skill -u usernameon Sandbox to stop their running processes - Also check systemd services
- Check Proxmox to determine if they had a VM, and disable it if so
Administrative
- Ensure that account disabling is communicated with the user via their email in the LDAP, or other means if needed
- Ensure that the process is logged in the admin channel
- Add the account to the list of disabled accounts
howto/specific/disable_accounts.txt · Last modified: by alexdavis
