diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-05 11:25:44 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-29 16:15:38 +0200 |
commit | f4795f6dacb5bf8f568e99ced155ea6389190137 (patch) | |
tree | 340c03d2ef5875fd75d909ce38a3106a86bd90fd /config | |
parent | 6a3cd32a2dc1e5451ca762e171b62493be11dbca (diff) | |
download | nextcloud-server-f4795f6dacb5bf8f568e99ced155ea6389190137.tar.gz nextcloud-server-f4795f6dacb5bf8f568e99ced155ea6389190137.zip |
Handle one time and large passwords
For passwords bigger than 250 characters, use a bigger key since the
performance impact is minor (around one second to encrypt the password).
For passwords bigger than 470 characters, give up earlier and throw
exeception recommanding admin to either enable the previously enabled
configuration or use smaller passwords.
This adds an option to disable storing passwords in the database. This
might be desirable when using single use token as passwords or very
large passwords.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index f7b63b1491f..d770aeb903d 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -309,6 +309,21 @@ $CONFIG = [ 'auth.webauthn.enabled' => true, /** + * Whether encrypted password should be stored in the database + * + * The passwords are only decrypted using the login token stored uniquely in the + * clients and allow to connect to external storages, autoconfigure mail account in + * the mail app and periodically check if the password it still valid. + * + * This might be desirable to disable this functionality when using one time + * passwords or when having a password policy enforcing long passwords (> 300 + * characters). + * + * By default the passwords are stored encrypted in the database. + */ +'auth.storeCryptedPassword' => true, + +/** * By default the login form is always available. There are cases (SSO) where an * admin wants to avoid users entering their credentials to the system if the SSO * app is unavailable. |