Skip to content

Commit 9e13426

Browse files
markt-asfclaude
andcommitted
Expand the user name normalisation options in LockOutRealm
Add options to ignore invisible characters (charactersToIgnore with a default set and additionalCharactersToIgnore), convert user names to NFKC (normalizeUnicode), remove combining marks (stripCombiningMarks) and collapse internal space (collapseInternalSpace). All are enabled by default so that user names that LDAP servers and databases treat as the same user are treated as the same user when making lock out decisions. The character options support \uXXXX, \u{X...X} and \\ escape sequences and return their value in the same escaped form. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent f442523 commit 9e13426

5 files changed

Lines changed: 956 additions & 13 deletions

File tree

‎java/org/apache/catalina/realm/LocalStrings.properties‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jndiRealm.open=Exception opening directory server connection
7373
jndiRealm.tlsClose=Exception closing tls response
7474

7575
lockOutRealm.authLockedUser=An attempt was made to authenticate the locked user [{0}]
76+
lockOutRealm.invalidEscape=The value [{0}] is not valid. The supported escape sequences are \\\\, \\uXXXX and \\u'{'X...X'}' (one to six hex digits) and unpaired surrogates are not permitted
7677
lockOutRealm.removeWarning=User [{0}] was removed from the failed users cache after [{1}] seconds to keep the cache size within the limit set
7778

7879
mdCredentialHandler.unknownEncoding=The encoding [{0}] is not supported so the current setting of [{1}] will still be used

0 commit comments

Comments
 (0)