From a0b63f50bf1574feb9faab4b53f77eecbe07dad9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 17 Jul 2021 19:36:15 +0200 Subject: [PATCH] outposts: fix import for self-signed cert on ldap Signed-off-by: Jens Langhammer --- azure-pipelines-outpost.yml | 2 ++ internal/outpost/ldap/ldap.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines-outpost.yml b/azure-pipelines-outpost.yml index aa0856161..81dd806cf 100644 --- a/azure-pipelines-outpost.yml +++ b/azure-pipelines-outpost.yml @@ -47,6 +47,8 @@ stages: - task: CmdLine@2 inputs: script: | + mkdir -p web/dist + mkdir -p website/help docker run \ --rm \ -v $(pwd):/app \ diff --git a/internal/outpost/ldap/ldap.go b/internal/outpost/ldap/ldap.go index e291952f0..79f4fa2f2 100644 --- a/internal/outpost/ldap/ldap.go +++ b/internal/outpost/ldap/ldap.go @@ -7,6 +7,7 @@ import ( "github.com/go-openapi/strfmt" log "github.com/sirupsen/logrus" "goauthentik.io/api" + "goauthentik.io/internal/crypto" "goauthentik.io/internal/outpost/ak" "github.com/nmcclain/ldap" @@ -70,7 +71,7 @@ func NewServer(ac *ak.APIController) *LDAPServer { ac: ac, providers: []*ProviderInstance{}, } - defaultCert, err := ak.GenerateSelfSignedCert() + defaultCert, err := crypto.GenerateSelfSignedCert() if err != nil { log.Warning(err) }