Community Forums
Connect with us on LinkedIn
Community Notice
Closed Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 29
  1. #1
    bdraco
    Guest

    Default Automatic Accounts

    I'm thinking about doing this via a perl module.

    IE

    use Cpanel::Accounting;

    $acctmkr = new Cpanel::Accounting;
    $acctmkr-&host = 'cpanelmachine.com';
    $acctmkr-&user = 'reseller/root';
    $acctmkr-&accesshash = 'md5hash here';
    ($status,$result) = $acctmkr-&createacct('domain.com','user','pass','plan');

  2. #2
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default This would be great

    This would then create the account right away? Or would it add it to the process signups link?

  3. #3
    bdraco
    Guest

    Default

    [quote:edd2918bb3][i:edd2918bb3]Originally posted by wadearnold[/i:edd2918bb3]

    This would then create the account right away? Or would it add it to the process signups link? [/quote:edd2918bb3]

    It would create it right away...

  4. #4
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    703

    Default

    This is somthing i would not use. Maybe somthing like this could be a plugin or somthing. Like mod_gzip and JSP. If you want it you can download the Process Signups bin and install it. Then it could add a process signup's section to WHM. (Like JSP does)
    Shaun Reitan
    NDCHost.com - cPlicensing.net - ProVPS.com
    Contact us for your cPanel Licensing needs! We Price Match, We provide Support, We take care of our customers!

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    110

    Default

    That would be great... It would keep us from having to modify the wwwacct script to automatically setup accounts.

  6. #6
    Member
    Join Date
    Jan 2002
    Posts
    47

    Default

    Would this be for automatically signing up reseller accounts? That would be very useful to us. So would integration with Authorizenet. I'm not as interested in a sign up form for single domain accounts, but maybe that's just me......

  7. #7
    Member
    Join Date
    Jan 2002
    Posts
    148

    Default

    How about use signup.cgi to take the signups, then use the process signups feature in WHM to approve them...

    I have seen both these options in WHM, BUT, I've never actually seen them used...

  8. #8
    Member bert's Avatar
    Join Date
    Aug 2001
    Posts
    602

    Default

    I agree with shaun, I rather see it as a plugin. I do not like total automation for creating accounts. I rather examine the order first. Nowdays with these spammer crooks and everything else, fully automated account creation is not the way to go.

    Just my 2 cents.
    Bert Kammerer
    Creator of the X Skins[/url]

  9. #9
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default signup.cgi

    I was never able to get the signup.cgi to work. I guess I did not take that much time. I think most people would like to see documentation on this part of the &existing& system. I would love to use both options. I would implement the signup.cgi tonight if I knew how I could code to it. I need to know what the standard is for coding to it. I am sure I could figure out a hack but I would not want a new release to break my signup process.
    cheers;
    wade

  10. #10
    bdraco
    Guest

    Default

    [quote:c906ba3934][i:c906ba3934]Originally posted by bert[/i:c906ba3934]

    I agree with shaun, I rather see it as a plugin. I do not like total automation for creating accounts. I rather examine the order first. Nowdays with these spammer crooks and everything else, fully automated account creation is not the way to go.

    Just my 2 cents.[/quote:c906ba3934]

    Its a perl module for inclusion in your [b:c906ba3934]own[/b:c906ba3934] signup script .. there will be a php one as well .. You are by no means forced to use it.

  11. #11
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    703

    Default

    ok, sounds good. So does that mean signup.cgi and the process signup's in WHM are going to be removed or that stuff still a project to be finished?
    Shaun Reitan
    NDCHost.com - cPlicensing.net - ProVPS.com
    Contact us for your cPanel Licensing needs! We Price Match, We provide Support, We take care of our customers!

  12. #12
    bdraco
    Guest

    Default

    I'm looking for beta testers for this one.. Here is what works so far.. the only thing I really see anybody else needing it listaccounts ... I'm getting ready to do a php version of this soon, so please let me know if you are going to need anything besides the functions below and listaccounts

    #!/usr/bin/perl
    BEGIN {
    push (@INC,&/usr/local/cpanel&
    }
    use Cpanel::Accounting;

    my($whm) = Cpanel::Accounting-&new;

    $whm-&{host} = &localhost&;
    $whm-&{user} = &testuser&;
    $whm-&{accesshash} = 'hash from whm';

    $response = $whm-&killacct(&someuser&
    print $response;

    my %PKGS = $whm-&listpkgs();
    foreach $package (sort keys %PKGS) {
    @PKCTS = @{$PKGS{$package}};
    print &$package @PKCTS\n&;
    }

    #domain,user,pass,package
    $response = $whm-&createacct(&cptest.net&,&cpred&,&rtest&,&mypkg&
    print $response;


    $response = $whm-&suspend('someuser');
    print $response . &\n&;
    $response = $whm-&unsuspend('someuser');
    print $response . &\n&;

  13. #13
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default remote server support

    I would really like to be able to create accounts on remote servers. I see that you have in your object the variable host. In the future am I going to be able to specify the host name that I would like the account created on?
    Could this be written to the same port that is listening for account transfers?

    An idea would be to setup an XML daemon that would listen, parse, execute account creations? Then we could use any programming language that we want to create the front end. I know that you are creating this in php but if we went the xml route then php, asp, jsp, perl, etc would all work. For local host we could just use loop back to the same port. People could firewall the port and setup trusts for there remote servers. Let me know your thoughts. I would be more than willing to help you on this project.

    Wade &luv& Arnold
    -- that's for you mama

  14. #14
    Member
    Join Date
    Jan 2002
    Posts
    47

    Default

    Will it create resource based reseller accounts as well?

  15. #15
    bdraco
    Guest

    Default

    [quote:d018e21d98][i:d018e21d98]Originally posted by rbro[/i:d018e21d98]

    Will it create resource based reseller accounts as well?[/quote:d018e21d98]

    You'll just need to put in the reseller username as the user and the access hash from their WHM.

Closed Thread
Page 1 of 2 1 2 LastLast
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....AGAIN.
    By JSellnau in forum New User Questions
    Replies: 3
    Last Post: 06-07-2005, 11:22 AM
  3. automatic account creation script.
    By edkeyte in forum cPanel Developers
    Replies: 0
    Last Post: 01-29-2005, 01:37 AM
  4. 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
  5. automatic account-creation
    By strauberry in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-28-2003, 04:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube