From 7946be1f65f17bc89b749dde44c1ee9508d51a5c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 23 Jan 2018 16:35:08 +0100 Subject: [PATCH] Extra documentation for smb update notification with user provided auth --- .../configuration_files/external_storage/smb.rst | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/admin_manual/configuration_files/external_storage/smb.rst b/admin_manual/configuration_files/external_storage/smb.rst index 8bf624cfb..f6be278be 100644 --- a/admin_manual/configuration_files/external_storage/smb.rst +++ b/admin_manual/configuration_files/external_storage/smb.rst @@ -72,6 +72,16 @@ passing the ``-v`` option to the command. SMB authentication ^^^^^^^^^^^^^^^^^^ -In some cases (such as when using login credentials) it's not possible to read the -smb credentials from the storage configuration, in those cases you can provide -the username and password using the ``--username`` and ``--password`` arguments. +Update notifications are not supported when using 'Login credentials, save in session' authentication. +Using login credentials is only supported with 'Login credentials, save in database'. + +Even when using 'Login credentials, save in database' or 'User entered, stored in database' authentication the notify process +can not use the credentials saved to attach to the smb shares because the notify process does not run in the context of a specific user +in those cases you can provide the username and password using the ``--username`` and ``--password`` arguments. + +Decrease sync delay +^^^^^^^^^^^^^^^^^^^ + +Any updates detected by the notify command will only be synced to the client after the Nextcloud cron job has been executed +(usually every 15 minutes). If this interval is to high for your use case, you can decrease it by running ``occ files:scan --unscanned --all`` +at the desired interval. Note that this might increase the server load and you'll need to ensure that there is no overlap between runs.