Uploaded image for project: 'LDAP'
  1. LDAP
  2. LDAP-166

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 9.16.1
    • Authenticator
    • None
    • Unknown

    Description

      Steps to reproduce:

      1. Create an ldap user with a mail (or any other attribute) of length greater than 768
      2. On xwiki, create an attribute mapping from XWiki's email to the ldap mail attribute
      3. Setup the correct connection between xwiki and ldap
      4. Try to authenticate with the configured user

      Expepted:

      The user successfully logs in

      Actual:

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

       

       
      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] 
      

       

      Attachments

        Activity

          People

            tcaras Teodor Caras
            tcaras Teodor Caras
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: