summaryrefslogtreecommitdiff
path: root/internal/authentication/const.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2023-06-18 14:40:38 +1000
committerGitHub <noreply@github.com>2023-06-18 14:40:38 +1000
commitf79db588be089909e8b430a928213eb104ae2972 (patch)
treeeb12e2960794d38eb18b14b803f23ca8dcd22fe1 /internal/authentication/const.go
parent68ac62acab1f8834f30ccf4e06ffb31c5f49c4a6 (diff)
feat(authentication): ldap memberof group search (#5418)
Introduces the concept of group search mode into the LDAP configuration. This also adds the filter and memberof search modes. The full description of these is included in the docs but the filter mode is the same mode as previous which is also the default and recommended value. The memberof mode should only be used by users who are aware of how the concept works as per the docs. Closes #2161 Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/authentication/const.go')
-rw-r--r--internal/authentication/const.go19
1 files changed, 13 insertions, 6 deletions
diff --git a/internal/authentication/const.go b/internal/authentication/const.go
index 51dc84db5..e63cf7edc 100644
--- a/internal/authentication/const.go
+++ b/internal/authentication/const.go
@@ -60,12 +60,19 @@ const (
)
const (
- ldapPlaceholderInput = "{input}"
- ldapPlaceholderDistinguishedName = "{dn}"
- ldapPlaceholderUsername = "{username}"
- ldapPlaceholderDateTimeGeneralized = "{date-time:generalized}"
- ldapPlaceholderDateTimeMicrosoftNTTimeEpoch = "{date-time:microsoft-nt}"
- ldapPlaceholderDateTimeUnixEpoch = "{date-time:unix}"
+ ldapPlaceholderInput = "{input}"
+ ldapPlaceholderDistinguishedName = "{dn}"
+ ldapPlaceholderMemberOfDistinguishedName = "{memberof:dn}"
+ ldapPlaceholderMemberOfRelativeDistinguishedName = "{memberof:rdn}"
+ ldapPlaceholderUsername = "{username}"
+ ldapPlaceholderDateTimeGeneralized = "{date-time:generalized}"
+ ldapPlaceholderDateTimeMicrosoftNTTimeEpoch = "{date-time:microsoft-nt}"
+ ldapPlaceholderDateTimeUnixEpoch = "{date-time:unix}"
+ ldapPlaceholderDistinguishedNameAttribute = "{distinguished_name_attribute}"
+ ldapPlaceholderUsernameAttribute = "{username_attribute}"
+ ldapPlaceholderDisplayNameAttribute = "{display_name_attribute}"
+ ldapPlaceholderMailAttribute = "{mail_attribute}"
+ ldapPlaceholderMemberOfAttribute = "{member_of_attribute}"
)
const (