Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1516

cPanel: Increase username limit to 16 characters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.6.0-b1
    • Component/s: Modules
    • Labels:
      None

      Description

      cPanel increased the character limit to 16 in 11.40. See http://features.cpanel.net/responses/remove-arbitrary-username-length-limit

      "In cPanel & WHM version 11.40 you can created users with 16 character user names, with the provision that Database Prefixing is disabled. As monarobase mentions, the limitation is due to MySQL."

      We should continue creating usernames of the same length as we do now, however the module should allow usernames up to 16 characters.

        Activity

        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        The documentation @ https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+createacct
        and this blog entry @ http://blog.cpanel.com/update-to-recent-database-prefixing-post/
        indicate that usernames longer than 8 characters are conditional on database prefixing.

        Should this be a module row setting instead?

        Show
        tyson Tyson Phillips (Inactive) added a comment - The documentation @ https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+createacct and this blog entry @ http://blog.cpanel.com/update-to-recent-database-prefixing-post/ indicate that usernames longer than 8 characters are conditional on database prefixing. Should this be a module row setting instead?
        Hide
        admin Paul Phillips added a comment -

        No, it should simply be updated so that the module allows up to 16 character usernames. The module should continue to generate 8 character usernames. Since clients cannot create or change their usernames, the only way you could run into trouble is if a staff member attempts to create an account with a longer that accepted username. In that case, I suspect cPanel would throw an error. It solves the issue where cPanel accounts created outside of Blesta with longer usernames cannot currently be added to Blesta.

        Show
        admin Paul Phillips added a comment - No, it should simply be updated so that the module allows up to 16 character usernames. The module should continue to generate 8 character usernames. Since clients cannot create or change their usernames, the only way you could run into trouble is if a staff member attempts to create an account with a longer that accepted username. In that case, I suspect cPanel would throw an error. It solves the issue where cPanel accounts created outside of Blesta with longer usernames cannot currently be added to Blesta.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Sep/15