InCaseOfRedmineRgistrationIssues » History » Version 2
Denis 'GNUtoo' Carikli, 09/10/2020 08:54 PM
Add more context for potential future use
1 | 1 | Denis 'GNUtoo' Carikli | h1. InCaseOfRedmineRgistrationIssues |
---|---|---|---|
2 | |||
3 | h2. Redmine registration issues |
||
4 | |||
5 | 2 | Denis 'GNUtoo' Carikli | The Redmine registration procedure is a bit fragile: If account activation mail doesn't arrive, we don't know how to make Redmine resend it. |
6 | 1 | Denis 'GNUtoo' Carikli | |
7 | 2 | Denis 'GNUtoo' Carikli | This could happen for several reasons: |
8 | * The registration mail could be lost. |
||
9 | * Redmine could have lost its "Email notification" settings. In that case, Administration->Settings->Email notifications will shows that it's not configured. |
||
10 | 1 | Denis 'GNUtoo' Carikli | |
11 | 2 | Denis 'GNUtoo' Carikli | When that happens, people can still create accounts but the account cannot be activated by them. |
12 | |||
13 | However it's still possible for Redmine Administrators to manually activate the account(s). |
||
14 | |||
15 | 1 | Denis 'GNUtoo' Carikli | h3. To manually activate an account for people creating new accounts |
16 | |||
17 | * Send a mail to the "Mailing list":https://lists.osuosl.org/mailman/listinfo/replicant (Registration required) or the [[PrivateContact]] address or the mailing list. |
||
18 | |||
19 | h3. To manually activate an account for people that have admin access in the Redmine interface |
||
20 | |||
21 | 2 | Denis 'GNUtoo' Carikli | All we need to check is that the email address is valid. Since many emails providers do use DKIM, we can easily reuse the DKIM signatures to do that: |
22 | * First we ask the people having the issue to send a mail on the mailing list, or to the contact address, asking for an account, along with the account details. |
||
23 | * We then verify that the account is not registered, and that the mail is the same between the mail we received and the account. |
||
24 | * Then we verify that the mail we received was not forged by verifying the DKIM signatures. |
||
25 | * Then we activate the account if everything is good. |
||
26 | |||
27 | We don't need to check the person's name as it's not checked by Redmine. Ideally we'd like to have a free form for the (real) name and also make it optional but we didn't find how to do it in a way that is easy to maintain in Redmine. |
||
28 | |||
29 | If you have the mail in Maildir format you can check the DKIM signatures with the following command: |
||
30 | 1 | Denis 'GNUtoo' Carikli | <pre> |
31 | $ cat ./the_mail_in_Maildir_format | dkimverify |
||
32 | signature ok |
||
33 | </pre> |
||
34 | |||
35 | 2 | Denis 'GNUtoo' Carikli | And with claws mail, you can do it by opening the mail, then clicking on "File->Save Email as", and then you can verify it with the same command: |
36 | 1 | Denis 'GNUtoo' Carikli | <pre> |
37 | $ cat saved_mail | dkimverify |
||
38 | signature ok |
||
39 | </pre> |
||
40 | |||
41 | 2 | Denis 'GNUtoo' Carikli | Then to activate the account manually in Redmine, you can go in Administration->Users and Select All in Status, and search for the mail address. |
42 | 1 | Denis 'GNUtoo' Carikli | |
43 | Make sure that there is only one email matching, and then, once the user is selected, you should see the following links on the top-right of the page: |
||
44 | > Emails Activate Delete Users |
||
45 | |||
46 | You can then activate the account by clicking on "Activate". |
||
47 | |||
48 | Be aware that there is no confirmation and that once the button is clicked, the account is activated immediately. |