diff options
author | Josh <josh.t.richards@gmail.com> | 2025-07-25 17:50:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 17:50:28 -0400 |
commit | 7a12d5d02c12ef4da1271496c3718a075350f71c (patch) | |
tree | 9d6c6aae6f8524f7d3d717c5d3427910d268e148 | |
parent | 0797fd8af8605ed79b2e0d72f67fb24795620e9d (diff) | |
download | nextcloud-server-jtr-auth-pw-max-length-config-sample.tar.gz nextcloud-server-jtr-auth-pw-max-length-config-sample.zip |
fix(auth): Correct max password length in config.sample.php jtr-auth-pw-max-length-config-sample
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r-- | config/config.sample.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 4494cd8c481..a16442bf6f6 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -474,21 +474,20 @@ $CONFIG = [ 'auth.webauthn.enabled' => true, /** - * Whether encrypted passwords should be stored in the database + * By default, the passwords are stored (encrypted) in the database, but this can be + * explicitly disabled by admins with special requirements (with various caveats). * - * The passwords are only decrypted using the login token stored uniquely in the - * clients and allow connecting to external storages, autoconfiguring mail accounts in - * the mail app, and periodically checking if the password is still valid. + * The passwords are only decrypted using the login token stored uniquely in each + * client. The passwords allow connecting to external storages, autoconfiguring mail + * accounts in the mail app, and periodically checking if the password is 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. + * It may be desirable to disable this functionality when using one-time passwords + * or when enforcing extremely long passwords (>469 bytes aka: + * `IUserManager::MAX_PASSWORD_LENGTH`). * * WARNING: If disabled, password changes on the user backend (e.g., on LDAP) no - * longer log connected clients out automatically. Users can still disconnect - * the clients by deleting the app token from the security settings. + * longer will log clients out automatically. Users can still disconnect a client by + * manually deleting the app token from the security settings. */ 'auth.storeCryptedPassword' => true, |