Commit Graph

85 Commits

Author SHA1 Message Date
Ilja Neumann
73c8b11f3d Use dependency-injected grpc client 2020-08-26 20:19:14 +02:00
Ilja Neumann
f552072608 Assign user role to newly created accounts.
https://github.com/owncloud/product/issues/173
2020-08-26 20:19:14 +02:00
Benedikt Kulmann
e695ccc440 Make linter happy 2020-08-19 17:33:18 +02:00
Benedikt Kulmann
2ae2cf40c9 Add permissions for language to default roles of settings service 2020-08-19 17:33:17 +02:00
Benedikt Kulmann
f5f356f001 Rename variable to comply with golang var naming rules 2020-08-19 11:54:57 +02:00
Benedikt Kulmann
45b486c68e Update to new data model of ocis-settings 2020-08-19 11:53:56 +02:00
A.Unger
7c29818921 undo group changes 2020-08-07 14:27:38 +02:00
A.Unger
a4e8a8f09e typo 2020-08-07 14:15:08 +02:00
A.Unger
510007d402 update groups 2020-08-07 14:13:16 +02:00
A.Unger
9a9745837f atomic requests 2020-08-07 14:10:18 +02:00
Jörn Friedrich Dreyer
20a577dc15 fix index mapping
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-31 11:25:57 +02:00
A.Unger
c432f296eb set lock on read 2020-07-30 10:10:52 +02:00
A.Unger
4074565a6b use global mutex 2020-07-30 10:06:29 +02:00
Jörn Friedrich Dreyer
52c2781548 Add write mutexes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-30 08:49:03 +02:00
A.Unger
b6ab351c0b make go vet happy 2020-07-28 16:58:17 +02:00
A.Unger
c717105a49 override out with acc 2020-07-28 16:28:17 +02:00
Jörn Friedrich Dreyer
694fe677aa Add cli-subbcomands to mange users
ocis-accounts [list|delete|update|add|inspect]

Implements UpdateMask for the update request. Changed server-handler accordingly.
The commands use service-discovery to discover the backend.
2020-07-27 18:43:59 +02:00
Jörn Friedrich Dreyer
65e3df2b1e tighten the screws
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-23 12:52:41 +02:00
Jörn Friedrich Dreyer
bf3581c914 fix password related segfaults
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-23 11:17:58 +02:00
Dipak Acharya
43effc0cba Fix the account and group id mismatch in delete group method 2020-07-16 10:32:36 +05:45
Benedikt Kulmann
00ea1f186a Refactor indexing of new entities into own function
This also fixes that on Create and Update calls the index was not
updated properly.
2020-07-15 08:25:27 +02:00
Jörn Friedrich Dreyer
b4f1a908a9 index with type
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
9d63ca148a use on_premises_sam_account_name instead of preferred_name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
31f9cca78b satisfy staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
379becff5b delete relationships
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
c8451c0436 generate default groups
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
ebaf39f0af address review
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
Jörn Friedrich Dreyer
0d4e6a4a16 initial group api implementation
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-07-10 15:51:13 +02:00
David Christofas
db7afb8872 change grpc api errors
Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-07-08 11:37:17 +02:00
Benedikt Kulmann
e38f0a491c Work with pointers instead of copying sync.Mutex 2020-07-01 15:42:30 +02:00
Benedikt Kulmann
b58ddeeb62 Add stubs for three missing service interface functions 2020-07-01 11:05:32 +02:00
David Christofas
c01f4d1ed9 enable accounts on creation
Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-06-24 11:40:25 +02:00
David Christofas
630e2120e5 pass around the correct logger to the services
Also did some minor refactoring to make the code similar to the other
services.

Implements one task of owncloud/product#86

Signed-off-by: David Christofas <dchristofas@owncloud.com>
2020-06-23 17:29:28 +02:00
Jörn Friedrich Dreyer
474cf53e3f fix typo 2020-06-22 10:54:03 +02:00
Jörn Friedrich Dreyer
ebee2c5443 create default accounts when dir does not exist
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-19 17:14:41 +02:00
Jörn Friedrich Dreyer
0cdeeb7f03 allow handler to return an error
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-18 14:08:41 +02:00
Jörn Friedrich Dreyer
a828b8242b handle terms as keywords, remove quotes
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 17:02:48 +02:00
Jörn Friedrich Dreyer
0f938a8b10 drop redundant id for create requests
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 15:15:18 +02:00
Jörn Friedrich Dreyer
f3a1d26d2d fix staticcheck
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-17 15:04:03 +02:00
Jörn Friedrich Dreyer
a27ca2fe5c implement create and delete api
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-16 18:57:50 +02:00
Jörn Friedrich Dreyer
c2668daae8 persist accounts using json, index using bleve
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:04:35 +02:00
Jörn Friedrich Dreyer
e78c4395de Use reasonable set of properties
ocis-graph will be responsible for building graph api resources like
user and groups as well as their relationships. ocis accounts deals
users and groups with all properties necessary to provision user
accounts.

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:04:23 +02:00
Jörn Friedrich Dreyer
5ae2ef9b80 add graph api properties
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:03:12 +02:00
Jörn Friedrich Dreyer
810d2b6b34 parse odata query and build ldap filter
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:55 +02:00
Jörn Friedrich Dreyer
2fd05e2b6f rewrite API, talk to ldap
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:44 +02:00
Jörn Friedrich Dreyer
16c5d13e10 Update accounts API
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-06-15 16:02:28 +02:00
Benedikt Kulmann
b63a7cd241 Remove timezone setting from profile settings bundle 2020-06-12 16:47:39 +02:00
Benedikt Kulmann
868e95e2bf Remove notifications bundle and remove settings from profile bundle 2020-05-22 09:52:20 +02:00
Benedikt Kulmann
93325178f8 Move settings bundles into own file 2020-05-19 10:38:53 +02:00
Benedikt Kulmann
3714125213 Add more languages to language options 2020-05-15 13:52:32 +02:00