Skip to content

Commit 5eefeeb

Browse files
committed
prepare 1.4.0
1 parent e97fff4 commit 5eefeeb

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ Current glauth experimental feature on ``customattributes`` is lost due to the n
3838
Current glauth experimental feature on ``customattributes`` is lost due to the need of a patched toml library.
3939

4040

41-
## Some overkill features for a self hosted infrastrucuture
41+
## Some overkill features for a self hosted infrastructure
4242

4343
- only register bcrypt passwords
4444
- daily log rotates
4545
- i18n support
4646
- responsive UI
4747
- TOTP management
48+
- Bcrypt tokens to bypass TOTP
4849
- delayed after 4 failed login
4950
- rate requests limiter against brute force ttempts
5051
- CSRF
@@ -214,11 +215,11 @@ $ go test -coverprofile=coverage.out ./...
214215
$ go tool cover -func=coverage.out
215216
...
216217
glauth-ui-light/routes/routes.go:79: initServer 85.4%
217-
glauth-ui-light/routes/routes.go:182: SetRoutes 93.8%
218+
glauth-ui-light/routes/routes.go:182: SetRoutes 93.9%
218219
glauth-ui-light/routes/routes.go:230: contains 100.0%
219220
glauth-ui-light/routes/routes.go:239: setCacheHeaders 100.0%
220221
glauth-ui-light/routes/routes.go:258: Auth 100.0%
221-
total: (statements) 95.2%
222+
total: (statements) 95.1%
222223
223224
# html browser output
224225
$ go tool cover -html=coverage.out
@@ -265,6 +266,7 @@ main.go
265266
|-global.go // global var, render
266267
|-login.go
267268
|-users.go
269+
|-userProfile.go
268270
|-groups.go
269271
|- routes
270272
|-routes.go // load template, i18n. Set routes, auth middleware
@@ -314,6 +316,11 @@ https://vincent.bernat.ch/en/blog/2019-pragmatic-debian-packaging
314316

315317
## Changelog
316318

319+
v1.4.0:
320+
* Add app passwords (tokens) to bypass ldap OTP (bcrypt only)
321+
* fix denied changes on Lock
322+
323+
317324
v1.2.0:
318325
* Add OTP management
319326
* tweak UI
@@ -328,10 +335,6 @@ v1.0.0:
328335
* initial release
329336

330337

331-
## TODO
332-
333-
* Add app passwords to bypass ldap OTP
334-
335338

336339
## Licence
337340

img/3-otp.png

18.6 KB
Loading

script/diff-cfg.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
#!/bin/bash
22

3-
files=(/etc/glauth/*.cfg*)
4-
i=0
3+
current="/etc/glauth/sample-simple.cfg"
4+
5+
files=(/etc/glauth/sample-simple.cfg*)
6+
57
for f in "${files[@]}"; do
6-
i=$(( i + 1 ))
7-
n=${files[i]}
8-
if [ "$n" ]; then
98
echo "======"
10-
echo "= diff $f $n"
11-
diff $f $n
12-
fi
9+
echo "= diff $current $f"
10+
new=`grep -xvFf $f $current`
11+
old=`grep -xvFf $current $f`
12+
if [ "$new" ]; then
13+
echo "New:"
14+
echo "$new"
15+
fi
16+
if [ "$old" ]; then
17+
echo "Old:"
18+
echo "$old"
19+
fi
1320
done

0 commit comments

Comments
 (0)