Add support for PAM authentication

This commit is contained in:
Bolke de Bruin
2022-08-23 22:31:41 +02:00
parent 6499f9b7a5
commit 390f6acbcd
5 changed files with 94 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
BINDIR := $(CURDIR)/bin
INSTALL_PATH ?= /usr/local/bin
BINNAME ?= rdpgw
BINNAME2 ?= auth
# Rebuild the binary if any of these files change
SRC := $(shell find . -type f -name '*.go' -print) go.mod go.sum
@@ -35,6 +36,7 @@ build: $(BINDIR)/$(BINNAME)
$(BINDIR)/$(BINNAME): $(SRC)
go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME) ./cmd/rdpgw
go build $(GOFLAGS) -trimpath -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o '$(BINDIR)'/$(BINNAME2) ./cmd/auth
# ------------------------------------------------------------------------------
# install
@@ -48,7 +50,7 @@ install: build
.PHONY: mod
mod:
go mod tidy -compat=1.17
go mod tidy -compat=1.19
# ------------------------------------------------------------------------------
# test