Jump to content
  • 0

How to Ensure Auto Provisioning With WHM's Strong Passwords Enabled?


Question

1 answer to this question

Recommended Posts

  • 0
Posted

With @Licensecart's help here how you ensure that your WHM will auto provision... 

go to: yourblestainstalldir/components/modules/cpanel/cpanel.php 

Using the TEXT editor (not the "screw you up" coding editor)

Then get to:

private function generatePassword($min_length = 10, $max_length = 14)
    {
        $pool = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()';
        $pool_size = strlen($pool);
        $length = mt_rand(max($min_length, 5), min($max_length, 14));
        $password = '';

        for ($i=0; $i<$length; $i++) {
            $password .= substr($pool, mt_rand(0, $pool_size-1), 1);
        }

        return $password;
    } 

In the bold text areas is where you want to kick up the values. My provider recommends for uninterrupted run a min. of 16 characters should cut the mustard every single time. :)  

Insane? Yes but it's works!  

Beside it will mitigate the claims of "your system's password caused my account to be hacked!'. Being able to prove to such any rude clients like that CHANGING the passwords REGULARLY is a requirement! 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...