[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Web Admin Front End



Has anyone used the vsite_obj_add function at all?  It looked as though it
was designed to replace the code from the siteAdd.cgi that actually set up
the new site.  

I'm working on my scripts and following the flow of siteAdd.cgi, I have
everything being created and setup, however my script fails when attempting
to create the meta object at the end.  Below is the error I am receiving:

name: site82
gid: 193
hostname: www
domain: test.com
fqdn: www.test.com
ipaddr: 208.167.128.254
fpx: on
quota: 20:20480
maxusers: 5
emaildomain: on
webdomain: on
shell: off
bwlimit: off
cgi: on
ssi: on
ssl: off
apop: off
suspend: off
ftp: off
ftpusers: 0
ftpquota: 0
user_quota: 50
user_fpx: off
user_shell: off
user_apop: off
user_namegen: 1
userlist_sort: name
userlist_range: 15
Can't call method "put" on an undefined value at ./siteAdd.pl line 151.

Line 151 is as follows:

$obj->put("type" => "vsite",
 "name" => $groupName,
 "gid" => (getgrnam($groupName))[2],
 "hostname" => $host,
 "domain" => $domain,
 "fqdn" => $hostName,
 "ipaddr" => $ipAddr,
 "fpx" => $fpx,
 "quota" => $quota,
 "maxusers" => $maxUsers,
 "emaildomain" => $emailDomain,
 "webdomain" => $webDomain,
 "shell" => $shell,
 "bwlimit" => $bwlimit,
 "cgi" => $cgi,
 "ssi" => $ssi,
 "ssl" => $ssl,
 "apop" => $apop,
 "suspend" => $suspend,
 "ftp" => $ftp,
 "ftpusers" => $ftpUsers,
 "ftpquota" => $fquota,
 "user_quota" => $def_user_quota,
 "user_fpx" => $def_user_fpx,
 "user_shell" => $def_user_shell,
 "user_apop" => $def_user_apop,
 "user_namegen" => $def_user_namegen,
 "userlist_sort" => $def_userlist_sort,
 "userlist_range" => $def_userlist_range);

As you can see from the error message, all variables do have values, however
it appears as though at least one of them is formatted incorrectly or the
field name is wrong, etc.  Suggests?

******************
Brian Krabach
Vice President
WholesaleISP, Inc.
****************** 


-----Original Message-----
From: Thescripter@xxxxxxx [mailto:Thescripter@xxxxxxx]
Sent: Friday, April 07, 2000 4:46 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] Web Admin Front End


The trick is, if you goto on your raq:
/usr/admserv/cgi-bin/.cobalt/
You can see all these folders. The one called siteAdd is the one you want. 
You may open it and find a cgi script in there. Copy the code from the CGI 
script :-) You may find ALL the functions here. These are the ones used in 
the UI so PLEASE dont edit those exact files :-)

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers