mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-16 05:33:47 +02:00
Fix auth function setup
This commit is contained in:
parent
c76de478e2
commit
19e9e3269d
2 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ func main() {
|
||||||
ReceiveBuf: conf.Server.ReceiveBuf,
|
ReceiveBuf: conf.Server.ReceiveBuf,
|
||||||
}
|
}
|
||||||
if conf.Caps.TokenAuth {
|
if conf.Caps.TokenAuth {
|
||||||
gwConfig.VerifyTunnelAuthFunc = security.VerifyPAAToken
|
gwConfig.VerifyTunnelCreate = security.VerifyPAAToken
|
||||||
gwConfig.VerifyServerFunc = security.CheckSession(security.CheckHost)
|
gwConfig.VerifyServerFunc = security.CheckSession(security.CheckHost)
|
||||||
} else {
|
} else {
|
||||||
gwConfig.VerifyServerFunc = security.CheckHost
|
gwConfig.VerifyServerFunc = security.CheckHost
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN git clone https://github.com/bolkedebruin/rdpgw.git /app && \
|
||||||
chmod u+s /opt/rdpgw/rdpgw-auth && \
|
chmod u+s /opt/rdpgw/rdpgw-auth && \
|
||||||
chown -R 1001 /opt/rdpgw
|
chown -R 1001 /opt/rdpgw
|
||||||
|
|
||||||
FROM busybox
|
FROM scratch
|
||||||
|
|
||||||
# make tempdir in case filestore is used
|
# make tempdir in case filestore is used
|
||||||
ADD tmp.tar /
|
ADD tmp.tar /
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue