Jump to content
  • 0

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


MineHarvest66

Question

1 answer to this question

Recommended Posts

  • 0

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! 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...