The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with long logins

Discussion in 'General Discussion' started by n-other, Oct 17, 2007.

  1. n-other

    n-other Registered

    Joined:
    Oct 10, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Maybe someone can help me with this.

    My WHM version is WHM 11.11.0 cPanel 11.15.0-E17665
    I've tried to create an account with long username, but whm rejected it with 'Sorry that username is too long. MAX is 8 letters'. Short search through cpanel trree revealed a file /usr/local/cpanel/Whostmgr/Accounts/Create.pm which contains login length checks along some other stupid ones (like 'test' in username etc). I've commented out all those checks but the problem persists.

    Quick check for the simmilar files showed one more place /home/virthttpdfs/usr/local/cpanel/Whostmgr/Accounts/Create.pm

    changes to this file also didn't affect anything :(

    btw, /home/virthttpdfs/usr/local/cpanel contains a full copy for /usr/local/cpanel tree. does anyone know what is it for?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Note that anything in /home/virtfs type directories are generally going to merely be links to existing files on the server. These are not separate files.

    Note that increasing the username length can have unintended consequences such as issues with creating mySQL databases (as the format is cPanelUsername_dbname) etc.
     
  3. boughtonp

    boughtonp Member

    Joined:
    Sep 1, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    there
    cPanel Access Level:
    Root Administrator
    Is it only the dumb MySQL limit which prevents it from being higher?


    What happens if you simply alter the tables in the actual mysql database to use a varchar(32) - would that then allow longer usernames?
     
Loading...

Share This Page