summaryrefslogtreecommitdiff
path: root/internal/authentication/const.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-12-21 21:31:21 +1100
committerGitHub <noreply@github.com>2022-12-21 21:31:21 +1100
commitd67554ab8886fc35439a4dbf8e6c0b53f170b96e (patch)
treec9c9af74e3d81ed2af22d4a79b9a5bed35b4c6d7 /internal/authentication/const.go
parentd0d80b4f6689df1ac441015bd43ad9c268faad4f (diff)
feat(authentication): ldap time replacements (#4483)
This adds and utilizes several time replacements for both specialized LDAP implementations. Closes #1964, Closes #1284
Diffstat (limited to 'internal/authentication/const.go')
-rw-r--r--internal/authentication/const.go13
1 files changed, 10 insertions, 3 deletions
diff --git a/internal/authentication/const.go b/internal/authentication/const.go
index 48d31c186..4bf9e3cdb 100644
--- a/internal/authentication/const.go
+++ b/internal/authentication/const.go
@@ -70,9 +70,16 @@ const (
)
const (
- ldapPlaceholderInput = "{input}"
- ldapPlaceholderDistinguishedName = "{dn}"
- ldapPlaceholderUsername = "{username}"
+ ldapPlaceholderInput = "{input}"
+ ldapPlaceholderDistinguishedName = "{dn}"
+ ldapPlaceholderUsername = "{username}"
+ ldapPlaceholderDateTimeGeneralized = "{date-time:generalized}"
+ ldapPlaceholderDateTimeMicrosoftNTTimeEpoch = "{date-time:msft-nt-epoch}"
+ ldapPlaceholderDateTimeUnixEpoch = "{date-time:unix-epoch}"
+)
+
+const (
+ ldapGeneralizedTimeDateTimeFormat = "20060102150405.0Z"
)
const (