David Christofas
1cd8cbd890
Merge pull request #3001 from owncloud/cleanup-drivesgo
...
refactor ListStorageSpaces filter handling
2022-01-20 18:33:48 +01:00
David Christofas
d70fe6ac13
prevent purging of enabled spaces
2022-01-20 17:26:10 +01:00
David Christofas
b96ac54224
refactor ListStorageSpaces filter handling
2022-01-20 17:08:57 +01:00
David Christofas
0bfc1f08b7
implement graph endpoint to delete spaces
2022-01-20 11:34:15 +01:00
jkoberg
33cdaab6dc
Merge branch 'master' into FixFlakySpacesYamlTest
2022-01-20 10:02:55 +01:00
jkoberg
a0aa8960ff
fix flaky yaml tests
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-01-19 17:24:46 +01:00
Michael Barz
3375207a0c
make code more efficient
2022-01-19 13:39:17 +01:00
Michael Barz
4d4dca512b
merge master
2022-01-19 13:03:54 +01:00
Michael Barz
6b8a9f9127
create filter directly, improve logging
2022-01-19 12:15:42 +01:00
Michael Barz
5b9f31e870
Apply suggestions from code review
...
Co-authored-by: Alex Unger <6905948+refs@users.noreply.github.com >
2022-01-19 12:15:42 +01:00
Michael Barz
85fd0158dd
add GetSingleDrive handler
2022-01-19 12:15:39 +01:00
Jörn Friedrich Dreyer
3f5846b5a3
Merge pull request #2962 from owncloud/graph-reads-space-yaml
...
Read additional graph drive prop from space.yaml
2022-01-19 11:34:57 +01:00
Jörn Friedrich Dreyer
0dfb86e80e
address feedback
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-19 08:57:06 +00:00
Jörn Friedrich Dreyer
6e6c2a127b
inline variable
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-19 08:40:56 +00:00
Jörn Friedrich Dreyer
e9ccf09c20
test reading from space.yaml
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-18 15:29:09 +00:00
Jörn Friedrich Dreyer
9b4fae1704
add mockery for minimal graph testing
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-18 12:42:49 +00:00
Ralf Haferkamp
d57d40a0c1
graph: Fix LDAP retry handling
...
The reconnect package was missing the retry loop for LDAP Write
Operations (add, delete, mod, modrdn)
Fixes : #2974
2022-01-18 11:17:57 +01:00
Jörn Friedrich Dreyer
94d6daa222
check error when setting cache with ttl
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-17 15:39:15 +00:00
Jörn Friedrich Dreyer
75bfd71355
Merge branch 'master' into graph-reads-space-yaml
2022-01-17 15:35:47 +00:00
Jörn Friedrich Dreyer
4a48708bf0
Merge pull request #2947 from rhafer/ldap-as-user-backend
...
Add support for user creation and deletion to GraphAPI (LDAP backend)
2022-01-17 15:54:10 +01:00
Michael Barz
1db13d8a39
add tests
2022-01-16 11:57:57 +01:00
Michael Barz
f7bf42bce0
fix case for unsupported operators
2022-01-16 11:57:57 +01:00
Michael Barz
bca954cae7
more detailed logging
2022-01-16 11:57:43 +01:00
Michael Barz
624a2a956c
add filter by id and driveType
2022-01-16 11:57:03 +01:00
Jörn Friedrich Dreyer
942bd0b98d
add initial ok & not found caching, config, logs
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 15:50:57 +00:00
Jörn Friedrich Dreyer
5b97a12acd
refactor headers into a dedicated package
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 14:14:35 +00:00
Jörn Friedrich Dreyer
6b935e47d0
return WebDavURL to special resources
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-14 13:54:00 +00:00
Jörn Friedrich Dreyer
5865607241
Read additional graph drive prop from space.yaml
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-01-13 16:18:09 +00:00
Ralf Haferkamp
cb7f9f7922
Introduce write_enabled flag for graph user backend
...
Defaults to `false` (for now). So the /graph/users endpoints are
read-only by default, which should be the default configured against
and existing external LDAP server.
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
53efa9ca14
Switch to generating our own UUIDs for users
...
By default the GraphAPI will generate the UUID itself now instead of
relying on the LDAP server to generate a valid entryUUID attribute. This
can been be switched off via the new `use_server_uuid` toggle in the
LDAP config.
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
840c9a7ddd
Implement UpdateUser support for the GraphAPI backend
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
775a556c23
graph: Add missing methods to Service Interface
2022-01-13 16:30:09 +01:00
Ralf Haferkamp
4915195d9c
Implement DeleteUser support for the Graph LDAP backend
2022-01-13 16:30:09 +01:00
Alex Unger
5d6e361cff
Implement CreateUser support for the Graph LDAP backend
...
This adds basic support for creating users via the GraphAPI
LDAP backend. This currently just maintains the bare minimum
Attributes for the inetOrgPerson objectclass.
Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com >
2022-01-13 16:30:09 +01:00
Willy Kloucek
6927cfd0dc
remove unused templates
2022-01-13 11:32:32 +01:00
Willy Kloucek
6ef6d1117c
fix condition for nil pointer in common config
2022-01-13 08:13:14 +01:00
Willy Kloucek
a3df3f9119
remove default tracing config from indiviual packages
2022-01-13 08:13:14 +01:00
Willy Kloucek
182712b223
fix tracing config
2022-01-13 08:13:14 +01:00
Willy Kloucek
6de48a8cd4
switch to http.StatusOK instead of 200
2022-01-07 19:19:19 +00:00
Willy Kloucek
1e38150276
improve command description
2022-01-07 19:19:16 +00:00
Willy Kloucek
1dc63cbce1
ensure, that each config is only parsed once
2022-01-07 16:12:01 +00:00
Willy Kloucek
adc7b3b3d2
remove version from service config
2022-01-07 16:12:01 +00:00
Willy Kloucek
b9f2b6b91e
move config parsing in separate package for each service
2022-01-07 16:12:01 +00:00
Willy Kloucek
23e7a8ffab
simplify commands and version handling
2022-01-07 16:11:50 +00:00
Willy Kloucek
5b70d46213
remove build flags, add debug server to accounts
2022-01-07 16:08:14 +00:00
Willy Kloucek
6a03c4acba
improve envdecode error handling
2022-01-07 16:08:14 +00:00
Willy Kloucek
a839288212
remove supervised flag from configs
2022-01-07 16:08:14 +00:00
Willy Kloucek
5034e399bb
maintain envdecode inside ocis-pkg
2022-01-07 16:08:14 +00:00
Willy Kloucek
ae565846c2
gix graph url
2022-01-07 16:07:01 +00:00
Willy Kloucek
e006ad6e40
directly pass env to config
2022-01-07 16:07:01 +00:00