There is 1 update.
 
 
LDAP / cid:jira-generated-image-avatar-da64c888-2fc5-4c34-a409-ce99ecea0010 LDAP-166 Open

Can't authenticate if ldap user has attribute with length greater than 768 characters

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-0d5af510-8782-44ac-b4ac-a030d7c225a9 Changes by Teodor Caras on 07/Apr/26 14:46
 
Description: Steps to reproduce:
# Create an ldap user with a mail (or any other attribute) of length greater than 768
# On xwiki, create an attribute mapping from XWiki's email to the ldap mail attribute
# Setup the correct connection between xwiki and ldap
# Try to authenticate with the configured user

Excepted Expepted :

The user successfully logs in

Actual:

The login fails and the following error is present in the logs:

 
{code:java}
 
2026-04-06 15:17:35,925 [qtp1039949752-32 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN  o.h.e.j.s.SqlExceptionHelper   - SQL Error: 3401, SQLState: 22001 
2026-04-06 15:17:35,926 [qtp1039949752-32 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] ERROR o.h.e.j.s.SqlExceptionHelper   - data exception: string data, right truncation ; size limit: 768 table: XWIKISTRINGS column: XWS_VALUE 
2026-04-06 15:17:35,934 [qtp1039949752-32 - http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN  nticationFailureLoggerListener - Authentication failure with login [RetiredAccName] 
{code}