diff --git a/cmd/ldap/server.go b/cmd/ldap/server.go index 86a547ddd..4d22ce6d2 100644 --- a/cmd/ldap/server.go +++ b/cmd/ldap/server.go @@ -45,6 +45,9 @@ func main() { defer common.Defer() ac := ak.NewAPIController(*akURLActual, akToken) + if ac == nil { + os.Exit(1) + } ac.Server = ldap.NewServer(ac) diff --git a/cmd/proxy/server.go b/cmd/proxy/server.go index a39e85630..84c4a7f04 100644 --- a/cmd/proxy/server.go +++ b/cmd/proxy/server.go @@ -59,6 +59,9 @@ func main() { defer common.Defer() ac := ak.NewAPIController(*akURLActual, akToken) + if ac == nil { + os.Exit(1) + } ac.Server = proxyv2.NewProxyServer(ac, portOffset)