greatroar
b7ba401c0b
cmd/strelaypoolsrv: Fix race condition in caching ( #6496 )
...
Successful LRU cache lookups modify the cache's recency list, so
RWMutex.RLock isn't enough protection.
Secondarily, multiple concurrent lookups with the same key should not
create separate rate limiters, so release the lock only when presence
of the key in the cache has been ascertained.
Co-authored-by: greatroar <@>
2020-04-04 20:20:25 +01:00
Jakob Borg
7505ea79a0
lib/osutil: Don't remove before rename on Windows (ref #6493 ) ( #6495 )
...
This was needed in ancient times but not currently.
2020-04-04 14:17:16 +02:00
Kevin Bushiri
e1324a0e23
cmd/strelaypoolsrv: Use OpenStreetMap ( fixes #6150 ) ( #6459 )
2020-04-04 13:48:20 +02:00
Jakob Borg
b7b9476e5a
cmd/strelaysrv: Harmonize and improve log output (ref #6492 )
2020-04-04 13:31:42 +02:00
Jakob Borg
d1db7e3dd2
cmd/strelaypoolsrv: Configurable request processors & queue len
2020-04-04 13:31:42 +02:00
Jakob Borg
362da59396
cmd/strelaypoolsrv: Expose check error to client, fix incorrect response code handling
2020-04-04 13:31:42 +02:00
Jakob Borg
66262392c3
cmd/strelaypoolsrv: Correctly account status codes, tweak status codes
2020-04-04 13:31:42 +02:00
Jakob Borg
48f9d323fa
lib/api: Add LDAP search filters ( fixes #5376 ) ( #6488 )
...
This adds the functionality to run a user search with a filter for LDAP
authentication. The search is done after successful bind, as the binding
user. The typical use case is to limit authentication to users who are
member of a group or under a certain OU. For example, to only match
users in the "Syncthing" group in otherwise default Active Directory
set up for example.com:
<searchBaseDN>CN=Users,DC=example,DC=com</searchBaseDN>
<searchFilter>(&(sAMAccountName=%s)(memberOf=CN=Syncthing,CN=Users,DC=example,DC=com))</searchFilter>
The search filter is an "and" of two criteria (with the ampersand being
XML quoted),
- "(sAMAccountName=%s)" matches the user logging in
- "(memberOf=CN=Syncthing,CN=Users,DC=example,DC=com)" matches members
of the group in question.
Authentication will only proceed if the search filter matches precisely
one user.
2020-04-04 11:33:43 +02:00
Jakob Borg
f18fc40436
Harmonize license with Syncthing proper
2020-04-03 22:28:36 +02:00
Jesse Lucas
f509c65509
increase chart item padding
2020-04-03 10:25:19 -04:00
Jesse Lucas
bf062db83f
create chart item state to toggle filter selection
2020-04-03 09:20:27 -05:00
Jesse Lucas
9907523321
switch filter to Subject from BehaviorSubject
2020-04-03 09:20:27 -05:00
Jesse Lucas
915faabe25
Filter lists when donut chart items are clicked
2020-04-03 09:20:27 -05:00
Jesse Lucas
a9b6801b22
Store last filtered value between toggling of lists
2020-04-03 09:20:27 -05:00
Jesse Lucas
d76f1fe356
Style chart item
2020-04-03 09:20:27 -05:00
Jesse Lucas
3bdceb1d6b
add filter service and enable chart states to filter lists
2020-04-03 09:20:27 -05:00
Simon Frei
f69c0b550c
gui: Refactor out-of-sync modal ( #6452 )
2020-04-02 16:18:41 +02:00
Simon Frei
32245435e2
lib/model: Handle deleted items on RO for remote removes ( fixes #6432 ) ( #6464 )
2020-04-02 16:14:25 +02:00
Jakob Borg
2658369051
gui: Expose LDAP config in advanced config editor ( #6489 )
...
One tiny step friendlier than vi on config.xml
2020-04-02 12:07:17 +02:00
Simon Mwepu
d50adb225b
gui: Avoid validation error on closing folder editor ( fixes #3808 ) ( #6478 )
2020-04-02 08:20:03 +02:00
Jakob Borg
7da898f2d6
go.mod: Use github.com/twmb/murmur3 for murmur3 ( #6486 )
...
Let's try this again shall we
2020-04-01 23:51:31 +02:00
Jakob Borg
0d919bd79c
Revert "go.mod: Use github.com/twmb/murmur3 for murmur3"
...
"I shall not commit to master without testing all architectures on the
builder" * 100 on the black board
2020-04-01 21:16:15 +02:00
Jakob Borg
f91e90a94f
go.mod: Use github.com/twmb/murmur3 for murmur3
...
It seems, like, maintained and stuff.
2020-04-01 21:04:43 +02:00
Jakob Borg
7ce20f197b
gui, man, authors: Update docs, translations, and contributors
2020-04-01 07:45:33 +02:00
Jesse Lucas
cce8b60515
adjust filter style and add filter to device list
2020-03-31 20:40:36 -04:00
Jesse Lucas
06eacb87d8
Add additional columns, styling and data to lists
2020-03-31 20:40:36 -04:00
Jesse Lucas
865f1f2ea6
reduce mock data delay for testing
2020-03-31 20:40:36 -04:00
Jesse Lucas
f59a26cb80
relative path apiURL
2020-03-31 11:41:59 -04:00
Jesse Lucas
d384ac52a1
use relative path for base-href and meta.js
2020-03-31 11:41:59 -04:00
Jesse Lucas
42fa03aa4a
start of list filtering
2020-03-31 11:41:59 -04:00
Jesse Lucas
dae1f990a5
Combine types
2020-03-31 11:41:59 -04:00
Jakob Borg
33398b0b6b
Also mention STGUIASSETS
2020-03-31 16:14:09 +02:00
Jakob Borg
192e843989
README/LICENSE
2020-03-31 15:55:39 +02:00
greatroar
2f26a95973
lib/db, lib/model: Code simplifications ( #6484 )
...
NamespacedKV.prefixedKey is still small enough to be inlined.
2020-03-31 14:32:24 +02:00
Simon Frei
123941cf62
lib/fs: Basic with empty root shouldn't point at / ( #6483 )
2020-03-31 13:56:07 +02:00
Jakob Borg
9c67d57c28
lib/api: Update ldap package ( fixes #6479 ) ( #6481 )
2020-03-31 09:56:04 +02:00
mv1005
5b3466dc6e
lib/versioner: Extended tests of intervals ( #6462 )
2020-03-31 00:14:05 +02:00
Michael Rienstra
bca6854c03
lib/versioner: Fix "30 days" interval ( fixes #6410 ) ( #6461 )
2020-03-30 23:28:53 +02:00
greatroar
c930b2e9e2
lib/rand: Various fixes ( #6474 )
2020-03-30 23:26:28 +02:00
Jesse Lucas
8851f4571c
Add header and logo
2020-03-30 14:48:53 -04:00
Jesse Lucas
7fed8334b9
Use a smaller font when device or folder counts are above 4 digits
2020-03-30 14:48:53 -04:00
Jesse Lucas
6af2657d7e
Combine folder and device chart component into chart component
2020-03-30 14:48:53 -04:00
Jesse Lucas
933a57af7a
Add title to donut chart and media queries
2020-03-30 11:54:54 -04:00
Jesse Lucas
e5b85ff1a0
update angular cli, devkit and node
2020-03-30 11:54:24 -04:00
greatroar
d7a257b391
lib/util: Fix potential data race ( #6477 )
...
Co-authored-by: greatroar <@>
2020-03-30 14:10:08 +01:00
Alberto Donato
7709ac33a7
go.mod: Update jackpal/gateway dependency ( fixes #5288 ) ( #6469 )
2020-03-30 11:11:55 +02:00
Jesse Lucas
c382aa04e4
right justify chart items
2020-03-29 17:45:08 -04:00
Jesse Lucas
86141c1eef
enable chart canvas responsiveness
2020-03-29 16:51:12 -04:00
Jesse Lucas
d67c9b66d3
determine chart color based on state type
2020-03-29 16:51:12 -04:00
Jesse Lucas
6158b20a8c
Style donut chart and add total count
2020-03-29 16:51:12 -04:00