Merge pull request #652 from nextcloud/smb-notify-document-auth

Extra documentation for smb update notification with user provided auth
This commit is contained in:
Morris Jobke
2018-02-06 17:01:42 +01:00
committed by GitHub

View File

@@ -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.