Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    6

    Question Automatic Account Creation....AGAIN.

    I understand that this has been covered quite a bit in this forum, but I have searched and haven't found a solution to my problem.

    I am trying to stick the "createacct" tag into the processing file for a form and I have something messed up somewhere. You can fill out the form and it appears to process it coreectly but does not create the acct in WHM.



    Code:
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    
    $host = "localhost";
    $user = "root";
    $accesshash = '<<removed for security reasons>>';
    $acctdomain = $DomainName;
    $acctuser = $Username;
    $acctpass = $data['pass'];
    $acctplan = $pack_name;
    
    
    createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan, 0);
    This is the WHM acct creation portion of the script...any ideas would be greatly appreciated.

    THis is also written in PHP.....
    Last edited by chirpy; 06-07-2005 at 11:21 AM.

  2. #2
    Member
    Join Date
    Jun 2005
    Posts
    6

    Default

    nvm.....problem solved.....

    i did a few more searches and found the solution.....

  3. #3
    Member
    Join Date
    Jul 2004
    Posts
    203

    Default

    Perhaps you ( OR a mod ) would remove the access key from your original post, that can be used to create accounts. Leaving that there could compromise your server. I would suggest removing the access key form your post, and regenerate one from WHM to disable the one above.
    Regards,
    RAIS


    { RAIS Hosting }~{ Superior Hosting Solutions - Personal, Business, Reseller Solutions. Great value }
    { RAIS Domains }~{ Low cost Domain Name registration services }

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Removed from post - as RAIS has said, you should now regenrate a WHM key as you've done the equivalent of posting your root password.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. how to :automatic account creation ?
    By sanzeeb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2007, 03:18 AM
  2. automatic account creation script.
    By edkeyte in forum cPanel Developers
    Replies: 0
    Last Post: 01-29-2005, 01:37 AM
  3. Automatic account creation? is there a way?
    By wonderboy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-11-2003, 06:41 PM
  4. automatic account-creation
    By strauberry in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-28-2003, 04:45 PM
  5. Automatic Account Creation
    By bdraco in forum cPanel and WHM Discussions
    Replies: 28
    Last Post: 05-13-2002, 01:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube