From 798e31efb8991d8bb40cf24126efb89bb14b24e4 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 20 Jul 2022 09:57:12 +0000 Subject: [PATCH] commit bf19bf89e35891535a5c86c1b1e67b47e0d21913 Author: Ralf Haferkamp Date: Tue Jul 19 16:30:18 2022 +0200 Adjust sharee search setting for compatibility with oc10 --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- services/_includes/adoc/frontend_configvars.adoc | 8 ++++++++ services/_includes/adoc/groups_configvars.adoc | 11 ++++++++++- services/_includes/adoc/users_configvars.adoc | 11 ++++++++++- services/_includes/frontend-config-example.yaml | 1 + services/_includes/frontend_configvars.md | 1 + services/_includes/groups-config-example.yaml | 1 + services/_includes/groups_configvars.md | 3 ++- services/_includes/users-config-example.yaml | 1 + services/_includes/users_configvars.md | 3 ++- 17 files changed, 44 insertions(+), 12 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index 5acaf3eead8..3098cc05910 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-07-20T09:22:16Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index b3a127f21c8..ace02403344 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-07-20T09:22:16Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index 483b0f7c29c..7af4d3cc773 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 843739510ba..25d57be902f 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 86cf33b00b4..02937fd06d9 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 6b5d86b8f75..e7b5646a1ff 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index a3b179fc407..b2ccdaa78b3 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index 2840d8e5f00..74d40d1d753 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-07-20T09:22:15Z +date: 2022-07-20T09:56:26Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/services/_includes/adoc/frontend_configvars.adoc b/services/_includes/adoc/frontend_configvars.adoc index b4f7b33c8cb..d79f39e0bb9 100644 --- a/services/_includes/adoc/frontend_configvars.adoc +++ b/services/_includes/adoc/frontend_configvars.adoc @@ -233,6 +233,14 @@ pass:[true] a| [subs=-attributes] Enables the support for resharing in the frontend. +|`FRONTEND_SEARCH_MIN_LENGTH` +a| [subs=-attributes] ++int+ +a| [subs=-attributes] +pass:[3] +a| [subs=-attributes] +Minimum number of characters to enter before starting a search for Sharees. + |`OCIS_URL` + `FRONTEND_PUBLIC_URL` a| [subs=-attributes] diff --git a/services/_includes/adoc/groups_configvars.adoc b/services/_includes/adoc/groups_configvars.adoc index 081c38be9db..62a4871cec1 100644 --- a/services/_includes/adoc/groups_configvars.adoc +++ b/services/_includes/adoc/groups_configvars.adoc @@ -168,7 +168,7 @@ a| [subs=-attributes] a| [subs=-attributes] pass:[~/.ocis/idm/ldap.crt] a| [subs=-attributes] -Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty the system default CA bundle will be used. +Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used. |`LDAP_INSECURE` + `GROUPS_LDAP_INSECURE` @@ -233,6 +233,15 @@ pass:[sub] a| [subs=-attributes] LDAP search scope to use when looking up groups. Supported scopes are 'base', 'one' and 'sub'. +|`LDAP_GROUP_SUBSTRING_FILTER_TYPE` + +`GROUP_LDAP_GROUP_SUBSTRING_FILTER_TYPE` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[initial] +a| [subs=-attributes] +Type of substring search filter to use for substring searches for groups. Possible values: 'initial' for doing prefix only searches, 'final' for doing suffix only searches or 'any' for doing full substring searches + |`LDAP_USER_FILTER` + `GROUPS_LDAP_USER_FILTER` a| [subs=-attributes] diff --git a/services/_includes/adoc/users_configvars.adoc b/services/_includes/adoc/users_configvars.adoc index 032db3d5e52..4d2f25ff5d1 100644 --- a/services/_includes/adoc/users_configvars.adoc +++ b/services/_includes/adoc/users_configvars.adoc @@ -176,7 +176,7 @@ a| [subs=-attributes] a| [subs=-attributes] pass:[~/.ocis/idm/ldap.crt] a| [subs=-attributes] -Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty the system default CA bundle will be used. +Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used. |`LDAP_INSECURE` + `USERS_LDAP_INSECURE` @@ -241,6 +241,15 @@ pass:[sub] a| [subs=-attributes] LDAP search scope to use when looking up groups. Supported values are 'base', 'one' and 'sub'. +|`LDAP_USER_SUBSTRING_FILTER_TYPE` + +`USERS_LDAP_USER_SUBSTRING_FILTER_TYPE` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[initial] +a| [subs=-attributes] +Type of substring search filter to use for substring searches for users. Possible values: 'initial' for doing prefix only searches, 'final' for doing suffix only searches or 'any' for doing full substring searches + |`LDAP_USER_FILTER` + `USERS_LDAP_USER_FILTER` a| [subs=-attributes] diff --git a/services/_includes/frontend-config-example.yaml b/services/_includes/frontend-config-example.yaml index 72f02e8b332..7d967e2d246 100644 --- a/services/_includes/frontend-config-example.yaml +++ b/services/_includes/frontend-config-example.yaml @@ -34,6 +34,7 @@ upload_max_chunk_size: 100000000 upload_http_method_override: "" default_upload_protocol: tus enable_resharing: true +search_min_length: 3 public_url: https://localhost:9200 app_handler: insecure: false diff --git a/services/_includes/frontend_configvars.md b/services/_includes/frontend_configvars.md index ec49d279eb5..f55a8a46868 100644 --- a/services/_includes/frontend_configvars.md +++ b/services/_includes/frontend_configvars.md @@ -29,6 +29,7 @@ | FRONTEND_UPLOAD_HTTP_METHOD_OVERRIDE | string | | Advise TUS to replace PATCH requests by POST requests.| | FRONTEND_DEFAULT_UPLOAD_PROTOCOL | string | tus | The default upload protocol to use in the frontend (e.g. tus).| | FRONTEND_ENABLE_RESHARING | bool | true | Enables the support for resharing in the frontend.| +| FRONTEND_SEARCH_MIN_LENGTH | int | 3 | Minimum number of characters to enter before starting a search for Sharees.| | OCIS_URL
FRONTEND_PUBLIC_URL | string | https://localhost:9200 | The public facing URL of the oCIS frontend.| | OCIS_INSECURE
FRONTEND_APP_HANDLER_INSECURE | bool | false | Allow insecure connections to the frontend.| | FRONTEND_ARCHIVER_MAX_NUM_FILES | int64 | 10000 | Max number of files that can be packed into an archive.| diff --git a/services/_includes/groups-config-example.yaml b/services/_includes/groups-config-example.yaml index fe4e97294dd..cd9273f8360 100644 --- a/services/_includes/groups-config-example.yaml +++ b/services/_includes/groups-config-example.yaml @@ -36,6 +36,7 @@ drivers: group_base_dn: ou=groups,o=libregraph-idm user_scope: sub group_scope: sub + group_substring_filter_type: initial user_filter: "" group_filter: "" user_object_class: inetOrgPerson diff --git a/services/_includes/groups_configvars.md b/services/_includes/groups_configvars.md index ec8f12a18ec..55c9bf336dd 100644 --- a/services/_includes/groups_configvars.md +++ b/services/_includes/groups_configvars.md @@ -20,7 +20,7 @@ | REVA_GATEWAY | string | 127.0.0.1:9142 | The CS3 gateway endpoint.| | GROUPS_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| | LDAP_URI
GROUPS_LDAP_URI | string | ldaps://localhost:9235 | URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'| -| LDAP_CACERT
GROUPS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty the system default CA bundle will be used.| +| LDAP_CACERT
GROUPS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used.| | LDAP_INSECURE
GROUPS_LDAP_INSECURE | bool | false | Disable TLS certificate validation for the LDAP connections. Do not set this in production environments.| | LDAP_BIND_DN
GROUPS_LDAP_BIND_DN | string | uid=reva,ou=sysusers,o=libregraph-idm | LDAP DN to use for simple bind authentication with the target LDAP server.| | LDAP_BIND_PASSWORD
GROUPS_LDAP_BIND_PASSWORD | string | | Password to use for authenticating the 'bind_dn'.| @@ -28,6 +28,7 @@ | LDAP_GROUP_BASE_DN
GROUPS_LDAP_GROUP_BASE_DN | string | ou=groups,o=libregraph-idm | Search base DN for looking up LDAP groups.| | LDAP_USER_SCOPE
GROUPS_LDAP_USER_SCOPE | string | sub | LDAP search scope to use when looking up users. Supported scopes are 'base', 'one' and 'sub'.| | LDAP_GROUP_SCOPE
GROUPS_LDAP_GROUP_SCOPE | string | sub | LDAP search scope to use when looking up groups. Supported scopes are 'base', 'one' and 'sub'.| +| LDAP_GROUP_SUBSTRING_FILTER_TYPE
GROUP_LDAP_GROUP_SUBSTRING_FILTER_TYPE | string | initial | Type of substring search filter to use for substring searches for groups. Possible values: 'initial' for doing prefix only searches, 'final' for doing suffix only searches or 'any' for doing full substring searches| | LDAP_USER_FILTER
GROUPS_LDAP_USER_FILTER | string | | LDAP filter to add to the default filters for user search like '(objectclass=ownCloud)'.| | LDAP_GROUP_FILTER
GROUPS_LDAP_GROUP_FILTER | string | | LDAP filter to add to the default filters for group searches.| | LDAP_USER_OBJECTCLASS
GROUPS_LDAP_USER_OBJECTCLASS | string | inetOrgPerson | The object class to use for users in the default user search filter ('inetOrgPerson').| diff --git a/services/_includes/users-config-example.yaml b/services/_includes/users-config-example.yaml index 857fd525723..86eb0e41fa8 100644 --- a/services/_includes/users-config-example.yaml +++ b/services/_includes/users-config-example.yaml @@ -36,6 +36,7 @@ drivers: group_base_dn: ou=groups,o=libregraph-idm user_scope: sub group_scope: sub + user_substring_filter_type: initial user_filter: "" group_filter: "" user_object_class: inetOrgPerson diff --git a/services/_includes/users_configvars.md b/services/_includes/users_configvars.md index 46209eccffb..0255c5f74b8 100644 --- a/services/_includes/users_configvars.md +++ b/services/_includes/users_configvars.md @@ -21,7 +21,7 @@ | USERS_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| | USERS_DRIVER | string | ldap | The user driver which should be used by the users service. Supported values are 'ldap', 'owncloudsql', 'json' and 'rest'.| | LDAP_URI
USERS_LDAP_URI | string | ldaps://localhost:9235 | URI of the LDAP Server to connect to. Supported URI schemes are 'ldaps://' and 'ldap://'| -| LDAP_CACERT
USERS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty the system default CA bundle will be used.| +| LDAP_CACERT
USERS_LDAP_CACERT | string | ~/.ocis/idm/ldap.crt | Path to a CA certificate file for validating the LDAP server's TLS certificate. If empty, the system default CA bundle will be used.| | LDAP_INSECURE
USERS_LDAP_INSECURE | bool | false | Disable TLS certificate validation for the LDAP connections. Do not set this in production environments.| | LDAP_BIND_DN
USERS_LDAP_BIND_DN | string | uid=reva,ou=sysusers,o=libregraph-idm | LDAP DN to use for simple bind authentication with the target LDAP server.| | LDAP_BIND_PASSWORD
USERS_LDAP_BIND_PASSWORD | string | | Password to use for authenticating the 'bind_dn'.| @@ -29,6 +29,7 @@ | LDAP_GROUP_BASE_DN
USERS_LDAP_GROUP_BASE_DN | string | ou=groups,o=libregraph-idm | Search base DN for looking up LDAP groups.| | LDAP_USER_SCOPE
USERS_LDAP_USER_SCOPE | string | sub | LDAP search scope to use when looking up users. Supported values are 'base', 'one' and 'sub'.| | LDAP_GROUP_SCOPE
USERS_LDAP_GROUP_SCOPE | string | sub | LDAP search scope to use when looking up groups. Supported values are 'base', 'one' and 'sub'.| +| LDAP_USER_SUBSTRING_FILTER_TYPE
USERS_LDAP_USER_SUBSTRING_FILTER_TYPE | string | initial | Type of substring search filter to use for substring searches for users. Possible values: 'initial' for doing prefix only searches, 'final' for doing suffix only searches or 'any' for doing full substring searches| | LDAP_USER_FILTER
USERS_LDAP_USER_FILTER | string | | LDAP filter to add to the default filters for user search like '(objectclass=ownCloud)'.| | LDAP_GROUP_FILTER
USERS_LDAP_GROUP_FILTER | string | | LDAP filter to add to the default filters for group searches.| | LDAP_USER_OBJECTCLASS
USERS_LDAP_USER_OBJECTCLASS | string | inetOrgPerson | The object class to use for users in the default user search filter like 'inetOrgPerson'.|