summaryrefslogtreecommitdiff
path: root/internal/configuration/validator/authentication.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2021-03-22 20:04:09 +1100
committerGitHub <noreply@github.com>2021-03-22 20:04:09 +1100
commita44f0cf959bfb2c20a3defe7c92f8018799ead86 (patch)
tree14486e0df62df1a74ee55f34c0cb71832af5b268 /internal/configuration/validator/authentication.go
parent7ccbaaffe39aa26dd60e7ae99998fd795b2d80cc (diff)
fix: redis sentinel secret missing (#1839)
* fix: redis sentinel secret missing * refactor: use consts for authentication_backend.file.password errs * fix: unit test for new default port * test: cover additional misses * test: fix windows/linux specific test error * test: more windows specific tests * test: remove superfluous url.IsAbs * test: validator 100% coverage
Diffstat (limited to 'internal/configuration/validator/authentication.go')
-rw-r--r--internal/configuration/validator/authentication.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/configuration/validator/authentication.go b/internal/configuration/validator/authentication.go
index a0a6115e5..a024592cc 100644
--- a/internal/configuration/validator/authentication.go
+++ b/internal/configuration/validator/authentication.go
@@ -92,10 +92,6 @@ func validateLdapURL(ldapURL string, validator *schema.StructValidator) (finalUR
return "", ""
}
- if !parsedURL.IsAbs() {
- validator.Push(fmt.Errorf("URL to LDAP %s is still not absolute, it should be something like ldap://127.0.0.1:389", parsedURL.String()))
- }
-
return parsedURL.String(), parsedURL.Hostname()
}