Caveat
Make sure the user reads the warning about changing e-mail. But, chances are there's no choice at this point because the user has lost access to the old address.
Request Verification
Each request must be verified to ensure that the user request is valid. We don't want random people taking over someone else's account. Here are some methods:
- Have the user open a formal request in Bugzilla (in the Accounts) section. If the user is still able to log in to Bugzilla, this is the most straightforward way as you can check the Bugzilla account that opened the bug. Take the e-mail address shown under Reported: and look it up under by running the following on a Mageia server:
ldapsearch -H ldaps://ldap.mageia.org -b ou=People,dc=mageia,dc=org -D uid=$USER,ou=People,dc=mageia,dc=org -W '(mail=REQUESTER@E-MAIL)'
Replace REQUESTER@E-MAIL with the e-mail address from Bugzilla. Use your Mageia password when it asks for a password. The user's Mageia account info will be shown including the uid of the account owner. If it matches the request, you're go to go.
- If the user isn't able to log in to Bugzilla but has an SSH key on file, you can use that to authenticate him/her. If the account holder is a packager, he/she can prove identity by making a specific requested change to an svn or git file.
Update E-mail
To actually perform the e-mail change for the primary Mageia account, run this command, replacing USERUID and USEREMAIL with the user's uid and new e-mail address, respectively ($USER is entered literally and will automatically be replaced by your own current user login):
$ ldapmodify -H ldaps://ldap.mageia.org -D "uid=$USER,ou=People,dc=mageia,dc=org" -W <<EOF dn: uid=USERUID,ou=People,dc=mageia,dc=org changetype: modify replace: mail mail: USEREMAIL EOF
Enter your own Mageia password to authenticate the change. You may run the following command to verify the change afterward:
$ ldapsearch -H ldaps://ldap.mageia.org -b ou=People,dc=mageia,dc=org -D "uid=$USER,ou=People,dc=mageia,dc=org" -W '(uid=USERUID)'
More e-mail changes
Remind the user that any mailing list subscriptions must be individually updated by that user (see https://ml.mageia.org/l/pref), as well as the e-mail address used in forums (https://forums.mageia.org/en/ucp.php?i=profile&mode=reg_details).
[Ed. note:] It's unclear how the LDAP update above affects the e-mail addresses used by Bugzilla, the Wiki and forums. Bugzilla and Wiki are probably updated automatically after logging in, since it seems that Bugzilla takes a day to reflect the new address.
If the user no longer has access to the old address and is unable to change it, then these changes will need to be done by a sysadmin in a manner TBD.