#1 (permalink)  
Old 02-10-2002, 10:44 PM
bdraco
Guest
 
Posts: n/a
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') ;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-11-2002, 07:04 AM
Registered User
 
Join Date: Jan 2002
Posts: 113
wadearnold
This would be great

This would then create the account right away? Or would it add it to the process signups link?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-11-2002, 07:50 AM
bdraco
Guest
 
Posts: n/a
[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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-12-2002, 12:27 AM
Advanced cPanel/WHM User
cPanel Partner NOC BadgeAdvanced cPanel/WHM User
 
Join Date: Nov 2001
Location: San Clemente, Ca
Posts: 668
shaun is on a distinguished road
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
www.NDCHost.com
www.cPlicensing.net <- External cPanel Licensing
www.ProVPS.com <-- Xen Virtual Private Servers w/ cPanel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-12-2002, 06:12 AM
Registered User
 
Join Date: Aug 2001
Posts: 110
jumpdomain
That would be great... It would keep us from having to modify the wwwacct script to automatically setup accounts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-12-2002, 01:54 PM
Registered User
 
Join Date: Jan 2002
Posts: 47
rbro
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......
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-12-2002, 10:47 PM
Registered User
 
Join Date: Jan 2002
Posts: 148
gorgo
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-13-2002, 08:04 AM
bert's Avatar
Registered User
 
Join Date: Aug 2001
Posts: 602
bert
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]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-14-2002, 01:50 AM
Registered User
 
Join Date: Jan 2002
Posts: 113
wadearnold
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 &amp;existing&amp; 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-14-2002, 02:00 AM
bdraco
Guest
 
Posts: n/a
[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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 02-14-2002, 12:25 PM
Advanced cPanel/WHM User
cPanel Partner NOC BadgeAdvanced cPanel/WHM User
 
Join Date: Nov 2001
Location: San Clemente, Ca
Posts: 668
shaun is on a distinguished road
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
www.NDCHost.com
www.cPlicensing.net <- External cPanel Licensing
www.ProVPS.com <-- Xen Virtual Private Servers w/ cPanel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-15-2002, 07:11 AM
bdraco
Guest
 
Posts: n/a
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,&amp;/usr/local/cpanel&amp;
}
use Cpanel::Accounting;

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

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

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

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

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


$response = $whm-&amp;suspend('someuser');
print $response . &amp;\n&amp;;
$response = $whm-&amp;unsuspend('someuser');
print $response . &amp;\n&amp;;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-17-2002, 02:55 PM
Registered User
 
Join Date: Jan 2002
Posts: 113
wadearnold
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 &amp;luv&amp; Arnold
-- that's for you mama
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-17-2002, 11:25 PM
Registered User
 
Join Date: Jan 2002
Posts: 47
rbro
Will it create resource based reseller accounts as well?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-18-2002, 12:21 PM
bdraco
Guest
 
Posts: n/a
[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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc