This document explains how to handle requests to rename a user account.
Requirements
- the new LDAP username
- the new "full name"
- a new or updated GPG key with the new email
- a new mail forwarding address, if needed
Main procedure
-
Update
account-keyring.git
with the new (or updated) GPG key -
With
ldapvi
, update the user and group names in the LDAP database (including the DN), along with the new GPG fingerprint if a new key is to be associated with the account and forwarding address if applicable -
Using
cumin
, rename home directories on hosts -
Optionally, add the previous forwarding to
profile::mx::aliases
intor-puppet:data/common/mail.yaml
-
Update the information on the main website
GitLab
GitLab users may rename their own accounts with the User Settings panel.
Nextcloud
Changing the login name is not supported at all in Nextcloud, only the display name can be changed.
If a new account is created as part or the renaming process, it's possible to "transfer" files and shares from one account to the other using the files:transfer-ownership command via the CLI. This particular option is however untested, and TPA doesn't have access to the hosted Nextcloud CLI.
Other
It's a good idea to grep the tor-puppet.git
repository, this can catch
instances of the old username existing in places like /etc/subuid
.