Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Username length limit

    General pfSense Questions
    2
    4
    1141
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      acascianelli last edited by

      It appears that the maximum username length is 16 characters?  Is there anyway to increase this?

      1 Reply Last reply Reply Quote 0
      • C
        cmb last edited by

        That used to be the limit of usernames in FreeBSD. It looks like that was increased to 32 though and no one noticed to change our code to allow longer. It might be as simple as changing the input validation on that page to allow 32 instead of 16, you can give that a shot.

        1 Reply Last reply Reply Quote 0
        • A
          acascianelli last edited by

          I tried to change the limit from 16 to 20 using Firefox/Firebug, but when I submit the form it resets and re-validates it against the 16 character limit again.

          Looking for the php file on the firewall itself, maybe changing the code itself will work.

          1 Reply Last reply Reply Quote 0
          • A
            acascianelli last edited by

            That worked:

            [2.2.6-RELEASE][###@###.###]/usr/local/www: diff system_usermanager.php system_usermanager.php-ORIGINAL 
            237,238c237,238
            <       if (strlen($_POST['usernamefld']) > 32)
            <               $input_errors[] = gettext("The username is longer than 32 characters.");
            ---
            >       if (strlen($_POST['usernamefld']) > 16)
            >               $input_errors[] = gettext("The username is longer than 16 characters.");
            548c548
            <                                                                />
            ---
            >                                                                />
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            Products

            • Platform Overview
            • TNSR
            • pfSense
            • Appliances

            Services

            • Training
            • Professional Services

            Support

            • Subscription Plans
            • Contact Support
            • Product Lifecycle
            • Documentation

            News

            • Media Coverage
            • Press
            • Events

            Resources

            • Blog
            • FAQ
            • Find a Partner
            • Resource Library
            • Security Information

            Company

            • About Us
            • Careers
            • Partners
            • Contact Us
            • Legal
            Our Mission

            We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

            Subscribe to our Newsletter

            Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

            © 2021 Rubicon Communications, LLC | Privacy Policy