Ralf Haferkamp
29f52515e1
graph: Fix Status code when updating the password
...
Up to now the /me/changePassword endpoint return a 500 Status when
issue a password change with the old password set to the wrong password.
This changes the code to return 400 (Bad Request) with an additional
message that the old password is wrong. This does not seem to weaken the
security of /me/changePassword (i.e. for allowing easier brute-force
attacks) as the endpoint is only available to already authenticated
users (and only for changing their own passwords)
See #4480
2022-09-05 15:57:46 +02:00
David Christofas
2051f0d1e1
Merge pull request #4447 from dragonchaser/delete_userspace
...
Delete userspace
2022-09-02 14:41:57 +02:00
David Christofas
e36cd4fa7f
add returns after rendering errors and simplify loop condition
2022-09-02 11:54:17 +02:00
Ralf Haferkamp
a26b16c41d
graph: Add $expand=memberOf support to /me
...
Fixes : #4283
2022-08-31 07:43:27 +02:00
Christian Richter
6a9d4efef6
add delete home space permission to admin role
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-08-30 11:09:05 +02:00
Christian Richter
05a60fd3a5
add home space deletion on user delete
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-08-26 15:00:55 +02:00
Willy Kloucek
9f2be9f4f9
remove Log prefix from configlog functions
2022-08-22 08:08:18 +02:00
Willy Kloucek
e58eaabdeb
move config parse error logging into function to ensure new lines and don't parse config for help
2022-08-18 15:27:28 +02:00
Willy Kloucek
60689c9c1a
improve unsupervised description
2022-08-18 10:59:35 +02:00
Willy Kloucek
6154466bbc
rename extensions to services (leftover occurences)
2022-08-17 15:36:52 +02:00
Michael Barz
bb9903515f
fix unrestricted quota
2022-08-08 19:25:22 +02:00
Michael Barz
df8e64665b
Merge pull request #4358 from owncloud/update-graph-api
...
add expand query for personal drive
2022-08-08 17:45:12 +02:00
Michael Barz
67b52bbd55
add expand query for personal drive
2022-08-08 16:43:59 +02:00
Michael Barz
bde5d69839
add storageID to the special items, improve code
2022-08-08 16:07:19 +02:00
Ralf Haferkamp
23b9437c08
Avoid panics when LDAP users miss required attributes
2022-08-05 16:46:45 +02:00
Ralf Haferkamp
c7359a849f
Avoid unneeded extra LDAP query per group
...
When expanding members of an LDAP group we did two group lookup per
Group. This can be avoided by expanding the members right from the
Group entry of the first query.
This also add some more unit test coverage, especially to the expand/select
group member test cases.
2022-08-05 16:46:45 +02:00
Ralf Haferkamp
8dde4e5b94
Add LDAP query details to debug log
2022-08-05 16:46:45 +02:00
Ralf Haferkamp
d867a8bc7c
Don't panic on missing group attributes
...
Closes #4274
2022-08-05 16:46:45 +02:00
Michael Barz
cb7d024d89
fix listing of drives and quota
2022-08-03 12:50:00 +02:00
Ralf Haferkamp
53751339a6
Use existing mockery mock instead of manual ldap.Client mock
2022-08-02 16:14:39 +02:00
Ralf Haferkamp
fa36a73c54
Add missing new methods to fulfill ldap.Client interface
2022-08-02 15:34:59 +02:00
Michael Barz
cce04f94ff
set virtual owner on non-personal spaces
2022-08-01 12:53:24 +02:00
Christian Richter
a030459c70
incorporate requested changes
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-07-29 14:39:19 +02:00
Christian Richter
1e21e23056
add drives output
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-07-29 14:39:19 +02:00
jkoberg
e56632681b
update description for event structs
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2022-07-21 10:27:43 +02:00
Willy Kloucek
7cbd1ad357
make graph service events optional
2022-07-15 07:51:30 +02:00
Ralf Haferkamp
946f3e8feb
Remove unused BindEnv code
...
We dropped this in favour of envdecode a while ago.
2022-07-14 16:34:25 +02:00
Michael Barz
2a113e9f7d
use spaceID
2022-07-11 10:44:09 +02:00
mmattel
246377b35b
Env variable text fixes
2022-07-07 19:53:27 +05:45
Willy Kloucek
45f25ee845
remove unused GRAPH_SPACES_INSECURE
2022-07-07 15:29:06 +02:00
David Christofas
ce6f85de61
Merge pull request #4117 from owncloud/ldap-escape-dn
...
escape DN attribute values
2022-07-07 09:25:23 +02:00
David Christofas
2707c2f4b4
escape DN attribute values
2022-07-06 15:16:43 +02:00
Ralf Haferkamp
4a09d8a948
Remove redundant setting of cli.HelpFlag
...
The help flag is configured automatically by default already. We don't
need to redo that for every single service.
This also addresses one of the finding of "go race" (#4088 )
2022-07-05 14:59:06 +02:00
Willy Kloucek
f02591b5c3
improve startup error logging
2022-07-05 10:12:46 +02:00
Ralf Haferkamp
8578f4e4b0
graph: Add descriptions for LDAP related config settings
2022-06-30 14:17:24 +02:00
Ralf Haferkamp
2cabf5bf5d
Use LDAP Modify Password ExtOp for updating passwords
...
By default the graph API will now use the LDAP Password Modify Extended
Operation for setting user passwords. By this we make sure that the
LDAP server can e.g. properly hash the password with and algorithm that
it supports.
This can be reverted to the old behaviour (using "normal" LDAP modify
requests) by setting GRAPH_LDAP_SERVER_USE_PASSWORD_MODIFY_EXOP=false
Fixes : #3778
2022-06-30 14:17:24 +02:00
Willy Kloucek
8a77ae8a5f
Merge pull request #3973 from wkloucek/config-doc-descriptions
...
add more config doc descriptions
2022-06-29 10:41:06 +02:00
Willy Kloucek
4d60867cd6
improve *_HTTP_ROOT descriptions
2022-06-29 09:44:12 +02:00
Ralf Haferkamp
a464a86128
graph: Fix LDAP filter formatting for GetUsers and GetGroups
...
Closes : #4040
2022-06-28 13:16:40 +02:00
Willy Kloucek
8f3b0c50cd
Merge branch 'master' into config-doc-descriptions
2022-06-28 13:03:19 +02:00
Christian Richter
f8f1320501
refactor extensions -> services
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-06-27 14:05:36 +02:00
Christian Richter
78064e6bab
rename folder extensions -> services
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2022-06-27 14:05:36 +02:00