Skip to content

Commit

Permalink
3.0.8
Browse files Browse the repository at this point in the history
Disable Google MFA for specific user (#3595)
  • Loading branch information
nilsteampassnet committed May 21, 2023
1 parent 884efa4 commit 9c505fb
Show file tree
Hide file tree
Showing 70 changed files with 2,675 additions and 32 deletions.
Binary file added docs/_media/tp3_auth_mfa_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_media/tp3_auth_mfa_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_media/tp3_auth_mfa_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_media/tp3_auth_mfa_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 29 additions & 1 deletion docs/features/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,32 @@ Depending of the AD type and your users annuary configuration, the next keys nee
* __Local and LDAP users__ - If LDAP authentication is enabled, only users synchronized with AD remote server will be allowed to log in Teampass. Locally managed users will by default be rejected. With this option enabled, both kind of users can be allowed to log in Teampass.
* __AD user roles mapped with their AD groups (1)__ - When enabled, Administrator will be able to map existing AD Groups with local Teampass roles. By doing so, any AD user belonging with one of this AD group will automatically be promoted to the mapped Teampass role.
* __Hide forgot password link on Home page__ - If LDAP authentication is enabled, you should disable forgot password feature but it can be enabled for locally managed users.
* __AD user to get created automatically__ - Valid AD user will have an account automatically created in Teampass and his AD groups mapped with corresponding Teampass roles.
* __AD user to get created automatically__ - Valid AD user will have an account automatically created in Teampass and his AD groups mapped with corresponding Teampass roles.


## Multi Factor Authentication (MFA)

> User authentication can be completed with an MFA protocol. Currently, `Google Authentication` and `DUO Security` can be enabled for users.
### Setting up

As an Administrator, select the `Settings \ MFA` option in the left menu.

![Settings tasks options](../_media/tp3_auth_mfa_1.png)

### Generalities

🔔 Once an MFA protocol is enabled, the MFA code is mandatory for each user to get authenticated in Teampass. 2 exceptions are possible.

👉 Administrator users can have this rule disabled globally using dedicated option.

![Settings tasks options](../_media/tp3_auth_mfa_2.png)

👉 By default, each user has to authenticated with an MFA code. But this can be disabled through the user form inside page `Users` using the input `MFA enabled`.

![Settings tasks options](../_media/tp3_auth_mfa_4.png)

If disabled for a user, a red fingerprint symbol is shown in the users list.

![Settings tasks options](../_media/tp3_auth_mfa_3.png)

4 changes: 2 additions & 2 deletions includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
* @see http://www.teampass.net
*/
define('TP_VERSION', '3.0.7');
define("UPGRADE_MIN_DATE", "1681998259");
define('TP_VERSION', '3.0.8');
define("UPGRADE_MIN_DATE", "1684663811");
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
2 changes: 2 additions & 0 deletions includes/language/bulgarian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/catalan.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/chinese.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/czech.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/dutch.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/english.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* @see https://www.teampass.net
*/
return array(
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',
'error_data_not_valid' => 'Data is not valid',
'new_user_info_by_mail' => 'New user will receive an email with his credentials',
'login_credentials' => 'Login credentials',
Expand Down
2 changes: 2 additions & 0 deletions includes/language/estonian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/french.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Donnée non valide',
'mfa_enabled' => 'AMF activée',
'mfa_disabled_for_user' => 'AMF désactivée pour l&apos;utilisateur',

);
2 changes: 2 additions & 0 deletions includes/language/german.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/greek.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/hungarian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/italian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/japanese.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/norwegian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/polish.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/portuguese.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/portuguese_br.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/romanian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/russian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1076,5 +1076,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/spanish.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hola #lastname#,<br><br>Este es un correo electrónico generado por Teampass.<br><br>El cifrado de claves ya ha finalizado. Se espera el siguiente código la próxima vez que use Teampass:<br><br><b>#code#</b><br><br>Saludos.',
'email_body_user_config_6' => 'Hola #lastname#,<br><br>Este es un correo electrónico generado por Teampass.<br><br>Se esperan las siguientes credenciales la próxima vez que use Teampass:<br><br><ul><li>Usuario: #login#</li><li>Contraseña: #contraseña#</li></ul><br><br>Saludos.',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/swedish.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/turkish.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/ukrainian.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
2 changes: 2 additions & 0 deletions includes/language/vietnamese.php
Original file line number Diff line number Diff line change
Expand Up @@ -1075,5 +1075,7 @@
'email_body_user_config_5' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Keys encryption is now finished. Following code is expected next time using Teampass:<br><br><b>#code#</b><br><br><br>Cheers',
'email_body_user_config_6' => 'Hello #lastname#,<br><br>This is a generated email from Teampass passwords manager.<br><br>Following credentials are expected next time using Teampass:<ul><li>login: #login#</li><li>Password: #password#</li></ul><br><br><br>Cheers',
'error_data_not_valid' => 'Data is not valid',
'mfa_enabled' => 'MFA enabled',
'mfa_disabled_for_user' => 'MFA disabled for user',

);
1 change: 1 addition & 0 deletions install/install.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ function encryptFollowingDefuse($message, $ascii_key)
`otp_provided` BOOLEAN NOT NULL DEFAULT FALSE,
`roles_from_ad_groups` varchar(1000) NULL,
`ongoing_process_id` VARCHAR(100) NULL,
`mfa_enabled` tinyint(1) NOT null DEFAULT '1',
PRIMARY KEY (`id`),
UNIQUE KEY `login` (`login`)
) CHARSET=utf8;"
Expand Down
Loading

0 comments on commit 9c505fb

Please sign in to comment.