aboutsummaryrefslogtreecommitdiff
path: root/internal/auth/ldap/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/auth/ldap/config.go')
-rw-r--r--internal/auth/ldap/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/auth/ldap/config.go b/internal/auth/ldap/config.go
index 79840ee4..4ef6f157 100644
--- a/internal/auth/ldap/config.go
+++ b/internal/auth/ldap/config.go
@@ -86,7 +86,7 @@ func (c *Config) sanitizedUserDN(username string) (string, bool) {
return strings.ReplaceAll(c.UserDN, "%s", username), true
}
-func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
+func (*Config) sanitizedGroupFilter(group string) (string, bool) {
// See http://tools.ietf.org/search/rfc4515
badCharacters := "\x00*\\"
if strings.ContainsAny(group, badCharacters) {
@@ -97,7 +97,7 @@ func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
return group, true
}
-func (c *Config) sanitizedGroupDN(groupDn string) (string, bool) {
+func (*Config) sanitizedGroupDN(groupDn string) (string, bool) {
// See http://tools.ietf.org/search/rfc4514: "special characters"
badCharacters := "\x00()*\\'\"#+;<>"
if strings.ContainsAny(groupDn, badCharacters) || strings.HasPrefix(groupDn, " ") || strings.HasSuffix(groupDn, " ") {