Benedikt Kulmann
16a74c8a7e
Docblocks and refactoring
2020-10-23 16:15:52 +02:00
Benedikt Kulmann
6eaa04ee9e
Rebuild groups index
2020-10-23 16:09:00 +02:00
Benedikt Kulmann
8ac50f9839
Fix loading all accounts
2020-10-23 16:03:03 +02:00
Benedikt Kulmann
03a0c3d5e5
Rebuild index for accounts
2020-10-23 14:45:37 +02:00
A.Unger
f89c05cf61
raw implementation of index Delete
2020-10-23 14:11:20 +02:00
Benedikt Kulmann
a518a51f72
Extract creating indices on the indexer into a function
2020-10-23 12:55:01 +02:00
A.Unger
17b7c82425
basic wiring
2020-10-23 12:23:33 +02:00
A.Unger
50b0e6568b
Merge branch 'master' into rebuild-index
2020-10-23 12:19:38 +02:00
Benedikt Kulmann
4206071af6
First part of index reset
2020-10-23 11:54:07 +02:00
Benedikt Kulmann
d2e011b744
Disable deprecation warning for proto package
2020-10-23 10:30:21 +02:00
Benedikt Kulmann
be9f6e574b
Use proto.Merge
2020-10-23 10:19:17 +02:00
A.Unger
b232e9f46f
make vet happy, use protobuf generated merger
2020-10-22 13:39:54 +02:00
A.Unger
cbf13d0972
fix build
2020-10-21 12:16:25 +02:00
A.Unger
a08d94e8b3
fix staticcheck + linter
2020-10-21 12:12:23 +02:00
Benedikt Kulmann
dee9959e69
Make indexes configurable for being case insensitive
2020-10-19 17:53:53 +02:00
Benedikt Kulmann
cb5a78f0dd
Allow email on auth queries
2020-10-19 12:29:10 +02:00
A.Unger
d902f50b42
fix vet
2020-10-19 11:36:19 +02:00
A.Unger
b9695c01c1
fix static check
2020-10-19 11:28:47 +02:00
A.Unger
febd6fa65b
fix query order from more explicit to less
2020-10-19 11:25:22 +02:00
Benedikt Kulmann
cb7e98ecbc
Add another account search regex
2020-10-19 10:48:45 +02:00
Benedikt Kulmann
c340816953
Revert "WIP regexes for account search"
...
This reverts commit ad33ee7716 .
2020-10-19 10:35:05 +02:00
Benedikt Kulmann
ad33ee7716
WIP regexes for account search
2020-10-19 09:42:47 +02:00
Benedikt Kulmann
a6c2e808ae
Refactor auth request within ListAccounts
...
The auth request is a special case of ListAccounts with query. It must
only have one account as a result and doesn't need to go through the
full process of query matching. Refactored the function to take some
shortcuts for auth requests.
2020-10-17 13:08:17 +02:00
Benedikt Kulmann
9dbf77fad1
Fix more index tests
2020-10-16 09:57:08 +02:00
Benedikt Kulmann
16a190857f
Fix staticchecks
2020-10-15 23:59:53 +02:00
Benedikt Kulmann
79a4b81147
Get rid of checkError test function and fix account update validation
2020-10-15 22:58:07 +02:00
Benedikt Kulmann
5f6b36c1db
prevent duplicate accounts and validate account update
2020-10-15 22:34:00 +02:00
Ilja Neumann
ca1fa005a6
Return BadRequestError instead of InternalServerError
...
Apparently InternalServer errors are not returned back by the handler
2020-10-15 18:00:08 +02:00
A.Unger
da70231338
whatever dude
2020-10-15 17:08:16 +02:00
A.Unger
019b1070df
assign users to default users group (gid=30000) on creation
2020-10-15 15:43:10 +02:00
A.Unger
d5c5e519ba
fix TestCreateExistingUser test
2020-10-15 15:43:10 +02:00
A.Unger
97da31627f
refactor test suite
2020-10-15 15:43:10 +02:00
Benedikt Kulmann
441e7156f4
Add note regarding rollback
2020-10-15 15:43:10 +02:00
Benedikt Kulmann
f6d3425de8
Create default group for new accounts
2020-10-15 15:43:10 +02:00
Benedikt Kulmann
f3f9c3d9fb
Add rollback for CreateGroup when indexing fails
2020-10-15 15:43:10 +02:00
Benedikt Kulmann
37dc6c7db9
Rollback account creation on error
2020-10-15 15:43:10 +02:00
A.Unger
c460908e44
add lower and upper bound to config
2020-10-15 15:43:08 +02:00
Benedikt Kulmann
d578a2603a
Fix service user
2020-10-15 15:36:06 +02:00
Benedikt Kulmann
629561833a
Write uid and gid from autoincrement index into accounts/groups
2020-10-15 15:36:04 +02:00
Ilja Neumann
3aa10fa8f0
Fix lint
2020-10-14 18:03:52 +02:00
Ilja Neumann
f651303866
Fix id or samaccount query
2020-10-14 18:03:52 +02:00
Ilja Neumann
199ad32e04
Temporarily disable groups query
2020-10-14 18:03:52 +02:00
Ilja Neumann
98ed583b89
Add or query to query regexes
2020-10-14 18:03:52 +02:00
Ilja Neumann
8bcf5d4096
Add startswith(id,...) query for group
2020-10-14 18:03:52 +02:00
Ilja Neumann
fd6d80435b
Fix ListGroups
2020-10-14 18:03:52 +02:00
Ilja Neumann
05b2acf4a9
staticcheck
2020-10-14 18:03:52 +02:00
Ilja Neumann
c4df138ac7
Fix groups data-folder
2020-10-14 18:03:52 +02:00
Ilja Neumann
aada7ac65d
Delete group by entity instead by id
2020-10-14 18:03:52 +02:00
Ilja Neumann
e2f54df24d
Pass account instead of id to index delete
2020-10-14 18:03:52 +02:00
Ilja Neumann
f11ae963b1
Fix index types
2020-10-14 18:03:52 +02:00