mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-28 14:56:36 +00:00
Fix auth function setup
This commit is contained in:
@@ -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 /
|
||||||
|
|||||||
Reference in New Issue
Block a user