packetfence icon indicating copy to clipboard operation
packetfence copied to clipboard

Allow local user to do MFA

Open fdurand opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Add the action trigger radius mfa and trigger portal mfa for a local user.

Describe the solution you'd like Right now the action is available in the frontend but when you add it and save it does nothing since the field is not available in the password table.

+-----------------+--------------+------+-----+---------------------+-------+
| Field           | Type         | Null | Key | Default             | Extra |
+-----------------+--------------+------+-----+---------------------+-------+
| tenant_id       | int(11)      | NO   | PRI | 1                   |       |
| pid             | varchar(255) | NO   | PRI | NULL                |       |
| password        | varchar(255) | NO   |     | NULL                |       |
| valid_from      | datetime     | NO   |     | 0000-00-00 00:00:00 |       |
| expiration      | datetime     | NO   |     | NULL                |       |
| access_duration | varchar(255) | YES  |     | NULL                |       |
| access_level    | varchar(255) | YES  |     | NONE                |       |
| category        | int(11)      | YES  | MUL | NULL                |       |
| sponsor         | tinyint(1)   | NO   |     | 0                   |       |
| unregdate       | datetime     | NO   |     | 0000-00-00 00:00:00 |       |
| login_remaining | int(11)      | YES  |     | NULL                |       |
+-----------------+--------------+------+-----+---------------------+-------+

So we should add the field in the password table and make MFA available for local user.

Additional context Availables options for the user action (we should remove some elements) image

fdurand avatar Oct 31 '22 14:10 fdurand