From kenny at neoserve.com Thu Jun 1 09:12:33 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: signup.cgi errors Message-ID: Hello everyone: I'm having a problem witht he signup.cgi that I'm hoping someone can help me with. I'm running the current (06/01/00) cvs version of freeside on a debian linux 2.1 machine. I have perl 5.6 installed with apache 1.3.12 and mysql 3.23.16. I am running the freeside scripts using apache's suexec. Everything seems to run fine except the signup.cgi. The signup server is running but when I attempt to go to the signup.cgi vi a web browser I get an "Internal Server Error" and the log shows a "Premature end of script headers" error. However, when I run the signup.cgi from the command line (as the freeside user) I get the following... $ ./signup.cgi (offline mode: enter name=value pairs on standard input) Expires: Thu, 01 Jun 2000 16:14:16 GMT Date: Thu, 01 Jun 2000 16:14:16 GMT Content-Type: text/html ISP Signup form --- SNIP --- I've also tried the signup.cgi put of the current stable release but neted the same results. Any help would be greatly appreciated. Kenny. From joeengle at sover.net Thu Jun 1 11:29:34 2000 From: joeengle at sover.net (Joe Englert) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: Message-ID: Hi Ivan, I'm in the process of adding some bonus fields to the cust_main table. We need the ability to send bills to someone other than the contact person. After adding fields to the table and some more widgets in the edit/cust_main.cgi file, the page will display fields I've manually edited but will not write out edits made from the page. After some tracing, it looks like the edit/process/cust_main.cgi is looking through all the name/value pairs sent to it and relying on FS/FS/cust_main.pm to handle the posting. How can I add fields to the cust_main object, or otherwise expand the fields associated with a customer? Are there any pitfalls - like files that are relying on the current structure that would also need to be changed - that I should be aware of? Thanks for the help. Joe From ivan at 420.am Thu Jun 1 15:18:11 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: Adding fields to tables, was: Re: [freeside] signup.cgi errors In-Reply-To: ; from Joe Englert on Thu, Jun 01, 2000 at 02:29:31PM -0400 References: Message-ID: <20000601151810.A15645@cleanwhisker.420.am> On Thu, Jun 01, 2000 at 02:29:31PM -0400, Joe Englert wrote: > Hi Ivan, > I'm in the process of adding some bonus fields to the cust_main > table. We need the ability to send bills to someone other than the > contact person. > > After adding fields to the table and some more widgets in the > edit/cust_main.cgi file, the page will display fields I've manually edited > but will not write out edits made from the page. After some tracing, it > looks like the edit/process/cust_main.cgi is looking through all the > name/value pairs sent to it and relying on FS/FS/cust_main.pm to handle > the posting. > > How can I add fields to the cust_main object, or otherwise > expand the fields associated with a customer? Are there any pitfalls > - like files that are relying on the current structure that would > also need to be changed - that I should be aware of? To add fields to the cust_main table: 1) add the fields to the database 2) (possibly) add the fields to fs-setup if you want new databases to have them. 3) add the fields to FS/FS/cust_main.pm, specifically a data check/untaint in the _check_ subroutine (and reinstall) 4) run bin/dbdef-create to update the database description files 5) modify the .cgi user interface code HTH. In the future, please use a new subject for new messages, rather than replying to an unrelated question. (Simply hitting "Reply" and changing the subject is not adequate; this leaves an "In-Reply-To:" header, which threads your message for those of us fortunate enough to use threaded mailreaders.) -- meow _ivan From ivan at 420.am Thu Jun 1 15:26:57 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: ; from Kenny Elliott on Thu, Jun 01, 2000 at 11:12:40AM -0500 References: Message-ID: <20000601152657.B15645@cleanwhisker.420.am> On Thu, Jun 01, 2000 at 11:12:40AM -0500, Kenny Elliott wrote: > Hello everyone: > > I'm having a problem witht he signup.cgi that I'm hoping someone can help me > with. > > I'm running the current (06/01/00) cvs version of freeside on a debian linux > 2.1 machine. There's no promise that the CVS version will even run, let alone do everything correctly. If you're not doing development or debugging, stick with the released version. > I have perl 5.6 installed with apache 1.3.12 and mysql 3.23.16. > > I am running the freeside scripts using apache's suexec. signup.cgi is not part of the normal Freeside scripts. It should run on a separate machine. Hopefully you're doing that. :) > Everything seems to run fine except the signup.cgi. The signup server is > running but when I attempt to go to the signup.cgi vi a web browser I get an > "Internal Server Error" and the log shows a "Premature end of script > headers" error. Did you run fs_signup_server on the freeside machine, and verify that fs_signupd is running on the external web server? Without the complete exact error message you receive, I am probably unable to assist you. Kindly post a comprehensive and accurate description of your problem. Thanks. -- meow _ivan From kenny at neoserve.com Fri Jun 2 07:34:51 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: <20000601152657.B15645@cleanwhisker.420.am> Message-ID: > There's no promise that the CVS version will even run, let alone do > everything correctly. If you're not doing development or debugging, stick > with the released version. I also tried the signup.cgi from the stable release with the same results. > > I have perl 5.6 installed with apache 1.3.12 and mysql 3.23.16. > > > > I am running the freeside scripts using apache's suexec. > > signup.cgi is not part of the normal Freeside scripts. It should run on > a separate machine. Hopefully you're doing that. :) no, I am running them on the same machine. This is not a production environment I'm simply tring to test the software at this point. > > Everything seems to run fine except the signup.cgi. The signup server is > > running but when I attempt to go to the signup.cgi vi a web > browser I get an > > "Internal Server Error" and the log shows a "Premature end of script > > headers" error. > > Did you run fs_signup_server on the freeside machine, and verify that > fs_signupd is running on the external web server? fs_signup_server starts without any complaints and a quick look at the running processes shows that it ssh'd in and ran /usr/local/sbin/fs_signupd > Without the complete exact error message you receive, I am probably unable > to assist you. Kindly post a comprehensive and accurate description of > your problem. Thanks. a snipit of the error log shows.. [Thu Jun 1 10:08:24 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:08:25 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:15:08 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:15:10 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:15:11 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:20:39 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi [Thu Jun 1 10:20:41 2000] [error] [client 204.1.69.58] Premature end of script headers: /usr/local/freeside/htdocs/signup/signup.cgi From khoff at pc-intouch.com Fri Jun 2 11:26:02 2000 From: khoff at pc-intouch.com (Kristian Hoffmann) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: Message-ID: I suppose you could try running signup.cgi from the command line. That might give you some more verbose error messages. Also, you might want to check the permissions on the socket that fs_signupd uses. I believe it is in /usr/local/freeside/fs_signupd_socket. -Kristian On Fri, 2 Jun 2000, Kenny Elliott wrote: > > There's no promise that the CVS version will even run, let alone do > > everything correctly. If you're not doing development or debugging, stick > > with the released version. > > I also tried the signup.cgi from the stable release with the same results. > > > > I have perl 5.6 installed with apache 1.3.12 and mysql 3.23.16. > > > > > > I am running the freeside scripts using apache's suexec. > > > > signup.cgi is not part of the normal Freeside scripts. It should run on > > a separate machine. Hopefully you're doing that. :) > > no, I am running them on the same machine. This is not a production > environment I'm simply tring to test the software at this point. > > > > Everything seems to run fine except the signup.cgi. The signup server is > > > running but when I attempt to go to the signup.cgi vi a web > > browser I get an > > > "Internal Server Error" and the log shows a "Premature end of script > > > headers" error. > > > > Did you run fs_signup_server on the freeside machine, and verify that > > fs_signupd is running on the external web server? > > fs_signup_server starts without any complaints and a quick look at the > running processes shows that it ssh'd in and ran /usr/local/sbin/fs_signupd > > > Without the complete exact error message you receive, I am probably unable > > to assist you. Kindly post a comprehensive and accurate description of > > your problem. Thanks. > > a snipit of the error log shows.. > > [Thu Jun 1 10:08:24 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:08:25 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:08 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:10 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:11 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:20:39 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:20:41 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > > From gordon at isl.net.nz Sun Jun 4 17:24:18 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: Billing and other questions References: <20000601152657.B15645@cleanwhisker.420.am> Message-ID: <393AF5B8.4C8609C7@isl.net.nz> Hi, Could anyone share some pointers for doing time-based billing? I'm setting up a server for a small ISP. They want to run both Freeside and Radius on the same box. I've got ICRADIUS set up on there - should I be looking at changing the source to use the freeside database, rather than the radius database? They also do a mix of plans, most of which involve a set fee per month plus an additional charge for time e.g. 50hrs per month, plus an additional charge of 0.50c per hour if the user exceeds this time. I've searched the archives, and found some references saying it can be done - but how? :-) Cheers, Gordon From tus at pemail.net Sun Jun 4 22:57:20 2000 From: tus at pemail.net (tus) Date: Wed Jun 29 06:00:45 2005 Subject: Error processing your request Message-ID: <001001bfce98$02e6e360$0278583f@shellhost.net> Error processing your request Your request could not be processed because of the following error: Cybercash error, invnum #14:No mode set. how do i set the mode? we want the mode to be NA We get this when we run 'Bill Now' . Thanks Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://420.am/pipermail/freeside-users/attachments/20000605/eea886a6/attachment.html From ivan at 420.am Mon Jun 5 22:56:19 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <393AF5B8.4C8609C7@isl.net.nz>; from Gordon Smith on Mon, Jun 05, 2000 at 12:35:04PM +1200 References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> Message-ID: <20000605225618.A11731@cleanwhisker.420.am> On Mon, Jun 05, 2000 at 12:35:04PM +1200, Gordon Smith wrote: > Hi, > > Could anyone share some pointers for doing time-based billing? I'm > setting up a server for a small ISP. They want to run both Freeside and > Radius on the same box. I advise against doing this. Your Freeside machine should be behind a firewall and inaccessable from outside, except for the employees who will be using it. Your RADIUS server, OTOH, needs to accept connections from your terminal servers and is not typically behind a firewall. The current CVS version of Freeside includes support for maintaining an ICRADIUS `radcheck' database, and copying that database to any number of external servers. I'll try to roll up a release soon. > I've got ICRADIUS set up on there - should I be > looking at changing the source to use the freeside database, rather than > the radius database? > > They also do a mix of plans, most of which involve a set fee per month > plus an additional charge for time e.g. 50hrs per month, plus an > additional charge of 0.50c per hour if the user exceeds this time. > > I've searched the archives, and found some references saying it can be > done - but how? :-) All prices are perl expressions, evaluated using the Safe module (see `perldoc Safe'). The $cust_pkg variable being billed is shared with the expresison when it is being evaluated. -- meow _ivan From ivan at 420.am Mon Jun 5 23:03:07 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Error processing your request In-Reply-To: <001001bfce98$02e6e360$0278583f@shellhost.net>; from tus on Sun, Jun 04, 2000 at 10:44:31PM -0400 References: <001001bfce98$02e6e360$0278583f@shellhost.net> Message-ID: <20000605230307.B11731@cleanwhisker.420.am> On Sun, Jun 04, 2000 at 10:44:31PM -0400, tus wrote: > Error processing your request > Your request could not be processed because of the following error: > Cybercash error, invnum #14:No mode set. > > > > how do i set the mode? When using the Authorize.net CCLib.pm, you set the mode in the CCLib.pm file itself. See the documentation included with the CCLib.pm_authorize.net > > we want the mode to be NA > > We get this when we run 'Bill Now' . > > > > Thanks > > Tony > > > -- meow _ivan From ivan at 420.am Mon Jun 5 23:06:17 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: ; from Kenny Elliott on Fri, Jun 02, 2000 at 09:34:48AM -0500 References: <20000601152657.B15645@cleanwhisker.420.am> Message-ID: <20000605230617.A12543@cleanwhisker.420.am> On Fri, Jun 02, 2000 at 09:34:48AM -0500, Kenny Elliott wrote: > > There's no promise that the CVS version will even run, let alone do > > everything correctly. If you're not doing development or debugging, stick > > with the released version. > > I also tried the signup.cgi from the stable release with the same results. > > > > I have perl 5.6 installed with apache 1.3.12 and mysql 3.23.16. > > > > > > I am running the freeside scripts using apache's suexec. > > > > signup.cgi is not part of the normal Freeside scripts. It should run on > > a separate machine. Hopefully you're doing that. :) > > no, I am running them on the same machine. This is not a production > environment I'm simply tring to test the software at this point. Well, if you're going to run it on the same machine for testing purposes, you'll need to use a separate iteration of Apache. Your problem stems from running signup.cgi using a suEXEC Apache server. Don't do that. > > > Everything seems to run fine except the signup.cgi. The signup server is > > > running but when I attempt to go to the signup.cgi vi a web > > browser I get an > > > "Internal Server Error" and the log shows a "Premature end of script > > > headers" error. > > > > Did you run fs_signup_server on the freeside machine, and verify that > > fs_signupd is running on the external web server? > > fs_signup_server starts without any complaints and a quick look at the > running processes shows that it ssh'd in and ran /usr/local/sbin/fs_signupd > > > Without the complete exact error message you receive, I am probably unable > > to assist you. Kindly post a comprehensive and accurate description of > > your problem. Thanks. > > a snipit of the error log shows.. > > [Thu Jun 1 10:08:24 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:08:25 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:08 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:10 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:15:11 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:20:39 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > [Thu Jun 1 10:20:41 2000] [error] [client 204.1.69.58] Premature end of > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > -- meow _ivan From gordon at isl.net.nz Mon Jun 5 23:17:17 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> Message-ID: <393C99FA.D1F47C45@isl.net.nz> Thanks Ivan. This setup is an interim measure, since they are a small ISP with no money :-) I'll have a look at the perl stuff - I'm still learning perl at the moment... I do have another suggestion, that you probably won't agree with. Thats having the option of running freeside as the nobody user, rather than using wrappers for the CGI scripts. If used with ssl and .htaccess, it would still be quite secure. The problem with suexec is that the CGI scripts must reside in the root web, not in sub-folders, although this can be changed by hacking the source for suexec. Cheers, Gordon ivan wrote: > > On Mon, Jun 05, 2000 at 12:35:04PM +1200, Gordon Smith wrote: > > Hi, > > > > Could anyone share some pointers for doing time-based billing? I'm > > setting up a server for a small ISP. They want to run both Freeside and > > Radius on the same box. > > I advise against doing this. Your Freeside machine should be behind a > firewall and inaccessable from outside, except for the employees who will > be using it. > > Your RADIUS server, OTOH, needs to accept connections from your terminal > servers and is not typically behind a firewall. > > The current CVS version of Freeside includes support for maintaining an > ICRADIUS `radcheck' database, and copying that database to any number of > external servers. I'll try to roll up a release soon. > > > I've got ICRADIUS set up on there - should I be > > looking at changing the source to use the freeside database, rather than > > the radius database? > > > > They also do a mix of plans, most of which involve a set fee per month > > plus an additional charge for time e.g. 50hrs per month, plus an > > additional charge of 0.50c per hour if the user exceeds this time. > > > > I've searched the archives, and found some references saying it can be > > done - but how? :-) > > All prices are perl expressions, evaluated using the Safe module (see > `perldoc Safe'). The $cust_pkg variable being billed is shared with the > expresison when it is being evaluated. > > -- > meow > _ivan From ivan at 420.am Mon Jun 5 23:38:45 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <393C99FA.D1F47C45@isl.net.nz>; from Gordon Smith on Tue, Jun 06, 2000 at 06:28:10PM +1200 References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <393C99FA.D1F47C45@isl.net.nz> Message-ID: <20000605233844.A12819@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 06:28:10PM +1200, Gordon Smith wrote: > Thanks Ivan. This setup is an interim measure, since they are a small > ISP with no money :-) > > I'll have a look at the perl stuff - I'm still learning perl at the > moment... > > I do have another suggestion, that you probably won't agree with. Hehe, yep, you're right. > Thats having the option of running freeside as the nobody user, rather > than using wrappers for the CGI scripts. Nope. This would, in effect, mean that the nobody user would have full access to your customer database, and (if exporting is setup) root access to other machines. Since the nobody user is the default for "unsafe" daemons etc., this is a really bad idea (despite the fact that your Freeside machine should be secured). > If used with ssl and .htaccess, Umm, you should be using SSL and .htaccess (or one of the database equivalents) *regardless*. > it would still be quite secure. The problem with suexec is that the CGI > scripts must reside in the root web, not in sub-folders, although this > can be changed by hacking the source for suexec. Umm, I don't understand your terminology here. What's a `root web'? What's a `sub-folder'? If I read them as `DocumentRoot' and `subdirectory' your statment is false, and if you are hacking suEXEC you're likely to break any security you've gained by using it. See the warnings at . suEXEC is a sub-optimal solution in the long run, anyway. Like setuid execution, it's only supported because of the problems people have getting mod_perl running. > > Cheers, > Gordon > > > ivan wrote: > > > > On Mon, Jun 05, 2000 at 12:35:04PM +1200, Gordon Smith wrote: > > > Hi, > > > > > > Could anyone share some pointers for doing time-based billing? I'm > > > setting up a server for a small ISP. They want to run both Freeside and > > > Radius on the same box. > > > > I advise against doing this. Your Freeside machine should be behind a > > firewall and inaccessable from outside, except for the employees who will > > be using it. > > > > Your RADIUS server, OTOH, needs to accept connections from your terminal > > servers and is not typically behind a firewall. > > > > The current CVS version of Freeside includes support for maintaining an > > ICRADIUS `radcheck' database, and copying that database to any number of > > external servers. I'll try to roll up a release soon. > > > > > I've got ICRADIUS set up on there - should I be > > > looking at changing the source to use the freeside database, rather than > > > the radius database? > > > > > > They also do a mix of plans, most of which involve a set fee per month > > > plus an additional charge for time e.g. 50hrs per month, plus an > > > additional charge of 0.50c per hour if the user exceeds this time. > > > > > > I've searched the archives, and found some references saying it can be > > > done - but how? :-) > > > > All prices are perl expressions, evaluated using the Safe module (see > > `perldoc Safe'). The $cust_pkg variable being billed is shared with the > > expresison when it is being evaluated. > > > > -- > > meow > > _ivan -- meow _ivan From gordon at isl.net.nz Mon Jun 5 23:59:16 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <393C99FA.D1F47C45@isl.net.nz> <20000605233844.A12819@cleanwhisker.420.am> Message-ID: <393CA3D1.26FB2A8B@isl.net.nz> With suexec, I was meaning that suexec must remain in the document root by default (bottom of the suexec page) :-) I can sympathise with people trying to get mod_perl working now, having just built apache with mod_perl, mod_ssl, php4 and (ick!) frontpage. For others cotemplating doing this, you MUST sacrifice a small goat during compilation. Or it won't work. As an aside, is there any reason not to use php for reporting out of freeside? Cheers, Gordon ivan wrote: > > On Tue, Jun 06, 2000 at 06:28:10PM +1200, Gordon Smith wrote: > > Thanks Ivan. This setup is an interim measure, since they are a small > > ISP with no money :-) > > > > I'll have a look at the perl stuff - I'm still learning perl at the > > moment... > > > > I do have another suggestion, that you probably won't agree with. > > Hehe, yep, you're right. > > > Thats having the option of running freeside as the nobody user, rather > > than using wrappers for the CGI scripts. > > Nope. This would, in effect, mean that the nobody user would have full > access to your customer database, and (if exporting is setup) root access > to other machines. Since the nobody user is the default for "unsafe" > daemons etc., this is a really bad idea (despite the fact that your > Freeside machine should be secured). > > > If used with ssl and .htaccess, > > Umm, you should be using SSL and .htaccess (or one of the database > equivalents) *regardless*. > > > it would still be quite secure. The problem with suexec is that the CGI > > scripts must reside in the root web, not in sub-folders, although this > > can be changed by hacking the source for suexec. > > Umm, I don't understand your terminology here. What's a `root web'? > What's a `sub-folder'? If I read them as `DocumentRoot' and > `subdirectory' your statment is false, and if you are hacking suEXEC > you're likely to break any security you've gained by using it. See the > warnings at . > > suEXEC is a sub-optimal solution in the long run, anyway. Like setuid > execution, it's only supported because of the problems people have getting > mod_perl running. > From ivan at 420.am Tue Jun 6 00:06:28 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <393CA3D1.26FB2A8B@isl.net.nz>; from Gordon Smith on Tue, Jun 06, 2000 at 07:10:10PM +1200 References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <393C99FA.D1F47C45@isl.net.nz> <20000605233844.A12819@cleanwhisker.420.am> <393CA3D1.26FB2A8B@isl.net.nz> Message-ID: <20000606000626.A14261@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 07:10:10PM +1200, Gordon Smith wrote: > With suexec, I was meaning that suexec must remain in the document root > by default (bottom of the suexec page) :-) > > I can sympathise with people trying to get mod_perl working now, having > just built apache with mod_perl, mod_ssl, php4 and (ick!) frontpage. > > For others cotemplating doing this, you MUST sacrifice a small goat > during compilation. Or it won't work. > > As an aside, is there any reason not to use php for reporting out of > freeside? I can't think of any. > > Cheers, > Gordon > > > > ivan wrote: > > > > On Tue, Jun 06, 2000 at 06:28:10PM +1200, Gordon Smith wrote: > > > Thanks Ivan. This setup is an interim measure, since they are a small > > > ISP with no money :-) > > > > > > I'll have a look at the perl stuff - I'm still learning perl at the > > > moment... > > > > > > I do have another suggestion, that you probably won't agree with. > > > > Hehe, yep, you're right. > > > > > Thats having the option of running freeside as the nobody user, rather > > > than using wrappers for the CGI scripts. > > > > Nope. This would, in effect, mean that the nobody user would have full > > access to your customer database, and (if exporting is setup) root access > > to other machines. Since the nobody user is the default for "unsafe" > > daemons etc., this is a really bad idea (despite the fact that your > > Freeside machine should be secured). > > > > > If used with ssl and .htaccess, > > > > Umm, you should be using SSL and .htaccess (or one of the database > > equivalents) *regardless*. > > > > > it would still be quite secure. The problem with suexec is that the CGI > > > scripts must reside in the root web, not in sub-folders, although this > > > can be changed by hacking the source for suexec. > > > > Umm, I don't understand your terminology here. What's a `root web'? > > What's a `sub-folder'? If I read them as `DocumentRoot' and > > `subdirectory' your statment is false, and if you are hacking suEXEC > > you're likely to break any security you've gained by using it. See the > > warnings at . > > > > suEXEC is a sub-optimal solution in the long run, anyway. Like setuid > > execution, it's only supported because of the problems people have getting > > mod_perl running. > > -- meow _ivan From tus at pemail.net Tue Jun 6 00:32:09 2000 From: tus at pemail.net (tus) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Error processing your request References: <001001bfce98$02e6e360$0278583f@shellhost.net> <20000605230307.B11731@cleanwhisker.420.am> Message-ID: <001b01bfcf82$fe450ee0$0278583f@shellhost.net> There isn't any documents with it, only some pointers in the file itself (commented)....thats why i asked. I tried to set it as my $mode = 'NA'; and apparently, that didn't work Tony ----- Original Message ----- From: ivan To: Sent: Tuesday, June 06, 2000 2:03 AM Subject: Re: [freeside] Error processing your request > On Sun, Jun 04, 2000 at 10:44:31PM -0400, tus wrote: > > Error processing your request > > Your request could not be processed because of the following error: > > Cybercash error, invnum #14:No mode set. > > > > > > > > how do i set the mode? > > When using the Authorize.net CCLib.pm, you set the mode in the CCLib.pm > file itself. See the documentation included with the > CCLib.pm_authorize.net > > > > > we want the mode to be NA > > > > We get this when we run 'Bill Now' . > > > > > > > > Thanks > > > > Tony > > > > > > > > -- > meow > _ivan From ivan at 420.am Tue Jun 6 00:38:04 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Error processing your request In-Reply-To: <001b01bfcf82$fe450ee0$0278583f@shellhost.net>; from tus on Tue, Jun 06, 2000 at 02:46:47AM -0400 References: <001001bfce98$02e6e360$0278583f@shellhost.net> <20000605230307.B11731@cleanwhisker.420.am> <001b01bfcf82$fe450ee0$0278583f@shellhost.net> Message-ID: <20000606003804.B15542@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 02:46:47AM -0400, tus wrote: > There isn't any documents with it, only some pointers in the file itself > (commented)....thats why i asked. The file is documented in POD format, and can produce a manpage, text or HTML documentation. See the `perlpod' manpage. Try putting the mode you want on the fourth line of the `cybercash2' configuration file. (If you're using the AuthorizeNet CCLib.pm, the first three lines will be ignored). > > I tried to set it as > my $mode = 'NA'; > and apparently, that didn't work > > Tony > > ----- Original Message ----- > From: ivan > To: > Sent: Tuesday, June 06, 2000 2:03 AM > Subject: Re: [freeside] Error processing your request > > > > On Sun, Jun 04, 2000 at 10:44:31PM -0400, tus wrote: > > > Error processing your request > > > Your request could not be processed because of the following error: > > > Cybercash error, invnum #14:No mode set. > > > > > > > > > > > > how do i set the mode? > > > > When using the Authorize.net CCLib.pm, you set the mode in the CCLib.pm > > file itself. See the documentation included with the > > CCLib.pm_authorize.net > > > > > > > > we want the mode to be NA > > > > > > We get this when we run 'Bill Now' . > > > > > > > > > > > > Thanks > > > > > > Tony > > > > > > > > > > > > > -- > > meow > > _ivan > -- meow _ivan From tcharron at ductape.net Tue Jun 6 07:32:23 2000 From: tcharron at ductape.net (Thomas Charron) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <20000605225618.A11731@cleanwhisker.420.am> References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> Message-ID: <200006061436.JAA04235@ductape.net> Quoting ivan : > > setting up a server for a small ISP. They want to run both Freeside and > > Radius on the same box. > I advise against doing this. Your Freeside machine should be behind a > firewall and inaccessable from outside, except for the employees who will > be using it. > Your RADIUS server, OTOH, needs to accept connections from your terminal > servers and is not typically behind a firewall. As an option, what we do is forward via NAT all radius requests to the internal box that runs our freeside database, which also runs our Cistron Radius server. In our case, it really *isn't* available from the outside. Not a nitpick, just an example of a situation where this could be a viable alternative. --- Thomas Charron << Wanted: One decent sig >> << Preferably litle used >> << and stored in garage. ?>> From tcharron at ductape.net Tue Jun 6 07:34:32 2000 From: tcharron at ductape.net (Thomas Charron) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <393C99FA.D1F47C45@isl.net.nz> References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <393C99FA.D1F47C45@isl.net.nz> Message-ID: <200006061438.JAA04343@ductape.net> Quoting Gordon Smith : > I do have another suggestion, that you probably won't agree with. Thats > having the option of running freeside as the nobody user, rather than > using wrappers for the CGI scripts. If used with ssl and .htaccess, it > would still be quite secure. The problem with suexec is that the CGI > scripts must reside in the root web, not in sub-folders, although this > can be changed by hacking the source for suexec. This actually leads me to an additional question. Why must the cgi scripts actually RUN as the freeside user? The pull their database data from the conf files, etc, so the databse connection isn't the limiting factor, so, what is? --- Thomas Charron << Wanted: One decent sig >> << Preferably litle used >> << and stored in garage. ?>> From joeengle at sover.net Tue Jun 6 11:13:06 2000 From: joeengle at sover.net (Joe Englert) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Adding fields to tables, was: Re: [freeside] signup.cgi errors In-Reply-To: <20000601151810.A15645@cleanwhisker.420.am> Message-ID: Ivan, Your advice worked like a champ. Now I have a checkbox on the customer edit/add script that sets a flag in the cust_main table. I reference this value in cust_main.pm to determine whether or not to check and save the new optional billing contact information. Can you tell me what modules and/or scripts look at the contact information? I'd like to know all the places I need to add some conditional logic to make sure the right person receives the bill. Thanks for the help. Joe On Thu, 1 Jun 2000, ivan wrote: > On Thu, Jun 01, 2000 at 02:29:31PM -0400, Joe Englert wrote: > > Hi Ivan, > > I'm in the process of adding some bonus fields to the cust_main > > table. We need the ability to send bills to someone other than the > > contact person. > > > > After adding fields to the table and some more widgets in the > > edit/cust_main.cgi file, the page will display fields I've manually edited > > but will not write out edits made from the page. After some tracing, it > > looks like the edit/process/cust_main.cgi is looking through all the > > name/value pairs sent to it and relying on FS/FS/cust_main.pm to handle > > the posting. > > > > How can I add fields to the cust_main object, or otherwise > > expand the fields associated with a customer? Are there any pitfalls > > - like files that are relying on the current structure that would > > also need to be changed - that I should be aware of? > > To add fields to the cust_main table: > > 1) add the fields to the database > 2) (possibly) add the fields to fs-setup if you want new databases to have > them. > 3) add the fields to FS/FS/cust_main.pm, specifically a data check/untaint > in the _check_ subroutine (and reinstall) > 4) run bin/dbdef-create to update the database description files > 5) modify the .cgi user interface code > > HTH. > > In the future, please use a new subject for new messages, rather than > replying to an unrelated question. (Simply hitting "Reply" and changing > the subject is not adequate; this leaves an "In-Reply-To:" header, which > threads your message for those of us fortunate enough to use threaded > mailreaders.) > > -- > meow > _ivan > From ivan at 420.am Tue Jun 6 14:37:05 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <200006061438.JAA04343@ductape.net>; from Thomas Charron on Tue, Jun 06, 2000 at 09:38:30AM -0500 References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <393C99FA.D1F47C45@isl.net.nz> <200006061438.JAA04343@ductape.net> Message-ID: <20000606143705.A20378@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 09:38:30AM -0500, Thomas Charron wrote: > Quoting Gordon Smith : > > I do have another suggestion, that you probably won't agree with. Thats > > having the option of running freeside as the nobody user, rather than > > using wrappers for the CGI scripts. If used with ssl and .htaccess, it > > would still be quite secure. The problem with suexec is that the CGI > > scripts must reside in the root web, not in sub-folders, although this > > can be changed by hacking the source for suexec. > > This actually leads me to an additional question. Why must the cgi scripts > actually RUN as the freeside user? The pull their database data from the conf > files, etc, so the databse connection isn't the limiting factor, so, what is? Filesystem access (including *reading* the configuration files), and ssh access to remote systems. -- meow _ivan From ivan at 420.am Tue Jun 6 14:41:05 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing and other questions In-Reply-To: <200006061436.JAA04235@ductape.net>; from Thomas Charron on Tue, Jun 06, 2000 at 09:36:16AM -0500 References: <20000601152657.B15645@cleanwhisker.420.am> <393AF5B8.4C8609C7@isl.net.nz> <20000605225618.A11731@cleanwhisker.420.am> <200006061436.JAA04235@ductape.net> Message-ID: <20000606144105.B20378@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 09:36:16AM -0500, Thomas Charron wrote: > Quoting ivan : > > > setting up a server for a small ISP. They want to run both Freeside and > > > Radius on the same box. > > I advise against doing this. Your Freeside machine should be behind a > > firewall and inaccessable from outside, except for the employees who will > > be using it. > > Your RADIUS server, OTOH, needs to accept connections from your terminal > > servers and is not typically behind a firewall. > > As an option, what we do is forward via NAT all radius requests to the > internal box that runs our freeside database, which also runs our Cistron > Radius server. In our case, it really *isn't* available from the outside. Not > a nitpick, just an example of a situation where this could be a viable > alternative. In this situation, you're still allowing arbitrary packets from the network onto the Freeside machine, and depending on the security of your RADIUS server to protect you from both DoS and more serious attacks. I'd advise against it. -- meow _ivan From ivan at 420.am Tue Jun 6 14:51:33 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Adding fields to tables, was: Re: [freeside] signup.cgi errors In-Reply-To: ; from Joe Englert on Tue, Jun 06, 2000 at 02:13:02PM -0400 References: <20000601151810.A15645@cleanwhisker.420.am> Message-ID: <20000606145132.A20949@cleanwhisker.420.am> On Tue, Jun 06, 2000 at 02:13:02PM -0400, Joe Englert wrote: > Ivan, > Your advice worked like a champ. Now I have a checkbox on the customer > edit/add script that sets a flag in the cust_main table. I reference this > value in cust_main.pm to determine whether or not to check and save the > new optional billing contact information. > Can you tell me what modules and/or scripts look at the contact > information? I'd like to know all the places I need to add some > conditional logic to make sure the right person receives the bill. Thanks > for the help. The `collect' method in cust_main.pm emails or prints the bills, and the `print_text' method in cust_bill.pm provides the text which is emailed or printed. > Joe > > On Thu, 1 Jun 2000, ivan wrote: > > > On Thu, Jun 01, 2000 at 02:29:31PM -0400, Joe Englert wrote: > > > Hi Ivan, > > > I'm in the process of adding some bonus fields to the cust_main > > > table. We need the ability to send bills to someone other than the > > > contact person. > > > > > > After adding fields to the table and some more widgets in the > > > edit/cust_main.cgi file, the page will display fields I've manually edited > > > but will not write out edits made from the page. After some tracing, it > > > looks like the edit/process/cust_main.cgi is looking through all the > > > name/value pairs sent to it and relying on FS/FS/cust_main.pm to handle > > > the posting. > > > > > > How can I add fields to the cust_main object, or otherwise > > > expand the fields associated with a customer? Are there any pitfalls > > > - like files that are relying on the current structure that would > > > also need to be changed - that I should be aware of? > > > > To add fields to the cust_main table: > > > > 1) add the fields to the database > > 2) (possibly) add the fields to fs-setup if you want new databases to have > > them. > > 3) add the fields to FS/FS/cust_main.pm, specifically a data check/untaint > > in the _check_ subroutine (and reinstall) > > 4) run bin/dbdef-create to update the database description files > > 5) modify the .cgi user interface code > > > > HTH. > > > > In the future, please use a new subject for new messages, rather than > > replying to an unrelated question. (Simply hitting "Reply" and changing > > the subject is not adequate; this leaves an "In-Reply-To:" header, which > > threads your message for those of us fortunate enough to use threaded > > mailreaders.) > > > > -- > > meow > > _ivan > > > -- meow _ivan From tus at pemail.net Thu Jun 8 15:48:35 2000 From: tus at pemail.net (tus) Date: Wed Jun 29 06:00:45 2005 Subject: Billing Question Message-ID: <003d01bfd193$31f068e0$0278583f@shellhost.net> Hello there, We have gotten freeside up completely and are happy but, I have a question regarding how it handles automatic billing (recurring charges). Does the billing script need to be on crontab to execute everyday ? or will it automatically execute everyday ? also, how will it work with days of the months.. because suppose if i had a customer on may 31 (may has 31 days) and the following month only has 30 days.. (june) how will the person that was charged on the 31st of may be charged in june ? Will it move its billing for the first of the month or something else ? Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: http://420.am/pipermail/freeside-users/attachments/20000608/95486ccd/attachment.htm From ivan at 420.am Thu Jun 8 16:13:30 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing Question In-Reply-To: <003d01bfd193$31f068e0$0278583f@shellhost.net>; from tus on Thu, Jun 08, 2000 at 05:47:49PM -0400 References: <003d01bfd193$31f068e0$0278583f@shellhost.net> Message-ID: <20000608161330.A31161@cleanwhisker.420.am> On Thu, Jun 08, 2000 at 05:47:49PM -0400, tus wrote: > > Does the billing script need to be on crontab to execute everyday ? yes > also, how will it work with days of the months.. > because suppose if i had a customer on may 31 (may has 31 days) and the > following month only has 30 days.. (june) how will the person that was > charged on the 31st of may be charged in june ? Will it move its billing > for the first of the month or something else ? It will roll over to the next month. (i.e. a customer setup on may 31st will be charged again on july 1st) -- meow _ivan From equijano at sectec.com.mx Thu Jun 8 17:42:10 2000 From: equijano at sectec.com.mx (Esteban Quijano Bonfil) Date: Wed Jun 29 06:00:45 2005 Subject: QUestions and Propose References: <003d01bfd193$31f068e0$0278583f@shellhost.net> Message-ID: <39404C1C.438EBAE7@sectec.com.mx> Hi, I dont know if you already have translate the freeside to spanish, but we just installed and we want to contribute with the translation to spanish as soon as we can. BTW, we found a great piece of software, but!: We have several servers: Proxy-Squid Web-Apache FTP Mail-Qmail Radius-ICRadius We read the conifguration files about how it make it work, but we dont found anything to get integrated with ICRadius and Qmail, just put something in the conf files, how we make the integration. Sorry, if you already discuss it before, but we are just starting. Thanks in Advance Esteban From ivan at 420.am Thu Jun 8 18:16:24 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] QUestions and Propose In-Reply-To: <39404C1C.438EBAE7@sectec.com.mx>; from Esteban Quijano Bonfil on Thu, Jun 08, 2000 at 07:45:00PM -0600 References: <003d01bfd193$31f068e0$0278583f@shellhost.net> <39404C1C.438EBAE7@sectec.com.mx> Message-ID: <20000608181623.A31398@cleanwhisker.420.am> On Thu, Jun 08, 2000 at 07:45:00PM -0600, Esteban Quijano Bonfil wrote: > > Hi, > > I dont know if you already have translate the freeside to spanish, but > we just installed and we want to contribute with the translation to > spanish as soon as we can. Okay. I'm working on using HTML templates in the web interface, which will make it much easier to translate the web pages (and modify the web interface in general). I'll see what can be done for the messages produced by the library code as well. > BTW, we found a great piece of software, but!: > We have several servers: > Proxy-Squid > Web-Apache > FTP > Mail-Qmail > Radius-ICRadius > > We read the conifguration files about how it make it work, but we dont > found anything to get integrated with ICRadius and Qmail, just put > something in the > conf files, how we make the integration. Export of qmail configuration files in in the current release of Freeside. Integration with ICRADIUS is in the development tree, but not yet in a release version. Preliminary integration with Apache is in the development tree as well. There's no specific support for FTP daemons (other than the normal shell account stuff). There's no support for Squid; what do you need to export? You can run a squid cache, transparant or manual, without any need to export user information. -- meow _ivan From turtle at netzon.net Sat Jun 10 16:13:12 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: FreezeThaw Message-ID: <3942cb04.5b73.0@netzon.net> Hi. I am trying to install freeside 1.2.3 on my SuSE Linux 6.3 system with Kernel 2.2.13. Everything seems to be going well. I really think you should update the documentation though relating to the configuration files, whoever is reading this and is in charge of that. After reading an archived article from this message board I got my configuration files pretty straightened out except for /usr/local/etc/freeside/dbdef.DBI:mysql:freeside which wasn't mentioned even once in the documentation nor on this board, so I just copied the conf.DBI:mysql:freeside into the dbdef.DBI:mysql:freeside folder, having absolutely no idea what it is. It seemed to work. Somehow the suexec function in SuSE 6.3's distribution of linux seems to be broken, because I've tried it on three suse 6.3 boxes and suexec never worked on any of them. So, I have had to change the default user/group of the whole web server to user freeside group freeside. In this case it's fine cause this is a box set up specifically for freeside. I also have the newest version of DBI and whatever as of yesterday, since that's when I downloaded all of it, including every perl module listed in the freeside docs. So, when I go to any of the CGI scripts in freeside I am presented with this error message: Software error: Do not know how to thaw data with code `' at /usr/lib/perl5/site_perl/5.005/FreezeThaw.pm line 465 FreezeThaw::thawScalar(0) called at /usr/lib/perl5/site_perl/5.005/FreezeThaw.pm line 604 FreezeThaw::thaw('') called at /usr/lib/perl5/site_perl/5.005/FS/dbdef.pm line 73 FS::dbdef::load('FS::dbdef', '/usr/local/etc/freeside/dbdef.DBI:mysql:freeside') called at /usr/lib/perl5/site_perl/5.005/FS/Record.pm line 756 FS::Record::reload_dbdef called at /usr/lib/perl5/site_perl/5.005/FS/Record.pm line 19 FS::Record::__ANON__ called at /usr/lib/perl5/site_perl/5.005/FS/UID.pm line 84 FS::UID::adminsuidsetup('turtle') called at /usr/lib/perl5/site_perl/5.005/FS/UID.pm line 105 FS::UID::cgisuidsetup('CGI=HASH(0x80d22dc)') called at /usr/local/fs-1.2.3/htdocs/edit/cust_main.cgi line 138 What is this all about? I've tried re-installing freezethaw, and I've tried the older version of freezethaw (0.3) and nothing changes. I don't understand what is going on. Any Ideas? Brian McKelvey System Administrator Netzon Internet (909) 925-3860 turtle@netzon.net www.netzon.net From ivan at 420.am Sat Jun 10 16:46:00 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw In-Reply-To: <3942cb04.5b73.0@netzon.net>; from Turtle on Sat, Jun 10, 2000 at 09:13:32AM -0700 References: <3942cb04.5b73.0@netzon.net> Message-ID: <20000610164600.A10934@cleanwhisker.420.am> On Sat, Jun 10, 2000 at 09:13:32AM -0700, Turtle wrote: > Hi. I am trying to install freeside 1.2.3 on my SuSE Linux 6.3 system with Kernel > 2.2.13. Everything seems to be going well. I really think you should update > the documentation though relating to the configuration files, whoever is reading > this and is in charge of that. Anyone's in charge of it who wants to submit a patch. > After reading an archived article from this > message board I got my configuration files pretty straightened out except for > /usr/local/etc/freeside/dbdef.DBI:mysql:freeside which wasn't mentioned even > once in the documentation nor on this board, so I just copied the conf.DBI:mysql:freeside > into the dbdef.DBI:mysql:freeside folder, having absolutely no idea what it > is. Don't do that. The dbdef.DBI:mysql:freeside file is created when you run fs-setup as documented in htdocs/docs/install.html. > It seemed to work. Umm, no. > Somehow the suexec function in SuSE 6.3's distribution > of linux seems to be broken, because I've tried it on three suse 6.3 boxes and > suexec never worked on any of them. suEXEC comes with the Apache distribution, is not normally installed or enabled by default, and requires modification of your Apache configuration files. This is documented in , which is linked to _suEXEC_ in the installation instructions. > So, I have had to change the default user/group > of the whole web server to user freeside group freeside. In this case it's > fine cause this is a box set up specifically for freeside. > > I also have the newest version of DBI and whatever as of yesterday, since that's > when I downloaded all of it, including every perl module listed in the freeside > docs. > > So, when I go to any of the CGI scripts in freeside I am presented with this > error message: > > Software error: > > Do not know how to thaw data with code `' at /usr/lib/perl5/site_perl/5.005/FreezeThaw.pm > line 465 > FreezeThaw::thawScalar(0) called at /usr/lib/perl5/site_perl/5.005/FreezeThaw.pm > line 604 > FreezeThaw::thaw('') called at /usr/lib/perl5/site_perl/5.005/FS/dbdef.pm line > 73 > FS::dbdef::load('FS::dbdef', '/usr/local/etc/freeside/dbdef.DBI:mysql:freeside') > called at > /usr/lib/perl5/site_perl/5.005/FS/Record.pm line 756 FS::Record::reload_dbdef > called at > /usr/lib/perl5/site_perl/5.005/FS/Record.pm line 19 FS::Record::__ANON__ called > at > /usr/lib/perl5/site_perl/5.005/FS/UID.pm line 84 FS::UID::adminsuidsetup('turtle') > called at > /usr/lib/perl5/site_perl/5.005/FS/UID.pm line 105 FS::UID::cgisuidsetup('CGI=HASH(0x80d22dc)') > called at > /usr/local/fs-1.2.3/htdocs/edit/cust_main.cgi line 138 > > > What is this all about? I've tried re-installing freezethaw, and I've tried > the older version of freezethaw (0.3) and nothing changes. I don't understand > what is going on. Any Ideas? It doesn't have anything to do with FreezeThaw. You didn't run fs-setup as documented in htdocs/docs/install.html, or, in your case, it looks like you overwrite the created dbdef.DBI:mysql:freeside file. -- meow _ivan From turtle at netzon.net Sat Jun 10 23:39:25 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw Message-ID: <39433397.640c.0@netzon.net> >Anyone's in charge of it who wants to submit a patch. So I could change the docs if I wanted to help out?? Just curious. >> It seemed to work. > >Umm, no. I didn't mean work as in actually function, but I did get a different error message :-) > >suEXEC comes with the Apache distribution, is not normally installed or >enabled by default, and requires modification of your Apache configuration >files. This is documented in , >which is linked to _suEXEC_ in the installation instructions. Aah. I see. Ok thanks. That brings up another problem too... I can't update to a new apache installation unless I completely change the layout of my httpd.conf file, well, at least the modules section. I am not quite sure how to do that and cannot bring down my webserver to do that or to recompile it, so I'm kindof stuck with the current version on my other server. However, that's completely unrelated to freeside. :-) >It doesn't have anything to do with FreezeThaw. You didn't run fs-setup >as documented in htdocs/docs/install.html, or, in your case, it looks like >you overwrite the created dbdef.DBI:mysql:freeside file. Aaah I see! Ok I'll take care of that. However, there is another line in the documentation who's meaning eludes me: Create the `/usr/local/etc/freeside/counters.datasrc', and `/usr/local/etc/freeside/export.datasrc' directories for each datasrc (owned by the freeside user). What is that supposed to mean? It's never mentioned again! Brian McKelvey >meow Meow? >_ivan > > From khoff at pc-intouch.com Sun Jun 11 12:00:28 2000 From: khoff at pc-intouch.com (Kristian Hoffmann) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw In-Reply-To: <39433397.640c.0@netzon.net> Message-ID: > Create the `/usr/local/etc/freeside/counters.datasrc', and `/usr/local/etc/freeside/export.datasrc' > directories for each datasrc (owned by the freeside user). > > What is that supposed to mean? It's never mentioned again! The datasrc is the reference to your database. Judging by your dbdef.DBI:mysql:freeside file, it looks like yours is DBI:mysql:freeside. So, just create the counters and export directories as counters.DBI:mysql:freeside and export.DBI:mysql:freeside. I'm sure Ivan can provide a better explaination, but that should do for your purposes. -Kristian From ivan at 420.am Mon Jun 12 17:26:50 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw In-Reply-To: <39433397.640c.0@netzon.net>; from Turtle on Sat, Jun 10, 2000 at 11:36:33PM -0700 References: <39433397.640c.0@netzon.net> Message-ID: <20000612172649.B26293@cleanwhisker.420.am> On Sat, Jun 10, 2000 at 11:36:33PM -0700, Turtle wrote: > >Anyone's in charge of it who wants to submit a patch. > > So I could change the docs if I wanted to help out?? Just curious. Absolutely. I seem to have made a mess of some sections, as evidenced by the confusion and questions. Sadly, no one has yet taken me up on this offer in any tangible way. > However, there is another line in the > documentation who's meaning eludes me: > > Create the `/usr/local/etc/freeside/counters.datasrc', and `/usr/local/etc/freeside/export.datasrc' > directories for each datasrc (owned by the freeside user). > > What is that supposed to mean? It's never mentioned again! It mentioned in htdocs/docs/config.html That's your DBI datasource, for example `DBI:mysql:freeside' or `DBI:Pg:dbname=freeside'. See the DBI manpage and the database-specific DBD manpage for the exact syntax. -- meow _ivan From dgreer at austintx.com Mon Jun 12 21:06:44 2000 From: dgreer at austintx.com (Donald L Greer Jr.) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw References: <39433397.640c.0@netzon.net> Message-ID: <3945B422.C18D66F6@austintx.com> Turtle wrote: > [...]> > >suEXEC comes with the Apache distribution, is not normally installed or > >enabled by default, and requires modification of your Apache configuration > > >files. This is documented in , > >which is linked to _suEXEC_ in the installation instructions. > > Aah. I see. Ok thanks. That brings up another problem too... I can't update > to a new apache installation unless I completely change the layout of my httpd.conf > file, well, at least the modules section. I am not quite sure how to do that > and cannot bring down my webserver to do that or to recompile it, so I'm kindof > stuck with the current version on my other server. However, that's completely > unrelated to freeside. :-) > I found that the suexec would require a similar rewrite on my server, so I chose to use perl's suExec. For the moment, this is an experimental server, but I don't see why this could be used on the final production server as well. I think this is mentioned in the docs as an alternative to suExec. Ivan? Any comment? Don From dgreer at austintx.com Mon Jun 12 21:10:16 2000 From: dgreer at austintx.com (Donald L Greer Jr.) Date: Wed Jun 29 06:00:45 2005 Subject: mod_perl??? Message-ID: <3945B500.BC3492B6@austintx.com> Ivan and Co., I've tried several times w/out success to use my mod_perl with freeside. I'm running Redhat 6.1 Professional. I've heard from OpenDesk folks that there's some serious brokenness in the mod_perl RPMS. Is this what's biting me? Anybody else got it running? If so, could you send me a snippit of your httpd.conf/srm.conf/access.conf so I can see what the particular incantation is? This thing is just REALLY slow without it. Thanks! Don From ivan at 420.am Mon Jun 12 21:23:30 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] FreezeThaw In-Reply-To: <3945B422.C18D66F6@austintx.com>; from Donald L Greer Jr. on Mon, Jun 12, 2000 at 11:10:10PM -0500 References: <39433397.640c.0@netzon.net> <3945B422.C18D66F6@austintx.com> Message-ID: <20000612212329.B27783@cleanwhisker.420.am> On Mon, Jun 12, 2000 at 11:10:10PM -0500, Donald L Greer Jr. wrote: > > > Turtle wrote: > > > [...]> > > >suEXEC comes with the Apache distribution, is not normally installed or > > >enabled by default, and requires modification of your Apache configuration > > > > >files. This is documented in , > > >which is linked to _suEXEC_ in the installation instructions. > > > > Aah. I see. Ok thanks. That brings up another problem too... I can't update > > to a new apache installation unless I completely change the layout of my httpd.conf > > file, well, at least the modules section. I am not quite sure how to do that > > and cannot bring down my webserver to do that or to recompile it, so I'm kindof > > stuck with the current version on my other server. However, that's completely > > unrelated to freeside. :-) > > > > I found that the suexec would require a similar rewrite on my server, > so I chose to use perl's suExec. I believe you're thinking of perl's setuid emulation, not "perl's suExec". > For the moment, this is an experimental server, but I don't see why this could be used on the final > production server as well. > I think this is mentioned in the docs as an alternative to suExec. > Ivan? Any comment? Other than performance, I don't see any reason not to use it in a production server. It's pretty much equivalent to suEXEC in terms of performance; you still need to launch a separate process for each script. Debugging is probably easier with Perl's setuid emulation; since suEXEC dies silently on errors, you wind up with unexplained "Premature end of script headers" if anything's configured incorrectly. -- meow _ivan From turtle at netzon.net Tue Jun 13 10:02:54 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: SSHD2 Message-ID: <394668a2.6ee0.0@netzon.net> Ok.. I have sshd2. Does that work with freeside? And if so, what do I need to do with it? I have read the following line in the documentation: Append the newly-created identity.pub file to root's authorized_keys on the remote machine(s). Well, there is no "authorized_keys" in root's home directory on the remote machine. I am assuming that this is for ssh1... and I don't have ssh1 what do I need for the new sshd2? Brian From turtle at netzon.net Tue Jun 13 10:15:54 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] SSHD2 Message-ID: <39466bae.6f62.0@netzon.net> Next question is: When I run /usr/local/fs-1.2.3/bin/svc_acct.import it gives me an errormessage: freeside@news:~/bin > ./svc_acct.import turtle "my" variable $cols masks earlier declaration in same statement at /usr/lib/perl5/site_perl/5.005/Array/PrintCols.pm line 60 What does that mean? It continues, and appears to work, but I am not sure what it means. Also, i want to import every user in this entire password file. Can I do that in just one step instead of having to enter every username?? Brian From turtle at netzon.net Tue Jun 13 10:41:29 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: Importing Legacy Data Message-ID: <394671ac.7027.0@netzon.net> Ok... i'm running /usr/local/fs-1.2.3/bin/svc_acct.import and i get through all the options then it asks me: Enter the location and name of your _user_ passwd file, for example "Mail.isp.com:/etc/passwd" or "nis.isp.com:/etc/global/passwd" Well... That would be nice if I USED rsh and rlogin... Which I don't. I don't even know if that's what it's for but I've never heard of that syntax for a file being used on anything else, and even with rsh it would be root@dns.netzon.net:/etc/passwd but even so, it doesn't even need to leave the local machine! I have the files I want to import on the local machine and there doesn't seem to be an option for importing them from there. This is really starting to become annoying now... It's not doing things the logical way I think that it should be doing them. The best way it could do it is to have some kind of a server program running on the machine that has the passwd and shadow files that would accept connections only over the local lan, then go in and MODIFY the existing passwd and shadow files. I really don't want to have to overwrite my passwd/shadow files. I REALLY don't want to have to do that. What happens to all the other things like root and what not that I don't want to go through freeside? Brian From turtle at netzon.net Tue Jun 13 12:54:25 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: Payment types Message-ID: <394690d5.736f.0@netzon.net> Ok.. I'm trying to figure out what kind of payment type to use now... It supports "Cybercash, Authorize.net, and Verisign (formerly signio)" Going to cybercash's website reveals that there is no such thing as a product or service called cybercash, only a company, and the only thing that I can guess is that it interfaces with Webauthorize? Which is the easiest/best one to use? I would like to use LinkPoint because it has a nice perl module API that would make it very easy to do. Also, I can't immagine how it could possibly interface with authorize.net, because in authorize.net the customer is presented with an html form with hidden fields that have the amount, etc, and then they are transported to authorize.net's site where they enter their credit card info. There's no way to do this other than enter everyone's credit card info every time with authorize.net, unless there's some other method not advirtised on their website. How does this work? Also the documentation said that the credit cards can be billed real time but you would have to modify site_perl/Bill.pm. However it doesn't say how or why to modify it, or what about it need modifying. What is everyone else using for credit card authorization? Before I started working on freeside I was developing my own version of a similar program and I was going to just export a text file with all the info for every credit card customer on the 20th of every month, and then import it into PCAuthorize, where all 30 or so of our Credit Card customers would be billed simultaneously. That is pretty much what I want to do with Freeside, as well as have an interface where the customer enters their information and is immediately presented with a confirmation screen telling them the status of their signup. Brian From ivan at 420.am Tue Jun 13 17:37:03 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] SSHD2 In-Reply-To: <394668a2.6ee0.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 10:00:03AM -0700 References: <394668a2.6ee0.0@netzon.net> Message-ID: <20000613173702.A4364@cleanwhisker.420.am> Read the documentation for F-Secure SSH2 and provide a documentation update with the equivalents of identity.pub and authorized_keys for it, or install F-Secure ssh1 or OpenSSH . On Tue, Jun 13, 2000 at 10:00:03AM -0700, Turtle wrote: > Ok.. I have sshd2. Does that work with freeside? And if so, what do I need > to do with it? > > I have read the following line in the documentation: > Append the newly-created identity.pub file to root's authorized_keys on the > remote machine(s). > > Well, there is no "authorized_keys" in root's home directory on the remote machine. > I am assuming that this is for ssh1... and I don't have ssh1 > > > what do I need for the new sshd2? > > > Brian -- meow _ivan From ivan at 420.am Tue Jun 13 17:41:31 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] SSHD2 In-Reply-To: <39466bae.6f62.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 10:12:09AM -0700 References: <39466bae.6f62.0@netzon.net> Message-ID: <20000613174131.B4364@cleanwhisker.420.am> On Tue, Jun 13, 2000 at 10:12:09AM -0700, Turtle wrote: > Next question is: When I run /usr/local/fs-1.2.3/bin/svc_acct.import > it gives me an errormessage: > > > freeside@news:~/bin > ./svc_acct.import turtle > "my" variable $cols masks earlier declaration in same statement at /usr/lib/perl5/site_perl/5.005/Array/PrintCols.pm > line 60 > > What does that mean? See the `perldiag' manpage: """"my"""" variable %s masks earlier declaration in same %s (W) A lexical variable has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure referents to it are destroyed. It's a typo in Array::PrintCols. You should be able to safely ignore it. > It continues, and appears to work, but I am not sure what > it means. > Also, i want to import every user in this entire password file. Can I do that > in just one step instead of having to enter every username?? Yes, that's what svc_acct.import does. -- meow _ivan From turtle at netzon.net Tue Jun 13 17:59:37 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] SSHD2 Message-ID: <3946d85c.7ac6.0@netzon.net> >> Also, i want to import every user in this entire password file. Can I do that >> in just one step instead of having to enter every username?? > >Yes, that's what svc_acct.import does. Allright... So ... Why does it require me to enter a username then?? Also, does svc_acct.export export everyone too? And if so, why do I have to enter a username (again)? Brian > >-- >meow >_ivan > > From ivan at 420.am Tue Jun 13 18:14:52 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Importing Legacy Data In-Reply-To: <394671ac.7027.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 10:34:27AM -0700 References: <394671ac.7027.0@netzon.net> Message-ID: <20000613181451.C4364@cleanwhisker.420.am> On Tue, Jun 13, 2000 at 10:34:27AM -0700, Turtle wrote: > > > Ok... i'm running /usr/local/fs-1.2.3/bin/svc_acct.import and i get through > all the options then it asks me: > > Enter the location and name of your _user_ passwd file, for example "Mail.isp.com:/etc/passwd" > or "nis.isp.com:/etc/global/passwd" > > Well... That would be nice if I USED rsh and rlogin... Which I don't. The import script uses SSH, not rsh or rlogin. > I don't > even know if that's what it's for but I've never heard of that syntax for a > file being used on anything else, and even with rsh it would be root@dns.netzon.net:/etc/passwd If you'd read the source or tried the script before firing off an flame, you'd have found out that `root@' is prepended automatically. > but even so, it doesn't even need to leave the local machine! I have the files > I want to import on the local machine and there doesn't seem to be an option > for importing them from there. localhost:/path/to/local/file > This is really starting to become annoying now... > It's not doing things the logical way I think that it should be doing them. Then modify the source; no one is stopping you. Ranting on a public mailing list is neither productive nor appriciated. > The best way it could do it is to have some kind of a server program > running on the machine that has the passwd and shadow files that would > accept connections only over the local lan, That's not good security. SSH's public-key authentication is more secure. (No reason it couldn't be used to make a daemon like you describe, of course) > then go in and MODIFY the > existing passwd and shadow files. I disagree. This is no longer a replication problem, but now a synchronization problem, which is far more complicated, and more prone to error. You can use the "shellmachine" configuration file to control the running of the `useradd' and `userdel' commands, and the copying of directories. See htdocs/docs/export.html. Doing this without also doing exporting will break most account modifications from Freeside (passwords, shells, etc.). > I really don't want to have to overwrite my passwd/shadow files. I > REALLY don't want to have to do that. Then don't use the package, or modify it to suit your needs. Freeside was designed from the start to automate administration and farming of remote machines from a central database of user information. > What happens to all the other things > like root and what not that I don't want to go through freeside? You should import your entire passwd file. -- meow _ivan From ivan at 420.am Tue Jun 13 18:39:06 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] SSHD2 In-Reply-To: <3946d85c.7ac6.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 05:57:47PM -0700 References: <3946d85c.7ac6.0@netzon.net> Message-ID: <20000613183906.E4364@cleanwhisker.420.am> On Tue, Jun 13, 2000 at 05:57:47PM -0700, Turtle wrote: > >> Also, i want to import every user in this entire password file. Can I do > that > >> in just one step instead of having to enter every username?? > > > >Yes, that's what svc_acct.import does. > > Allright... So ... Why does it require me to enter a username then?? > > Also, does svc_acct.export export everyone too? And if so, why do I have to > enter a username (again)? Those aren't your _user or customer_ usernames. Those usernames are your _Freeside_ usernames, from your `mapsecrets' file. See htdocs/docs/config.html. Since each _Freeside_ username can potentially map to a separate database and installation, you need to specify a _Freeside_ username for import and export. -- meow _ivan From ivan at 420.am Tue Jun 13 20:49:41 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types In-Reply-To: <394690d5.736f.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 12:50:15PM -0700 References: <394690d5.736f.0@netzon.net> Message-ID: <20000613204941.A6946@cleanwhisker.420.am> On Tue, Jun 13, 2000 at 12:50:15PM -0700, Turtle wrote: > Ok.. I'm trying to figure out what kind of payment type to use now... It supports > "Cybercash, Authorize.net, and Verisign (formerly signio)" > > Going to cybercash's website reveals that there is no such thing as a product > or service called cybercash, only a company, and the only thing that I can guess > is that it interfaces with Webauthorize? No, it interfaces with CashRegister for real-time payments. . Sorry about the confusion - that's the only service they used to offer. :) > Which is the easiest/best one to use? I don't have enough information to say. > I would like to use LinkPoint because it has a nice perl module API > that would make it very easy to do. If anyone can point out a real-time payment-processing system (that runs on UNIX or is platform-independant) that I don't support, it's quite likely I'll add support for it. I'm currently working on Red Hat's CCVS and Fort Nocs' PaymentAgent. > Also, I can't immagine how it could possibly interface with authorize.net, because > in authorize.net the customer is presented with an html form with hidden fields > that have the amount, etc, and then they are transported to authorize.net's > site where they enter their credit card info. There's no way to do this other > than enter everyone's credit card info every time with authorize.net, unless > there's some other method not advirtised on their website. How does this work? Use the source. It appears AuthorizeNet has a programmatic interface as well. > Also the documentation said that the credit cards can be billed real time but > you would have to modify site_perl/Bill.pm. However it doesn't say how or > why to modify it, or what about it need modifying. That's no longer necessary - it's controlled with the cybercash2 and cybercash3.2 configuration files. Thanks for pointing that out; I've updated the documentation. > What is everyone else using for credit card authorization? Before I started > working on freeside I was developing my own version of a similar program and > I was going to just export a text file with all the info for every credit card > customer on the 20th of every month, and then import it into PCAuthorize, where > all 30 or so of our Credit Card customers would be billed simultaneously. That > is pretty much what I want to do with Freeside, This is batch, as opposed to real-time billing. See . An example program which prints the batches (not terribly useful, but a good starting point for automating this) was contributed by Joel Griffiths and is attached (it's also in the current CVS tree and will be included in the next version). > as well as have an interface > where the customer enters their information and is immediately presented with > a confirmation screen telling them the status of their signup. The signup server is documented in htdocs/docs/signup.html. I suggest using real-time credit card authorization if you're using the signup server. -- meow _ivan -------------- next part -------------- #!/usr/bin/perl -Tw use strict; #use Date::Format; use Time::Local; use Getopt::Std; use FS::Conf; use FS::UID qw(adminsuidsetup); use FS::Record qw(qsearch); use FS::cust_pay; use FS::cust_pay_batch; # Get the currennt time and date my $time = time; my ($sec,$min,$hour,$mday,$mon,$year) = (localtime($time) )[0,1,2,3,4,5]; my $_date = timelocal($sec,$min,$hour,$mday,$mon,$year); # Set the mail program my $mail_program = "/usr/sbin/sendmail -t -n"; &untaint_argv; #what it sounds like (eww) use vars qw($opt_v $opt_p $opt_e $opt_a $opt_d); getopts("vpead"); #switches # Login to the database my $user = shift or die &usage; adminsuidsetup $user; # Get the needed configuration files my $conf = new FS::Conf; my $lpr = $conf->config('lpr'); my $email = $conf->config('email'); my(@batch)=qsearch('cust_pay_batch',{}); if (scalar(@batch) == 0) { exit 1; } # Open print and email pipes # $lpr and opt_p for printing # $email and opt_e for email # if ($lpr && $main::opt_p) { open(LPR, "|$lpr"); print LPR qq~C R E D I T C A R D P A Y M E N T S D U E $mon/$mday/$year\n\n~; } if ($email && $main::opt_e) { open (MAIL, "|$mail_program"); print MAIL <getfield('state'); my $zip = $cust_pay_batch->getfield('zip'); my $amount = $cust_pay_batch->getfield('amount'); my $last = $cust_pay_batch->getfield('last'); my $address1 = $cust_pay_batch->getfield('address1'); my $address2 = $cust_pay_batch->getfield('address2'); my $first = $cust_pay_batch->getfield('first'); my $city = $cust_pay_batch->getfield('city'); my $cardnum = $cust_pay_batch->getfield('cardnum'); my $payname = $cust_pay_batch->getfield('payname'); my $exp = $cust_pay_batch->getfield('exp'); my $invnum = $cust_pay_batch->getfield('invnum'); my $custnum = $cust_pay_batch->getfield('custnum'); # Need a carriage return in address before address2 # if it exists. Otherwise address will just be address1 my $address = $address1; $address .= "\n$address2" if ($address2); # Only print to the screen in verbose mode if ($main::opt_v) { printf("Invoice %d for %s %s\tCustomer Number: %d\n", $invnum, $first, $last, $custnum); printf("\t%s\n", $address); printf("\t%s, %s, %s\n\n", $city, $state, $zip); printf("\tCard Number: %s\tExp:%s\n", $cardnum, $exp); printf("\t\tName: %s\n", $payname); printf("\t\tAmount: %.2f\n\n\n", $amount); } if ($lpr && $main::opt_p) { printf(LPR "Invoice %d for %s %s\tCustomer Number: %d\n", $invnum, $first, $last, $custnum); printf(LPR "\t%s\n", $address); printf(LPR "\t%s, %s, %s\n\n", $city, $state, $zip); printf(LPR "\tCard Number: %s\tExp:%s\n", $cardnum, $exp); printf(LPR "\t\tName: %s\n", $payname); printf(LPR "\t\tAmount: %.2f\n\n\n", $amount); } if ($email && $main::opt_e) { printf(MAIL "Invoice %d for %s %s\tCustomer Number: %d\n", $invnum, $first, $last, $custnum); printf(MAIL "\t%s\n", $address); printf(MAIL "\t%s, %s, %s\n\n", $city, $state, $zip); printf(MAIL "\tCard Number: %s\tExp:%s\n", $cardnum, $exp); printf(MAIL "\t\tName: %s\n", $payname); printf(MAIL "\t\tAmount: %.2f\n\n\n", $amount); } # Now I want to delete the records from cust_pay_batch # and mark the records in cust_pay as paid today if # the delete (-d) command line option is set. if($main::opt_a) { my $payment=new FS::cust_pay { 'invnum' => $invnum, 'paid' => $amount, '_date' => $_date, 'payby' => "CARD", 'payinfo' => $cardnum, 'paybatch' => "AUTO", }; my $pay_error=$payment->insert; if ($pay_error) { # warn might be better if you get root's mail # NEED TO TEST THIS BEFORE DELETE IF WARN IS USED die "Could not update cust_pay for invnum $invnum. $pay_error\n"; } } # This just deletes the records # Must be last in the foreach loop if($main::opt_d) { my $del_error = $cust_pay_batch->delete; if ($del_error) { die "Could not delete cust_pay_batch for invnum $invnum. $del_error\n"; } } } # Now I need to close LPR and EMAIL if they were open if($lpr && $main::opt_p) { close LPR || die "Could not close printer: $lpr\n"; } if($email && $main::opt_e) { close MAIL || die "Could not close printer: $lpr\n"; } # subroutines sub untaint_argv { foreach $_ ( $[ .. $#ARGV ) { #untaint @ARGV $ARGV[$_] =~ /^([\w\-\/]*)$/ || die "Illegal argument \"$ARGV[$_]\""; $ARGV[$_]=$1; } } sub usage { die "Usage:\n\n freeside-print-batch [-v] [-p] [-e] [-a] [-d] user\n"; } =head1 NAME freeside-print-batch - Prints or emails cust_pay_batch. Also deletes old records and adds payment to cust_pay. Usually run after the bill command. =head1 SYNOPSIS freeside-print-batch [-v] [-p] [-e] [-a] [-d] user =head1 DESCRIPTION Prints or emails cust_pay_batch. Can enter payment and delete printed records. Usually run as a cron job. -v: Verbose - Prints records to STDOUT. -p: Print to printer lpr as found in the conf directory. -e: Email output to user found in the Conf email file. -a: Automatically pays all records in cust_pay_batch. Use -d with this option usually. -d: Delete - Pays account and deletes record from cust_pay_batch. user: From the mapsecrets file - see config.html from the base documentation =head1 VERSION $Id: freeside-print-batch,v 1.1 2000/05/13 21:57:56 ivan Exp $ =head1 BUGS Yes..... Use at your own risk. No guarantees or warrantees of any kind apply to this program. Parts of this program are hacked from other GNU licensed software created mainly by Ivan Kohler. This is released under the GNU Public License. See www.gnu.org for more information regarding this license. =head1 SEE ALSO L, config.html from the base documentation =head1 HISTORY griff@aver-computer.com July 99 $Log: freeside-print-batch,v $ Revision 1.1 2000/05/13 21:57:56 ivan add print_batch script from Joel Griffiths =cut From turtle at netzon.net Tue Jun 13 21:02:53 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Importing Legacy Data Message-ID: <3947034e.7ee9.0@netzon.net> >The import script uses SSH, not rsh or rlogin. I only have sshd2... I'll try to figure out how to use that and let you all know. If I can't, I'll get sshd1 >If you'd read the source or tried the script before firing off an flame, >you'd have found out that `root@' is prepended automatically. I couldn't try the script because I couldn't use ssh. I shouldn't have to read the source, either, since this sort of thing ought to be in the docs, which would make things easier for everyone that tried to install it. I also really didn't mean this to be a flame, It just sortof came out that way I guess. I'm getting frustrated, not so much because the script doesn't do what I want it to, but more because there is a lack of information as to how to make it do what I want it to do. I'll keep working at it though. I get easily discouraged reading the source, because it uses so many different ways of doing things and keywords in perl that I've never heard of. > >> but even so, it doesn't even need to leave the local machine! I have the files >> I want to import on the local machine and there doesn't seem to be an option >> for importing them from there. > >localhost:/path/to/local/file Doesn't that still mean that I have to run an ssh server for it to connect to on localhost? It's going to try to connect, and I just want it to go read a file. >Then modify the source; no one is stopping you. Ranting on a public >mailing list is neither productive nor appriciated. I'm not trying to rant, I'm sorry. >That's not good security. SSH's public-key authentication is more secure. >(No reason it couldn't be used to make a daemon like you describe, of >course) If it's on a local lan, encryption is redundant, since noone has any access to the packets anyway. I just didnt' understand the concept of how it worked, I assumed that it would just cut out all my other accounts that weren't specifically added to freeside. > Freeside was >designed from the start to automate administration and farming of remote >machines from a central database of user information. K. I kinda lost track of the purpose of the program... > >> What happens to all the other things >> like root and what not that I don't want to go through freeside? > >You should import your entire passwd file. That would force me to change the root password through freeside? That just seems odd. I'll do it though if I have to. I'm just afraid of it. I have a perfectly functioning mail server, and I don't want to accidentally drop someone's account or anything like that. What does meow mean anyway :-P Just curious. Brian From kenny at neoserve.com Wed Jun 14 13:22:04 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] signup.cgi errors In-Reply-To: <20000605230617.A12543@cleanwhisker.420.am> Message-ID: Thanks everyone. The problem was that the apache suid was not functioning correctly. Running the apache server as user freeside corrected the problem. > -----Original Message----- > From: ivan [mailto:ivan@420.am] > Sent: Tuesday, June 06, 2000 1:06 AM > To: ivan-freeside@sisd.com > Subject: Re: [freeside] signup.cgi errors > > > On Fri, Jun 02, 2000 at 09:34:48AM -0500, Kenny Elliott wrote: > > > There's no promise that the CVS version will even run, > let alone do > > > everything correctly. If you're not doing development > or debugging, stick > > > with the released version. > > > > I also tried the signup.cgi from the stable release with > the same results. > > > > > > I have perl 5.6 installed with apache 1.3.12 and > mysql 3.23.16. > > > > > > > > I am running the freeside scripts using apache's suexec. > > > > > > signup.cgi is not part of the normal Freeside scripts. > It should run on > > > a separate machine. Hopefully you're doing that. :) > > > > no, I am running them on the same machine. This is not a > production > > environment I'm simply tring to test the software at this point. > > Well, if you're going to run it on the same machine for > testing purposes, > you'll need to use a separate iteration of Apache. > > Your problem stems from running signup.cgi using a suEXEC > Apache server. > Don't do that. > > > > > > Everything seems to run fine except the signup.cgi. > The signup server is > > > > running but when I attempt to go to the signup.cgi vi a web > > > browser I get an > > > > "Internal Server Error" and the log shows a > "Premature end of script > > > > headers" error. > > > > > > Did you run fs_signup_server on the freeside machine, > and verify that > > > fs_signupd is running on the external web server? > > > > fs_signup_server starts without any complaints and a > quick look at the > > running processes shows that it ssh'd in and ran > /usr/local/sbin/fs_signupd > > > > > Without the complete exact error message you receive, I > am probably unable > > > to assist you. Kindly post a comprehensive and > accurate description of > > > your problem. Thanks. > > > > a snipit of the error log shows.. > > > > [Thu Jun 1 10:08:24 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:08:25 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:15:08 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:15:10 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:15:11 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:20:39 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > [Thu Jun 1 10:20:41 2000] [error] [client 204.1.69.58] > Premature end of > > script headers: /usr/local/freeside/htdocs/signup/signup.cgi > > > > > > -- > meow > _ivan > From kenny at neoserve.com Wed Jun 14 13:25:13 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: ICradius Message-ID: I have a question about ICradius support. I have the current cvs of freeside installed which supports ICradius. I created the radcheck table in freeside and that seems to be working correctly. However, I see no mention of and have to assume that freeside does not support the radreply table in icradius. Is this something you intend to impliment at some point in the future or not at all? --- Kenny Elliott System Administration / Web Development NeoServe, L.L.C. P: (504) 649-9321 F: (504) 781-6007 From turtle at netzon.net Wed Jun 14 16:33:28 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types Message-ID: <394815a7.2ddf.0@netzon.net> Ok... next question? Why do I need a slipip line in my etc/raddb/users file? My radius authentication does not require that line, but instead needs a Framed-Address line of 255.255.255.254 for dynamic IP assignment, as well as a Framed-Netmask of 255.255.255.255 and a framed-Protocol of PPP, and a User-Service-Type of PPP Can freeside do this, or do I have to modify the code? Brian From turtle at netzon.net Wed Jun 14 16:43:28 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types Message-ID: <394817ff.2e16.0@netzon.net> I forgot to mention that I don't have a radius users file yet. I want to use the software to import the password/shadow files and then export a radius file based upon that information, as well as adding accounts to the freeside database at the same time. Can I use the svc_acct.import file without importing radius, without modifying the source code? I looked at the source code and it's just too weird for me :-) I could figure it out, but don't feel like it if I don't absolutely have to. What, for example, is the keyword "my"? Brian McKelvey >Ok... next question? Why do I need a slipip line in my etc/raddb/users file? > My radius authentication does not require that line, but instead needs a Framed-Address >line of 255.255.255.254 for dynamic IP assignment, as well as a Framed-Netmask >of 255.255.255.255 and a framed-Protocol of PPP, and a User-Service-Type of >PPP > >Can freeside do this, or do I have to modify the code? > > >Brian > From kenny at neoserve.com Wed Jun 14 17:31:24 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] ICradius In-Reply-To: Message-ID: Ivan: I went ahead and made the changes to svc_acct.export needed to support the icradius radreply table. I'm attaching the diff incase you want to include the changes. My Perl is not what it could be so be nice. I also had to make a change to SSH.pm. I'm using ssh2 and scp2 and apparently scp2 no-longer supports the -B switch. I'll work on making SSH.pm check for the version of ssh and apply the appropriate switches and send along a patch if you are interested. > -----Original Message----- > From: Kenny Elliott [mailto:kenny@neoserve.com] > Sent: Wednesday, June 14, 2000 3:25 PM > To: ivan-freeside@sisd.com > Subject: [freeside] ICradius > > > > I have a question about ICradius support. > > I have the current cvs of freeside installed which supports > ICradius. > > I created the radcheck table in freeside and that seems to > be working > correctly. > > However, I see no mention of and have to assume that > freeside does not > support the > radreply table in icradius. > > Is this something you intend to impliment at some point in > the future > or not at all? > > --- > Kenny Elliott > System Administration / Web Development > NeoServe, L.L.C. > > P: (504) 649-9321 > F: (504) 781-6007 > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-svc_acct.export-kde Type: application/octet-stream Size: 1685 bytes Desc: not available Url : http://420.am/pipermail/freeside-users/attachments/20000615/80c60705/patch-svc_acct.obj From ivan at 420.am Thu Jun 15 00:51:52 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types In-Reply-To: <394815a7.2ddf.0@netzon.net>; from Turtle on Wed, Jun 14, 2000 at 04:29:40PM -0700 References: <394815a7.2ddf.0@netzon.net> Message-ID: <20000615005151.A19363@cleanwhisker.420.am> On Wed, Jun 14, 2000 at 04:29:40PM -0700, Turtle wrote: > Ok... next question? Why do I need a slipip line in my etc/raddb/users file? What makes you think you'll have one? Did you generate a `users' file and find such a line in it? > My radius authentication does not require that line, but instead needs > a Framed-Address line of 255.255.255.254 for dynamic IP assignment, as > well as a Framed-Netmask of 255.255.255.255 and a framed-Protocol of > PPP, and a User-Service-Type of PPP > > Can freeside do this, or do I have to modify the code? No code modifications are necessary to add support for any number of arbitrary RADIUS attributes. The `slipip' database field becomes the RADIUS attribute `Framed-Address'. You can specify any number of additional RADIUS attributes to track on a per-user basis when you run fs-setup. -- meow _ivan From ivan at 420.am Thu Jun 15 01:43:59 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Importing Legacy Data In-Reply-To: <3947034e.7ee9.0@netzon.net>; from Turtle on Tue, Jun 13, 2000 at 07:57:19PM -0700 References: <3947034e.7ee9.0@netzon.net> Message-ID: <20000615014359.A19939@cleanwhisker.420.am> On Tue, Jun 13, 2000 at 07:57:19PM -0700, Turtle wrote: > > >> but even so, it doesn't even need to leave the local machine! I have the > files > >> I want to import on the local machine and there doesn't seem to be an option > > >> for importing them from there. > > > >localhost:/path/to/local/file > > > Doesn't that still mean that I have to run an ssh server for it to connect to > on localhost? Yes. > It's going to try to connect, and I just want it to go read a > file. You might be able to get away with manually putting the files in `/usr/local/etc/freeside/export./.import' (where `' is replaced with your DBI data source and `' is replace with the filename), and then letting the remote copy fail, but I'm not certain about that. > >That's not good security. SSH's public-key authentication is more secure. > > >(No reason it couldn't be used to make a daemon like you describe, of > >course) > > If it's on a local lan, encryption is redundant, since noone has any access > to the packets anyway. A network with public internet servers is not a "local LAN". Distributing passwd file changes with weak autheticatication and no encryption is a *bad idea*, no matter how secure you think the network layer is. > >> What happens to all the other things > >> like root and what not that I don't want to go through freeside? > > > >You should import your entire passwd file. > > That would force me to change the root password through freeside? Yes, if you're exporting the file directly (as opposed to NIS, for example - not that I'm recommending NIS). There's a replacement `passwd' command for user shell machines. > That just > seems odd. I'll do it though if I have to. I'm just afraid of it. I have > a perfectly functioning mail server, and I don't want to accidentally drop someone's > account or anything like that. You should do a "dry run" and export files locally on your Freeside machine, then compare them carefully to the actual targets, to make sure you've imported your data correctly. > What does meow mean anyway :-P Just curious. It's a sound cats make. ;) -- meow _ivan From strydom at prosperitas.com.au Thu Jun 15 04:27:08 2000 From: strydom at prosperitas.com.au (Koos Strydom) Date: Wed Jun 29 06:00:45 2005 Subject: Remote Host Disconnected: Connection lost after ssh connect Message-ID: <3948BEAF.CB830516@prosperitas.com.au> Hi Ivan, I'm in the process of testing freeside to implement it on our production system ASAP. I'm quite confident that the config is as described in the documentation, but cannot seem to be able to get user accounts created on our shell, mail or radius machines. I can as user freeside login to the aforementioned machines using the command ssh root@host without any hassle, but when I use signup.cgi, the WEB server just stands there and wait for a reply from the shell machine. When I use the manual create customer page it seems that everything is processed, but examining the other hosts I found no records created in /etc/passwd or no user directories created. On checking the shell machines error log I found that user root did get authenticated with sshd, but the remote host got diconnected immediately. I've also inserted the following lines into svc_acct.pm to verify that the variables is passed to svc_acct.pm warn $username; warn $uid; warn $dir; warn $shell; warn $shellmachine; and the errorlog verified that the variables is passed. What else can I look for? Your help will be appreciated, regards, Johannes Strydom -------------- next part -------------- A non-text attachment was scrubbed... Name: strydom.vcf Type: text/x-vcard Size: 219 bytes Desc: Card for Koos Strydom Url : http://420.am/pipermail/freeside-users/attachments/20000615/1e9f7420/strydom.vcf From gordon at isl.net.nz Thu Jun 15 04:46:08 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Remote Host Disconnected: Connection lost after ssh connect References: <3948BEAF.CB830516@prosperitas.com.au> Message-ID: <000d01bfd6c0$d8662160$0100a8c0@isl> If your using OpenSSH 2.1, check versions on BOTH machines. SSH2 doesn't come with ver 1. It will auth then disconnect if version 2 is trying to use version 1 compatability mode. It needs to have ssh1 installed, and ssh1 compatability set up in /etc/ssh2/ssh_config. ----- Original Message ----- From: "Koos Strydom" To: Sent: Thursday, June 15, 2000 11:31 PM Subject: [freeside] Remote Host Disconnected: Connection lost after ssh connect > Hi Ivan, > > I'm in the process of testing freeside to implement it on our production > system ASAP. > I'm quite confident that the config is as described in the > documentation, but cannot seem to be able to get user accounts created > on our shell, mail or radius machines. > > I can as user freeside login to the aforementioned machines using the > command ssh root@host without any hassle, but when I use signup.cgi, the > WEB server just stands there and wait for a reply from the shell > machine. When I use the manual create customer page it seems that > everything is processed, but examining the other hosts I found no > records created in /etc/passwd or no user directories created. > > On checking the shell machines error log I found that user root did get > authenticated with sshd, but the remote host got diconnected > immediately. > > I've also inserted the following lines into svc_acct.pm to verify that > the variables is passed to svc_acct.pm > warn $username; > warn $uid; > warn $dir; > warn $shell; > warn $shellmachine; > and the errorlog verified that the variables is passed. > > What else can I look for? > > Your help will be appreciated, > > regards, > Johannes Strydom > > From ivan at 420.am Thu Jun 15 05:39:44 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] New Customer Problems In-Reply-To: <3899F67D.B4C2F0E0@terrigal.net.au>; from colinc on Fri, Feb 04, 2000 at 09:43:25AM +1100 References: <388F953A.1E4A0CE5@terrigal.net.au> <001f01bf686c$635f2640$046c98d0@inter2000.net> <388FCF04.8ABBD81E@terrigal.net.au> <20000130001256.S19331@cleanwhisker.420.am> <20000130200504.A6875@blitz-technology.net> <38962FDF.CE06A976@terrigal.net.au> <20000131182118.F4476@cleanwhisker.420.am> <38975858.66937B03@terrigal.net.au> <20000201154452.B10042@cleanwhisker.420.am> <3899F67D.B4C2F0E0@terrigal.net.au> Message-ID: <20000615053944.E20836@cleanwhisker.420.am> Hi, I just checked the fix for this into CVS; it's also appended. Took me a while to track this one down; I had trouble reproducing it. Sorry about that. -- meow _ivan Index: cust_main.pm =================================================================== RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v retrieving revision 1.4 diff -u -r1.4 cust_main.pm --- cust_main.pm 2000/02/02 20:22:18 1.4 +++ cust_main.pm 2000/06/15 12:36:18 @@ -450,15 +450,16 @@ sub ncancelled_pkgs { my $self = shift; - qsearch( 'cust_pkg', { - 'custnum' => $self->custnum, - 'cancel' => '', - }), - qsearch( 'cust_pkg', { - 'custnum' => $self->custnum, - 'cancel' => 0, - }), - ; + @{ [ # force list context + qsearch( 'cust_pkg', { + 'custnum' => $self->custnum, + 'cancel' => '', + }), + qsearch( 'cust_pkg', { + 'custnum' => $self->custnum, + 'cancel' => 0, + }), + ] }; } =item bill OPTIONS On Fri, Feb 04, 2000 at 09:43:25AM +1100, colinc wrote: > > > ivan wrote: > > > On Wed, Feb 02, 2000 at 10:04:08AM +1100, colinc wrote: > > > ivan wrote: > > > > > > > I don't have enough information to diagnose your browse/search problem. > > > > Perhaps you're misunderstanding which tables each option searches? > > > > > > I have now managed to enter in the customer detail in successfully, but the browse > > > options still exists > > > > > > For example, clicking on browse customers (by last name) will give me an error > > > > > > Error processing your request > > > Your request could not be processed because of the following error: > > > > > > No matching customers found! > > > > > This happens with almost all the browse options except for packages (by package > > > number) which will display packages ordered by the customer. > > > The seacrh options produces an error, eg searching by last name, although there are > > > customer details in the database. > > > > How have you verified this? Is there anything in the cust_main table in > > the database? > > > > Yes, definitely. I can actually see the customer details when in mysql. There are also > data in the other tables which i added via the web browser. > The only browse link that works is the packages (by package number) and via this you can > access the customer details, however, i cannot go straight to the customer details either > by browse or search. > > > > > Do you get anything in the server's error log? > > > > Nope, not a single error in the error log > > > > > What OS, database, versions, etc., are you using? What method are you > > using to run the scripts as the Freeside user (mod_perl, suExec, setuid)? > > > > linux 2.0.3.4, mysql database 3.22.27, freeside 1.2.2, perl 5.00.53. > i'm using suEXEC. I also changed the user in the httpd.conf for apache which allowed > freeside to run, other wise i get an error regarding the freeside user. > > > > > > Are you sure your browser isn't simply caching old results? Have you set > > the option to verify documents every time, rather than once per session? > > > > Nope, made sure of that. > > > > > > > Another question, is it necessary to setup the sevice definition? > > > > If you want to offer services (as opposed to offering empty packages), > > then yes. > > > > > > On Tue, Feb 01, 2000 at 12:59:11PM +1100, colinc wrote: > > > > > > > > > > Anyway, another problem is choosing any of the browse options, I have > > > > > customers (manually entered) in the mysql database but it continues to say > > > > > that there are no matching customer, same error occurs when i do a search for > > > > > a customer that is already in the database. > > > > > > > > > > Any suggestion would be appreciated, thanks. > > > > > > > > > > Colin. > > > > > > > > > > > > > -- > > > > _ivan > > > > > > > -- > > _ivan > From ivan at 420.am Thu Jun 15 07:09:06 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] ICradius In-Reply-To: ; from Kenny Elliott on Wed, Jun 14, 2000 at 07:31:33PM -0500 References: Message-ID: <20000615070904.H20836@cleanwhisker.420.am> On Wed, Jun 14, 2000 at 07:31:33PM -0500, Kenny Elliott wrote: > Ivan: > > I went ahead and made the changes to svc_acct.export needed to > support the icradius radreply table. I'm attaching the diff incase you > want to include the changes. My Perl is not what it could be so be > nice. Thanks! I rewrote some of it but it should work the same. I added a `radius' method to svc_acct.pm which returns the RADIUS attributes and values for the FS::svc_acct object, which cleaned things up considerably. The only functional change was the addition of the radcheck table to the (remote) MySQL `LOCK TABLES' statement. I checked the updated FS/FS/svc_acct.pm and bin/svc_acct.export into CVS. > I also had to make a change to SSH.pm. I'm using ssh2 and scp2 and > apparently scp2 no-longer supports the -B switch. I'll work on making > SSH.pm check for the version of ssh and apply the appropriate switches > and send along a patch if you are interested. Yes, very much so. > > > > > -----Original Message----- > > From: Kenny Elliott [mailto:kenny@neoserve.com] > > Sent: Wednesday, June 14, 2000 3:25 PM > > To: ivan-freeside@sisd.com > > Subject: [freeside] ICradius > > > > > > > > I have a question about ICradius support. > > > > I have the current cvs of freeside installed which supports > > ICradius. > > > > I created the radcheck table in freeside and that seems to > > be working > > correctly. > > > > However, I see no mention of and have to assume that > > freeside does not > > support the > > radreply table in icradius. > > > > Is this something you intend to impliment at some point in > > the future > > or not at all? > > > > --- > > Kenny Elliott > > System Administration / Web Development > > NeoServe, L.L.C. > > > > P: (504) 649-9321 > > F: (504) 781-6007 > > > > > > -- meow _ivan From ivan at 420.am Thu Jun 15 07:12:40 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types In-Reply-To: <394817ff.2e16.0@netzon.net>; from Turtle on Wed, Jun 14, 2000 at 04:40:47PM -0700 References: <394817ff.2e16.0@netzon.net> Message-ID: <20000615071239.I20836@cleanwhisker.420.am> On Wed, Jun 14, 2000 at 04:40:47PM -0700, Turtle wrote: > I forgot to mention that I don't have a radius users file yet. I want to use > the software to import the password/shadow files and then export a radius file > based upon that information, as well as adding accounts to the freeside database > at the same time. Can I use the svc_acct.import file without importing radius, > without modifying the source code? Yes, you should be able to do that. > I looked at the source code and it's just > too weird for me :-) I could figure it out, but don't feel like it if I don't > absolutely have to. What, for example, is the keyword "my"? perldoc -f my This is not an appropriate forum for general Perl help. > > Brian McKelvey > > > > >Ok... next question? Why do I need a slipip line in my etc/raddb/users file? > > > My radius authentication does not require that line, but instead needs a Framed-Address > > >line of 255.255.255.254 for dynamic IP assignment, as well as a Framed-Netmask > > >of 255.255.255.255 and a framed-Protocol of PPP, and a User-Service-Type of > > >PPP > > > >Can freeside do this, or do I have to modify the code? > > > > > >Brian > > -- meow _ivan From ivan at 420.am Thu Jun 15 07:38:28 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Remote Host Disconnected: Connection lost after ssh connect In-Reply-To: <000d01bfd6c0$d8662160$0100a8c0@isl>; from Gordon Smith on Thu, Jun 15, 2000 at 11:57:12PM +1200 References: <3948BEAF.CB830516@prosperitas.com.au> <000d01bfd6c0$d8662160$0100a8c0@isl> Message-ID: <20000615073827.A23267@cleanwhisker.420.am> A starting point is the Freeside customer creation screen; don't attempt the signup server until that works. Since you see the connection in your shell machine's log, it sounds like you have your `shellmachine' configuration value set correctly. If installing consistant versions of F-Secure ssh-1.2.27 or OpenSSH doesn't fix your problem, some other things to check: - Try, as the freeside user, running the ssh command with the same switches as in svc_acct.pm. - Is there something in your environment or PATH when you login manually, which allows things to work, but isn't present when running from within Freeside? On Thu, Jun 15, 2000 at 11:57:12PM +1200, Gordon Smith wrote: > If your using OpenSSH 2.1, check versions on BOTH machines. SSH2 doesn't > come with ver 1. It will auth then disconnect if version 2 is trying to use > version 1 compatability mode. It needs to have ssh1 installed, and ssh1 > compatability set up in /etc/ssh2/ssh_config. > > > ----- Original Message ----- > From: "Koos Strydom" > To: > Sent: Thursday, June 15, 2000 11:31 PM > Subject: [freeside] Remote Host Disconnected: Connection lost after ssh > connect > > > > Hi Ivan, > > > > I'm in the process of testing freeside to implement it on our production > > system ASAP. > > I'm quite confident that the config is as described in the > > documentation, but cannot seem to be able to get user accounts created > > on our shell, mail or radius machines. > > > > I can as user freeside login to the aforementioned machines using the > > command ssh root@host without any hassle, but when I use signup.cgi, the > > WEB server just stands there and wait for a reply from the shell > > machine. When I use the manual create customer page it seems that > > everything is processed, but examining the other hosts I found no > > records created in /etc/passwd or no user directories created. > > > > On checking the shell machines error log I found that user root did get > > authenticated with sshd, but the remote host got diconnected > > immediately. > > > > I've also inserted the following lines into svc_acct.pm to verify that > > the variables is passed to svc_acct.pm > > warn $username; > > warn $uid; > > warn $dir; > > warn $shell; > > warn $shellmachine; > > and the errorlog verified that the variables is passed. > > > > What else can I look for? > > > > Your help will be appreciated, > > > > regards, > > Johannes Strydom > > > > > -- meow _ivan From kenny at neoserve.com Thu Jun 15 09:16:23 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] ICradius In-Reply-To: <20000615070904.H20836@cleanwhisker.420.am> Message-ID: > I rewrote some of it but it should work the same. I added > a `radius' > method to svc_acct.pm which returns the RADIUS attributes and values > for the FS::svc_acct object, which cleaned things up > considerably. The > only functional change was the addition of the radcheck table to the > (remote) MySQL `LOCK TABLES' statement. > > I checked the updated FS/FS/svc_acct.pm and > bin/svc_acct.export into CVS. Very slick! I'm now working on getting vpopmail (http://www.inter7.com/vpopmail/) support into freeside. Basically I'm looking at copying and modifying the current useradd/userdel functionality to ssh to the vpopmail machine and run vadduser/vdeluser. Unless you have a better suggestion. > > I also had to make a change to SSH.pm. I'm using ssh2 > and scp2 and > > apparently scp2 no-longer supports the -B switch. I'll > work on making > > SSH.pm check for the version of ssh and apply the > appropriate switches > > and send along a patch if you are interested. > > Yes, very much so. k, it's on my list. I've got to get freeside creating my accounts first though. From strydom at prosperitas.com.au Thu Jun 15 16:29:47 2000 From: strydom at prosperitas.com.au (Koos Strydom) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Remote Host Disconnected: Connection lost after ssh connect References: <3948BEAF.CB830516@prosperitas.com.au> <000d01bfd6c0$d8662160$0100a8c0@isl> Message-ID: <3949680A.A6F9DEDA@prosperitas.com.au> Gordon Smith wrote: > If your using OpenSSH 2.1, check versions on BOTH machines. SSH2 doesn't > come with ver 1. It will auth then disconnect if version 2 is trying to use > version 1 compatability mode. It needs to have ssh1 installed, and ssh1 > compatability set up in /etc/ssh2/ssh_config. > > ----- Original Message ----- > From: "Koos Strydom" > To: > Sent: Thursday, June 15, 2000 11:31 PM > Subject: [freeside] Remote Host Disconnected: Connection lost after ssh > connect > > > Hi Ivan, > > > > I'm in the process of testing freeside to implement it on our production > > system ASAP. > > I'm quite confident that the config is as described in the > > documentation, but cannot seem to be able to get user accounts created > > on our shell, mail or radius machines. > > > > I can as user freeside login to the aforementioned machines using the > > command ssh root@host without any hassle, but when I use signup.cgi, the > > WEB server just stands there and wait for a reply from the shell > > machine. When I use the manual create customer page it seems that > > everything is processed, but examining the other hosts I found no > > records created in /etc/passwd or no user directories created. > > > > On checking the shell machines error log I found that user root did get > > authenticated with sshd, but the remote host got diconnected > > immediately. > > > > I've also inserted the following lines into svc_acct.pm to verify that > > the variables is passed to svc_acct.pm > > warn $username; > > warn $uid; > > warn $dir; > > warn $shell; > > warn $shellmachine; > > and the errorlog verified that the variables is passed. > > > > What else can I look for? > > > > Your help will be appreciated, > > > > regards, > > Johannes Strydom > > > > Thanks Gordon, I've had SSH2 version 2.0.13 installed. I uninstalled it and installed version 1.2.27 and prliminary testing indicates that I can login as root from a user freeside login as follow (trust this is correct) ssh root@host useradd -d /home/username -m -s /bin/sh -u 510 username. After I've executed this I checked the shell machine and to my delight everything was as I expected -------------- next part -------------- A non-text attachment was scrubbed... Name: strydom.vcf Type: text/x-vcard Size: 219 bytes Desc: Card for Koos Strydom Url : http://420.am/pipermail/freeside-users/attachments/20000615/9395c464/strydom.vcf From strydom at prosperitas.com.au Thu Jun 15 16:30:53 2000 From: strydom at prosperitas.com.au (Koos Strydom) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Remote Host Disconnected: Connection lost after ssh connect References: <3948BEAF.CB830516@prosperitas.com.au> <000d01bfd6c0$d8662160$0100a8c0@isl> <20000615073827.A23267@cleanwhisker.420.am> Message-ID: <3949684C.978EEE06@prosperitas.com.au> ivan wrote: > A starting point is the Freeside customer creation screen; don't attempt > the signup server until that works. > > Since you see the connection in your shell machine's log, it sounds like > you have your `shellmachine' configuration value set correctly. > > If installing consistant versions of F-Secure ssh-1.2.27 or OpenSSH > doesn't fix your problem, some other things to check: > > - Try, as the freeside user, running the ssh command with the same > switches as in svc_acct.pm. > - Is there something in your environment or PATH when you login manually, > which allows things to work, but isn't present when running from > within Freeside? > > On Thu, Jun 15, 2000 at 11:57:12PM +1200, Gordon Smith wrote: > > If your using OpenSSH 2.1, check versions on BOTH machines. SSH2 doesn't > > come with ver 1. It will auth then disconnect if version 2 is trying to use > > version 1 compatability mode. It needs to have ssh1 installed, and ssh1 > > compatability set up in /etc/ssh2/ssh_config. > > > > > > ----- Original Message ----- > > From: "Koos Strydom" > > To: > > Sent: Thursday, June 15, 2000 11:31 PM > > Subject: [freeside] Remote Host Disconnected: Connection lost after ssh > > connect > > > > > > > Hi Ivan, > > > > > > I'm in the process of testing freeside to implement it on our production > > > system ASAP. > > > I'm quite confident that the config is as described in the > > > documentation, but cannot seem to be able to get user accounts created > > > on our shell, mail or radius machines. > > > > > > I can as user freeside login to the aforementioned machines using the > > > command ssh root@host without any hassle, but when I use signup.cgi, the > > > WEB server just stands there and wait for a reply from the shell > > > machine. When I use the manual create customer page it seems that > > > everything is processed, but examining the other hosts I found no > > > records created in /etc/passwd or no user directories created. > > > > > > On checking the shell machines error log I found that user root did get > > > authenticated with sshd, but the remote host got diconnected > > > immediately. > > > > > > I've also inserted the following lines into svc_acct.pm to verify that > > > the variables is passed to svc_acct.pm > > > warn $username; > > > warn $uid; > > > warn $dir; > > > warn $shell; > > > warn $shellmachine; > > > and the errorlog verified that the variables is passed. > > > > > > What else can I look for? > > > > > > Your help will be appreciated, > > > > > > regards, > > > Johannes Strydom > > > > > > > > > > -- > meow > _ivan Thanks for a great piece of sofware and your quick response to my problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: strydom.vcf Type: text/x-vcard Size: 219 bytes Desc: Card for Koos Strydom Url : http://420.am/pipermail/freeside-users/attachments/20000615/c2f228f7/strydom.vcf From colinc at terrigal.net.au Thu Jun 15 16:42:45 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] New Customer Problems References: <388F953A.1E4A0CE5@terrigal.net.au> <001f01bf686c$635f2640$046c98d0@inter2000.net> <388FCF04.8ABBD81E@terrigal.net.au> <20000130001256.S19331@cleanwhisker.420.am> <20000130200504.A6875@blitz-technology.net> <38962FDF.CE06A976@terrigal.net.au> <20000131182118.F4476@cleanwhisker.420.am> <38975858.66937B03@terrigal.net.au> <20000201154452.B10042@cleanwhisker.420.am> <3899F67D.B4C2F0E0@terrigal.net.au> <20000615053944.E20836@cleanwhisker.420.am> Message-ID: <39495C75.B76B6908@terrigal.net.au> The problem was using the 'hidecancelledcustomers' file in the configuration, if this file existed then none of the customers were listed in the browse or search options, whether they were cancelled or not. Seems to work fine as long as this file did not exist. I'm not sure whether the following code you have appended addresses this (not too familiar with coding) but hopefully it does. Col. ivan wrote: > Hi, > > I just checked the fix for this into CVS; it's also appended. Took me a > while to track this one down; I had trouble reproducing it. Sorry about > that. > > -- > meow > _ivan > > Index: cust_main.pm > =================================================================== > RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v > retrieving revision 1.4 > diff -u -r1.4 cust_main.pm > --- cust_main.pm 2000/02/02 20:22:18 1.4 > +++ cust_main.pm 2000/06/15 12:36:18 > @@ -450,15 +450,16 @@ > > sub ncancelled_pkgs { > my $self = shift; > - qsearch( 'cust_pkg', { > - 'custnum' => $self->custnum, > - 'cancel' => '', > - }), > - qsearch( 'cust_pkg', { > - 'custnum' => $self->custnum, > - 'cancel' => 0, > - }), > - ; > + @{ [ # force list context > + qsearch( 'cust_pkg', { > + 'custnum' => $self->custnum, > + 'cancel' => '', > + }), > + qsearch( 'cust_pkg', { > + 'custnum' => $self->custnum, > + 'cancel' => 0, > + }), > + ] }; > } > > =item bill OPTIONS > > On Fri, Feb 04, 2000 at 09:43:25AM +1100, colinc wrote: > > > > > > ivan wrote: > > > > > On Wed, Feb 02, 2000 at 10:04:08AM +1100, colinc wrote: > > > > ivan wrote: > > > > > > > > > I don't have enough information to diagnose your browse/search problem. > > > > > Perhaps you're misunderstanding which tables each option searches? > > > > > > > > I have now managed to enter in the customer detail in successfully, but the browse > > > > options still exists > > > > > > > > For example, clicking on browse customers (by last name) will give me an error > > > > > > > > Error processing your request > > > > Your request could not be processed because of the following error: > > > > > > > > No matching customers found! > > > > > > > This happens with almost all the browse options except for packages (by package > > > > number) which will display packages ordered by the customer. > > > > The seacrh options produces an error, eg searching by last name, although there are > > > > customer details in the database. > > > > > > How have you verified this? Is there anything in the cust_main table in > > > the database? > > > > > > > Yes, definitely. I can actually see the customer details when in mysql. There are also > > data in the other tables which i added via the web browser. > > The only browse link that works is the packages (by package number) and via this you can > > access the customer details, however, i cannot go straight to the customer details either > > by browse or search. > > > > > > > > Do you get anything in the server's error log? > > > > > > > Nope, not a single error in the error log > > > > > > > > What OS, database, versions, etc., are you using? What method are you > > > using to run the scripts as the Freeside user (mod_perl, suExec, setuid)? > > > > > > > linux 2.0.3.4, mysql database 3.22.27, freeside 1.2.2, perl 5.00.53. > > i'm using suEXEC. I also changed the user in the httpd.conf for apache which allowed > > freeside to run, other wise i get an error regarding the freeside user. > > > > > > > > > > Are you sure your browser isn't simply caching old results? Have you set > > > the option to verify documents every time, rather than once per session? > > > > > > > Nope, made sure of that. > > > > > > > > > > > Another question, is it necessary to setup the sevice definition? > > > > > > If you want to offer services (as opposed to offering empty packages), > > > then yes. > > > > > > > > On Tue, Feb 01, 2000 at 12:59:11PM +1100, colinc wrote: > > > > > > > > > > > > Anyway, another problem is choosing any of the browse options, I have > > > > > > customers (manually entered) in the mysql database but it continues to say > > > > > > that there are no matching customer, same error occurs when i do a search for > > > > > > a customer that is already in the database. > > > > > > > > > > > > Any suggestion would be appreciated, thanks. > > > > > > > > > > > > Colin. > > > > > > > > > > > > > > > > -- > > > > > _ivan > > > > > > > > > > -- > > > _ivan > > From ivan at 420.am Thu Jun 15 16:59:42 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] New Customer Problems In-Reply-To: <39495C75.B76B6908@terrigal.net.au>; from Colin on Fri, Jun 16, 2000 at 11:45:09AM +1200 References: <388FCF04.8ABBD81E@terrigal.net.au> <20000130001256.S19331@cleanwhisker.420.am> <20000130200504.A6875@blitz-technology.net> <38962FDF.CE06A976@terrigal.net.au> <20000131182118.F4476@cleanwhisker.420.am> <38975858.66937B03@terrigal.net.au> <20000201154452.B10042@cleanwhisker.420.am> <3899F67D.B4C2F0E0@terrigal.net.au> <20000615053944.E20836@cleanwhisker.420.am> <39495C75.B76B6908@terrigal.net.au> Message-ID: <20000615165941.A29163@cleanwhisker.420.am> Yes, the patch below fixes the functionality of the `hidecancelledcustomers' configuration file. (You need to reinstall the Perl modules and restart Apache) On Fri, Jun 16, 2000 at 11:45:09AM +1200, Colin wrote: > The problem was using the 'hidecancelledcustomers' file in the configuration, if this file > existed then none of the customers were listed in the browse or search options, whether they > were cancelled or not. Seems to work fine as long as this file did not exist. > I'm not sure whether the following code you have appended addresses this (not too familiar with > coding) but hopefully it does. > > Col. > > ivan wrote: > > > Hi, > > > > I just checked the fix for this into CVS; it's also appended. Took me a > > while to track this one down; I had trouble reproducing it. Sorry about > > that. > > > > -- > > meow > > _ivan > > > > Index: cust_main.pm > > =================================================================== > > RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v > > retrieving revision 1.4 > > diff -u -r1.4 cust_main.pm > > --- cust_main.pm 2000/02/02 20:22:18 1.4 > > +++ cust_main.pm 2000/06/15 12:36:18 > > @@ -450,15 +450,16 @@ > > > > sub ncancelled_pkgs { > > my $self = shift; > > - qsearch( 'cust_pkg', { > > - 'custnum' => $self->custnum, > > - 'cancel' => '', > > - }), > > - qsearch( 'cust_pkg', { > > - 'custnum' => $self->custnum, > > - 'cancel' => 0, > > - }), > > - ; > > + @{ [ # force list context > > + qsearch( 'cust_pkg', { > > + 'custnum' => $self->custnum, > > + 'cancel' => '', > > + }), > > + qsearch( 'cust_pkg', { > > + 'custnum' => $self->custnum, > > + 'cancel' => 0, > > + }), > > + ] }; > > } > > > > =item bill OPTIONS > > > > On Fri, Feb 04, 2000 at 09:43:25AM +1100, colinc wrote: > > > > > > > > > ivan wrote: > > > > > > > On Wed, Feb 02, 2000 at 10:04:08AM +1100, colinc wrote: > > > > > ivan wrote: > > > > > > > > > > > I don't have enough information to diagnose your browse/search problem. > > > > > > Perhaps you're misunderstanding which tables each option searches? > > > > > > > > > > I have now managed to enter in the customer detail in successfully, but the browse > > > > > options still exists > > > > > > > > > > For example, clicking on browse customers (by last name) will give me an error > > > > > > > > > > Error processing your request > > > > > Your request could not be processed because of the following error: > > > > > > > > > > No matching customers found! > > > > > > > > > This happens with almost all the browse options except for packages (by package > > > > > number) which will display packages ordered by the customer. > > > > > The seacrh options produces an error, eg searching by last name, although there are > > > > > customer details in the database. > > > > > > > > How have you verified this? Is there anything in the cust_main table in > > > > the database? > > > > > > > > > > Yes, definitely. I can actually see the customer details when in mysql. There are also > > > data in the other tables which i added via the web browser. > > > The only browse link that works is the packages (by package number) and via this you can > > > access the customer details, however, i cannot go straight to the customer details either > > > by browse or search. > > > > > > > > > > > Do you get anything in the server's error log? > > > > > > > > > > Nope, not a single error in the error log > > > > > > > > > > > What OS, database, versions, etc., are you using? What method are you > > > > using to run the scripts as the Freeside user (mod_perl, suExec, setuid)? > > > > > > > > > > linux 2.0.3.4, mysql database 3.22.27, freeside 1.2.2, perl 5.00.53. > > > i'm using suEXEC. I also changed the user in the httpd.conf for apache which allowed > > > freeside to run, other wise i get an error regarding the freeside user. > > > > > > > > > > > > > > Are you sure your browser isn't simply caching old results? Have you set > > > > the option to verify documents every time, rather than once per session? > > > > > > > > > > Nope, made sure of that. > > > > > > > > > > > > > > > Another question, is it necessary to setup the sevice definition? > > > > > > > > If you want to offer services (as opposed to offering empty packages), > > > > then yes. > > > > > > > > > > On Tue, Feb 01, 2000 at 12:59:11PM +1100, colinc wrote: > > > > > > > > > > > > > > Anyway, another problem is choosing any of the browse options, I have > > > > > > > customers (manually entered) in the mysql database but it continues to say > > > > > > > that there are no matching customer, same error occurs when i do a search for > > > > > > > a customer that is already in the database. > > > > > > > > > > > > > > Any suggestion would be appreciated, thanks. > > > > > > > > > > > > > > Colin. > > > > > > > > > > > > > > > > > > > -- > > > > > > _ivan > > > > > > > > > > > > > -- > > > > _ivan > > > > -- meow _ivan From colinc at terrigal.net.au Thu Jun 15 17:45:31 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: Username Size Message-ID: <39496B35.F3052D88@terrigal.net.au> Is there a proper procedure to change the maximum size for the username?? I believe the default size is 8 characters, which i think is read from the length in the svc_acct table for username. I've added the 'usernamemax' file in the config and set this to 16, however upon loading the 'Add New Customer' menu the max size of the username field is still set to 8 characters. Same username field size is also displayed in the 'Add SLIP/PPP account' menu Next attempt was to change the field size in mysql for the svc_acct table and hope that the $ulen variable would change to this value, the username field size in svc_acct is now set to 16. Restarted apache, emptied cache etc.. and loaded the same menus as mentioned above but still no change, still restricted to 8 characters. The only way i managed to allow more than 8 characters is to manually edit both the svc_acct.cgi and cust_main.cgi file and set the SIZE and MAXLENGTH field to 16 and comment out $ulen and $ulen2. This works but i'm sure there is a proper way to achieve this, any help would be appreciated. From ivan at 420.am Thu Jun 15 18:00:00 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Username Size In-Reply-To: <39496B35.F3052D88@terrigal.net.au>; from Colin on Fri, Jun 16, 2000 at 12:48:05PM +1200 References: <39496B35.F3052D88@terrigal.net.au> Message-ID: <20000615175958.A32508@cleanwhisker.420.am> On Fri, Jun 16, 2000 at 12:48:05PM +1200, Colin wrote: > Is there a proper procedure to change the maximum size for the > username?? > I believe the default size is 8 characters, which i think is read from > the length in the svc_acct table for username. > I've added the 'usernamemax' file in the config and set this to 16, > however upon loading the 'Add New Customer' menu the max size of the > username field is still set to 8 characters. Same username field size is > also displayed in the 'Add SLIP/PPP account' menu > > Next attempt was to change the field size in mysql for the svc_acct > table and hope that the $ulen variable would change to this value, the > username field size in svc_acct is now set to 16. Restarted apache, > emptied cache etc.. and loaded the same menus as mentioned above but > still no change, still restricted to 8 characters. You're correct, the username length comes from the field size in the svc_acct table. You need to run bin/dbdef-create after you modify the database structure (then restart Apache). The `usernamemax' configuration value *overrides* the field size in the svc_acct table, so you should probably only use it to set the currently acceptable username size to something smaller than the field size. It could cause problems if it was set larger than the field size. > The only way i managed to allow more than 8 characters is to manually > edit both the svc_acct.cgi and cust_main.cgi file and set the SIZE and > MAXLENGTH field to 16 and comment out $ulen and $ulen2. > > This works but i'm sure there is a proper way to achieve this, any help > would be appreciated. > -- meow _ivan From ivan at 420.am Fri Jun 16 01:00:43 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] ICradius In-Reply-To: ; from Kenny Elliott on Thu, Jun 15, 2000 at 11:16:30AM -0500 References: <20000615070904.H20836@cleanwhisker.420.am> Message-ID: <20000616010042.C5986@cleanwhisker.420.am> On Thu, Jun 15, 2000 at 11:16:30AM -0500, Kenny Elliott wrote: > > I'm now working on getting vpopmail (http://www.inter7.com/vpopmail/) > support into freeside. > > Basically I'm looking at copying and modifying the current > useradd/userdel > functionality to ssh to the vpopmail machine and run > vadduser/vdeluser. > > Unless you have a better suggestion. More important than transactional support (useradd/userdel) is batch export, as in svc_acct.export. -- meow _ivan From kenny at neoserve.com Fri Jun 16 07:37:32 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: vpopmail WAS: ICradius In-Reply-To: <20000616010042.C5986@cleanwhisker.420.am> Message-ID: > > > > I'm now working on getting vpopmail > (http://www.inter7.com/vpopmail/) > > support into freeside. > > > > Basically I'm looking at copying and modifying the current > > useradd/userdel > > functionality to ssh to the vpopmail machine and run > > vadduser/vdeluser. > > > > Unless you have a better suggestion. > > More important than transactional support (useradd/userdel) is batch > export, as in svc_acct.export. Yeah I agree but I haven't gotten my head around how the export should work yet so I'm just doing what I can and working up to the bigger stuff. I don't know if you are familiar with vpopmail but just in case here is a short explanation. It works in conjunction with qmail to allow for multiple users and multiple domains all running under one system account (in my case vpopmail). One nice feature is that it allows you to have more than one foo user. i.e. you can have a foo@me.com and a foo@you.com and have them checked by different users. This is done by having people put their full email address as their username when they check their mail via pop. It also supports separate password files or mysql for authentication. When a user is created a user dir with a maildir (it uses qmail preferred maildir format for mail boxes instead of mbox) is created in the appropriate domain directory and the user is added to either the password file for that domain or the mysql database (whichever you are using). utilities also exist to delete a user, create and delete domains, change a users password, and send to send pop bulletins to all users. I know that all this can be easily interfaced with freeside but it is beyond my perl capabilities at the moment. Which brings me to a question. I added in vadduser and vdeluser support into svc_acct.pm and vadduser works perfectly. However, when I cancel a service for someone vdeluser and deluser never gets called. Am I overlooking something obvious? Should I be doing something other than cancel on the service? One more thing. :) Considering that you can have more than one foo user with email accounts in different domains. How would you suggest I go about supporting that in freeside? If there is anything else you like me to work on just let me know... From dev_it_now at yahoo.com Fri Jun 16 08:01:15 2000 From: dev_it_now at yahoo.com (eli spizzichino) Date: Wed Jun 29 06:00:45 2005 Subject: can't locate object method "connect" via package "DBI" Message-ID: <20000616150047.18403.qmail@web5204.mail.yahoo.com> hi all I have this problem: I'm trying to compile my simple script with perlcc filename.pl. , during the compile no errors or warning arrive but when I try to execute the script compiled this is the message: can't locate object method "connect" via package "DBI". I'm using perl 5.005.03 and DBI 1.14 (I also tryed with 1.13) and MySQL under Linux redhat 6.1 Any suggestion and help would be most appreciated is very important for me! __________________________________________________ Do You Yahoo!? Send instant messages with Yahoo! Messenger. http://im.yahoo.com/ From fearingj at earthlink.net Fri Jun 16 08:05:51 2000 From: fearingj at earthlink.net (John Fearing) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] can't locate object method "connect" via package "DBI" References: <20000616150047.18403.qmail@web5204.mail.yahoo.com> Message-ID: <394A4305.CD5F60EF@earthlink.net> Hello Ivan, I deleted the instructions on how to withdraw from the list serve. Could you please send those again? thanks John eli spizzichino wrote: > hi all > I have this problem: > I'm trying to compile my simple script with perlcc > filename.pl. , during the compile no > errors or warning arrive but when I try to execute the > script compiled this is the message: > can't locate object method "connect" via package > "DBI". > I'm using perl 5.005.03 and DBI 1.14 (I also tryed > with 1.13) and MySQL under Linux redhat 6.1 > Any suggestion and help would be most appreciated is > very important for me! > > __________________________________________________ > Do You Yahoo!? > Send instant messages with Yahoo! Messenger. > http://im.yahoo.com/ From turtle at netzon.net Fri Jun 16 11:19:53 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types Message-ID: <394a6f22.6457.0@netzon.net> >No code modifications are necessary to add support for any number of >arbitrary RADIUS attributes. I understand that, but I DONT want the import program to look for a "slipip" line in my radius file, since it seems to insist upon even importing one. It gets mad at me and dumps out before doing anything just because there is an "Invalid slipip" Brian From turtle at netzon.net Fri Jun 16 11:19:57 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types Message-ID: <394a6f21.6451.0@netzon.net> >No code modifications are necessary to add support for any number of >arbitrary RADIUS attributes. I understand that, but I DONT want the import program to look for a "slipip" line in my radius file, since it seems to insist upon even importing one. It gets mad at me and dumps out before doing anything just because there is an "Invalid slipip" Brian From turtle at netzon.net Fri Jun 16 11:26:26 2000 From: turtle at netzon.net (Turtle) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types Message-ID: <394a70ab.649c.0@netzon.net> >> absolutely have to. What, for example, is the keyword "my"? > >perldoc -f my >This is not an appropriate forum for general Perl help. > >> >> Brian McKelvey I'm not asking for perl help, it was a rhetorical question showing you my perl programming limitations :-) Brian From kenny at neoserve.com Fri Jun 16 11:52:14 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: Signup server In-Reply-To: <20000519185020.A26497@cleanwhisker.420.am> Message-ID: Ivan: When I run fs_signup_server I get the following error.. Unrecognized escape \w passed through at /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, line 241. I'm running Perl 5.6.0 Ideas? From pchenry at koyote.com Fri Jun 16 12:11:16 2000 From: pchenry at koyote.com (Daniel Henry) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server References: Message-ID: <001201bfd7c6$3500bb00$0200a8c0@koyote.com> Please tell me where to send a message in order to unsubscribe from this list ... Thanx Daniel ----- Original Message ----- From: "Kenny Elliott" To: Sent: Friday, June 16, 2000 1:52 PM Subject: [freeside] Signup server > > Ivan: > > When I run fs_signup_server I get the following error.. > > Unrecognized escape \w passed through at > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, > line 241. > > I'm running Perl 5.6.0 > > > Ideas? > From fearingj at earthlink.net Fri Jun 16 16:40:57 2000 From: fearingj at earthlink.net (John Fearing) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server References: <001201bfd7c6$3500bb00$0200a8c0@koyote.com> Message-ID: <394ABBB4.7AFE418@earthlink.net> Hello Ivan, Please remove me from your freeside listserve. Thanks John Daniel Henry wrote: > Please tell me where to send a message in order to unsubscribe from this > list ... > > Thanx > > Daniel > ----- Original Message ----- > From: "Kenny Elliott" > To: > Sent: Friday, June 16, 2000 1:52 PM > Subject: [freeside] Signup server > > > > > Ivan: > > > > When I run fs_signup_server I get the following error.. > > > > Unrecognized escape \w passed through at > > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, > > line 241. > > > > I'm running Perl 5.6.0 > > > > > > Ideas? > > From kenny at neoserve.com Sat Jun 17 05:59:03 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server In-Reply-To: <394ABBB4.7AFE418@earthlink.net> Message-ID: ivan-freeside-help@sisd.com > -----Original Message----- > From: John Fearing [mailto:fearingj@earthlink.net] > Sent: Friday, June 16, 2000 6:44 PM > To: ivan-freeside@sisd.com > Subject: Re: [freeside] Signup server > > > Hello Ivan, > > Please remove me from your freeside listserve. > > Thanks > > John > > Daniel Henry wrote: > > > Please tell me where to send a message in order to > unsubscribe from this > > list ... > > > > Thanx > > > > Daniel > > ----- Original Message ----- > > From: "Kenny Elliott" > > To: > > Sent: Friday, June 16, 2000 1:52 PM > > Subject: [freeside] Signup server > > > > > > > > Ivan: > > > > > > When I run fs_signup_server I get the following error.. > > > > > > Unrecognized escape \w passed through at > > > > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, > > > line 241. > > > > > > I'm running Perl 5.6.0 > > > > > > > > > Ideas? > > > > > From admin at joynet.com.au Sat Jun 17 06:56:51 2000 From: admin at joynet.com.au (Joy Net) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server References: Message-ID: <000901bfd863$feffc480$04f025cb@com.au> Hi Ivan, Please do the same for me and remove me from freeside listserver Charles ----- Original Message ----- From: "Kenny Elliott" To: ; Sent: Saturday, 17 June 2000 22:59 Subject: RE: [freeside] Signup server ivan-freeside-help@sisd.com > -----Original Message----- > From: John Fearing [mailto:fearingj@earthlink.net] > Sent: Friday, June 16, 2000 6:44 PM > To: ivan-freeside@sisd.com > Subject: Re: [freeside] Signup server > > > Hello Ivan, > > Please remove me from your freeside listserve. > > Thanks > > John > > Daniel Henry wrote: > > > Please tell me where to send a message in order to > unsubscribe from this > > list ... > > > > Thanx > > > > Daniel > > ----- Original Message ----- > > From: "Kenny Elliott" > > To: > > Sent: Friday, June 16, 2000 1:52 PM > > Subject: [freeside] Signup server > > > > > > > > Ivan: > > > > > > When I run fs_signup_server I get the following error.. > > > > > > Unrecognized escape \w passed through at > > > > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, > > > line 241. > > > > > > I'm running Perl 5.6.0 > > > > > > > > > Ideas? > > > > > From kenny at neoserve.com Sat Jun 17 07:00:32 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server In-Reply-To: <000901bfd863$feffc480$04f025cb@com.au> Message-ID: how about removing yourself? ivan-freeside-help@sisd.com > -----Original Message----- > From: Joy Net [mailto:admin@joynet.com.au] > Sent: Saturday, June 17, 2000 8:58 AM > To: ivan-freeside@sisd.com > Subject: Re: [freeside] Signup server > > > Hi Ivan, > Please do the same for me and remove me from freeside listserver > Charles > ----- Original Message ----- > From: "Kenny Elliott" > To: ; > Sent: Saturday, 17 June 2000 22:59 > Subject: RE: [freeside] Signup server > > > > > ivan-freeside-help@sisd.com > > > -----Original Message----- > > From: John Fearing [mailto:fearingj@earthlink.net] > > Sent: Friday, June 16, 2000 6:44 PM > > To: ivan-freeside@sisd.com > > Subject: Re: [freeside] Signup server > > > > > > Hello Ivan, > > > > Please remove me from your freeside listserve. > > > > Thanks > > > > John > > > > Daniel Henry wrote: > > > > > Please tell me where to send a message in order to > > unsubscribe from this > > > list ... > > > > > > Thanx > > > > > > Daniel > > > ----- Original Message ----- > > > From: "Kenny Elliott" > > > To: > > > Sent: Friday, June 16, 2000 1:52 PM > > > Subject: [freeside] Signup server > > > > > > > > > > > Ivan: > > > > > > > > When I run fs_signup_server I get the following error.. > > > > > > > > Unrecognized escape \w passed through at > > > > > > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm > line 179, > > > > line 241. > > > > > > > > I'm running Perl 5.6.0 > > > > > > > > > > > > Ideas? > > > > > > > > > > > > From ivan at 420.am Sat Jun 17 14:31:41 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Payment types In-Reply-To: <394a6f22.6457.0@netzon.net>; from Turtle on Fri, Jun 16, 2000 at 11:16:36AM -0700 References: <394a6f22.6457.0@netzon.net> Message-ID: <20000617143140.C4050@cleanwhisker.420.am> On Fri, Jun 16, 2000 at 11:16:36AM -0700, Turtle wrote: > >No code modifications are necessary to add support for any number of > >arbitrary RADIUS attributes. > > I understand that, but I DONT want the import program to look for a "slipip" > line in my radius file, since it seems to insist upon even importing one. It > gets mad at me and dumps out before doing anything just because there is an > "Invalid slipip" The `slipip' database field in imported from the RADIUS attribute "Framed-IP-Address". If you have an invalid value for that RADIUS attribute, you will have to fix that before attempting to import your users file. You can also set a fixed slipip in the service definition to override the contents of the users file during import and account addition. -- meow _ivan From ivan at 420.am Sat Jun 17 14:48:09 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Signup server In-Reply-To: ; from Kenny Elliott on Fri, Jun 16, 2000 at 01:52:02PM -0500 References: <20000519185020.A26497@cleanwhisker.420.am> Message-ID: <20000617144808.F4050@cleanwhisker.420.am> Harmless typo; I just checked in a fix to CVS. On Fri, Jun 16, 2000 at 01:52:02PM -0500, Kenny Elliott wrote: > > Ivan: > > When I run fs_signup_server I get the following error.. > > Unrecognized escape \w passed through at > /usr/local/lib/perl5/site_perl/5.6.0/FS/cust_pay_batch.pm line 179, > line 241. > > I'm running Perl 5.6.0 > > > Ideas? > -- meow _ivan From gordon at isl.net.nz Sat Jun 17 15:45:52 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: Demo server & services References: <20000519185020.A26497@cleanwhisker.420.am> <20000617144808.F4050@cleanwhisker.420.am> Message-ID: <008f01bfd8af$5af2c800$0100a8c0@isl> Looks like its down, so I guess I'll ask here. I was hoping to see how Ivan does it on the demo server :-) My question relates to packages and package types. I'm not sure how to split the packages. I would like to set up for PPP users, a series of flat-rate and charge-by-time accounts, virtual domains, etc. Should these be split further? i.e. POP account, domain, PPP services and then grouped as packages? Is svc_acct just for user-related fields? I'm assuming that I should be putting virtual domains in svc_domain. Am I right? Also, what about the radius attributes? Does it make more sense to bring the radius tables in to the freeside database, and work with them from there (ICRADIUS)? Sorry if this seems rather obvious - the service/package defs seem to be tripping me up :-) Cheers, Gordon From gordon at isl.net.nz Sat Jun 17 16:08:10 2000 From: gordon at isl.net.nz (Gordon Smith) Date: Wed Jun 29 06:00:45 2005 Subject: Mod_perl confusion References: <20000519185020.A26497@cleanwhisker.420.am> <20000617144808.F4050@cleanwhisker.420.am> <008f01bfd8af$5af2c800$0100a8c0@isl> Message-ID: <00d601bfd8b2$7c923c40$0100a8c0@isl> For those (like me) that struggled through getting mod_perl to work properly, here are a couple of links that may be helpful. Also note that there seems to be a bug in the M$ Frontpage extensions, which segfaults child processes when mod_perl is enabled. (That'll teach me not to re-compile httpd for testing freeside) http://www.perlmonth.com/features/mod_perl/mod_perl.html?issue=2&id=93222695 6 http://perl.apache.org/guide/index.html http://modperl.sourcegarden.org/fresh/docs.html From colinc at terrigal.net.au Sun Jun 18 16:37:41 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: Email Addresses Message-ID: <394D4FC9.D51DF9E@terrigal.net.au> Hi, Is there a way to list all customer email addresses so that we can send a email (such as monthly bulletin) to all customers that are not cancelled. Eg: Does freeside have the ability to let me send customer emails all our customers, without having to type new usernames into long address lists. Currently we have to take out all the cancelled accounts from these long lists of active customers. All this hand-editing of the lists takes many hours each month, and is very labourious. I know that freeside can hide cancelled customers but how can we gather a list of active customers email addresses. Cheers. From colinc at terrigal.net.au Sun Jun 18 17:32:53 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: Billing Message-ID: <394D5CC5.9B837F27@terrigal.net.au> Hi, Is it possible to restrict all of the billing for customers to the 1st of each month rather than having scattered dates for each customer? Thanks. From kenny at neoserve.com Mon Jun 19 05:21:21 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: Billing Question Message-ID: Ivan: I've noticed that when I "bill now" for a customer an invoice is generated and can be viewed via the payment history section. In the case of a complementary customer a payment is also issued bringing the customers balance to 0. However, when I bill a credit card customer (I'm using cybercash) no invoice or payment is issued in the system. I know that the card is getting charged as I've checked through cybercash and the charge is there. Is this expected behavior or have I set something up wrong? --- Kenny Elliott System Administration / Web Development NeoServe, L.L.C. P: (504) 649-9321 F: (504) 781-6007 From ivan at 420.am Mon Jun 19 05:26:30 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing Question In-Reply-To: ; from Kenny Elliott on Mon, Jun 19, 2000 at 07:21:14AM -0500 References: Message-ID: <20000619052629.F2936@cleanwhisker.420.am> That's very surprising; I'm baffled as to how you would convince the software to issue any sort of charge wihout an invoice. Are you sure you're not getting tripped up by caching in the client web browser? On Mon, Jun 19, 2000 at 07:21:14AM -0500, Kenny Elliott wrote: > Ivan: > > I've noticed that when I "bill now" for a customer an invoice is > generated and can be viewed via the payment history section. In the > case of a complementary customer a payment is also issued bringing the > customers balance to 0. However, when I bill a credit card customer > (I'm using cybercash) no invoice or payment is issued in the system. I > know that the card is getting charged as I've checked through > cybercash and the charge is there. Is this expected behavior or have I > set something up wrong? > > > --- > Kenny Elliott > System Administration / Web Development > NeoServe, L.L.C. > > P: (504) 649-9321 > F: (504) 781-6007 > > -- meow _ivan From ivan at 420.am Mon Jun 19 05:29:32 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing In-Reply-To: <394D5CC5.9B837F27@terrigal.net.au>; from Colin on Mon, Jun 19, 2000 at 12:35:33PM +1200 References: <394D5CC5.9B837F27@terrigal.net.au> Message-ID: <20000619052932.G2936@cleanwhisker.420.am> Currently, only manually, by editing the database. In the short term, there will be support for manually changing the dates. Note that this won't (yet) do pro-rating, though I'd like to support that eventually too. On Mon, Jun 19, 2000 at 12:35:33PM +1200, Colin wrote: > Hi, > > Is it possible to restrict all of the billing for customers to the 1st > of each month rather than having scattered dates for each customer? > > Thanks. > -- meow _ivan From ivan at 420.am Mon Jun 19 05:55:26 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] RE: vpopmail WAS: ICradius In-Reply-To: ; from Kenny Elliott on Fri, Jun 16, 2000 at 09:37:31AM -0500 References: <20000616010042.C5986@cleanwhisker.420.am> Message-ID: <20000619055526.H2936@cleanwhisker.420.am> On Fri, Jun 16, 2000 at 09:37:31AM -0500, Kenny Elliott wrote: > > > > > > I'm now working on getting vpopmail > > (http://www.inter7.com/vpopmail/) > > > support into freeside. > > > > > > Basically I'm looking at copying and modifying the current > > > useradd/userdel > > > functionality to ssh to the vpopmail machine and run > > > vadduser/vdeluser. > > > > > > Unless you have a better suggestion. > > > > More important than transactional support (useradd/userdel) is batch > > export, as in svc_acct.export. > > Yeah I agree but I haven't gotten my head around how the export should > work yet so I'm just doing what I can and working up to the bigger > stuff. > I don't know if you are familiar with vpopmail but just in case here > is > a short explanation. It works in conjunction with qmail to allow for > multiple users and multiple domains all running under one system > account > (in my case vpopmail). One nice feature is that it allows you to have > more than one foo user. i.e. you can have a foo@me.com and a > foo@you.com > and have them checked by different users. This is done by having > people > put their full email address as their username when they check their > mail > via pop. It also supports separate password files or mysql for > authentication. > When a user is created a user dir with a maildir (it uses qmail > preferred maildir > format for mail boxes instead of mbox) is created in the appropriate > domain > directory and the user is added to either the password file for that > domain > or the mysql database (whichever you are using). You probably won't be able to do a correct mapping to this until I've finished the database changes to support multiple domains and hosts properly. Currently usernames cannot be duplicated across domains. > utilities also exist > to > delete a user, create and delete domains, change a users password, and > send > to send pop bulletins to all users. > > I know that all this can be easily interfaced with freeside but it is > beyond > my perl capabilities at the moment. > > Which brings me to a question. I added in vadduser and vdeluser > support into > svc_acct.pm and vadduser works perfectly. However, when I cancel a > service for > someone vdeluser and deluser never gets called. Am I overlooking > something > obvious? Should I be doing something other than cancel on the service? What are you doing, exactly? Calling the cancel method of a FS::svc_acct object? Cancelling an unaudited service via the web interface? Cancelling a package? Where have you put the commands for vadduser and vdeluser in svc_acct.pm? > One more thing. :) Considering that you can have more than one foo > user with email > accounts in different domains. How would you suggest I go about > supporting that > in freeside? I've done some work here, and Cerkit contributed some ideas against an earlier version. I'm pretty sure that what should be done here is: For multiple domain support: - Depriciate the "defaultdomain" configuration file. - Add a field to to the svc_acct table and class that links every svc_acct record to to a svc_domain record - Optionally, do a data conversion to eliminate needless svc_acct_sm records. For proper flexible exporing: - A new table listing machine names (probably just as a link to a svc_domain record for the _fully-qualified_ domain name of the machine) - A table linking machine names to one or more domains This way, for example, you could have two machines, mail.domain.tld and mail2.domain.tld. mail and mail2 would both pull unique entries from svc_acct for their system accounts, and also the same set of user accounts. (Duplicate username check gets a little bit more complicated...) > If there is anything else you like me to work on just let me know... If you've got the time, sure! Have a look at the TODO and feel free to bring it up before digging into code so you don't get tripped up - for example, I'm currently rewriting the web interface with propler templating, so it's probably best to work with that rather than the current CGIs for any big changes to the web interface. -- meow _ivan From kenny at neoserve.com Mon Jun 19 06:11:33 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing Question In-Reply-To: <20000619052629.F2936@cleanwhisker.420.am> Message-ID: You're right.. The page was cached... Silly me.. suppose I should have more coffee before tiring anything else :) I did not have to reload the page before though..... crazy browser... > -----Original Message----- > From: ivan [mailto:ivan@420.am] > Sent: Monday, June 19, 2000 7:26 AM > To: ivan-freeside@sisd.com > Subject: Re: [freeside] Billing Question > > > That's very surprising; I'm baffled as to how you would convince the > software to issue any sort of charge wihout an invoice. > Are you sure > you're not getting tripped up by caching in the client web browser? > > On Mon, Jun 19, 2000 at 07:21:14AM -0500, Kenny Elliott wrote: > > Ivan: > > > > I've noticed that when I "bill now" for a customer an invoice is > > generated and can be viewed via the payment history > section. In the > > case of a complementary customer a payment is also issued > bringing the > > customers balance to 0. However, when I bill a credit > card customer > > (I'm using cybercash) no invoice or payment is issued in > the system. I > > know that the card is getting charged as I've checked through > > cybercash and the charge is there. Is this expected > behavior or have I > > set something up wrong? > > > > > > --- > > Kenny Elliott > > System Administration / Web Development > > NeoServe, L.L.C. > > > > P: (504) 649-9321 > > F: (504) 781-6007 > > > > > > -- > meow > _ivan > From jeff at cmh.net Mon Jun 19 06:27:05 2000 From: jeff at cmh.net (Jeff Finucane) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing In-Reply-To: <20000619052932.G2936@cleanwhisker.420.am> from "ivan" at Jun 19, 2000 05:29:32 AM Message-ID: ivan wrote: +---------- | Date: Mon, 19 Jun 2000 05:29:32 -0700 | From: ivan | To: ivan-freeside@sisd.com | Message-ID: <20000619052932.G2936@cleanwhisker.420.am> | References: <394D5CC5.9B837F27@terrigal.net.au> | In-Reply-To: <394D5CC5.9B837F27@terrigal.net.au>; from Colin on Mon, Jun 19, 2000 at 12:35:33PM +1200 | Subject: Re: [freeside] Billing | | Currently, only manually, by editing the database. | | In the short term, there will be support for manually changing the | dates. Note that this won't (yet) do pro-rating, though I'd like to | support that eventually too. | | On Mon, Jun 19, 2000 at 12:35:33PM +1200, Colin wrote: | > | > Is it possible to restrict all of the billing for customers to the 1st | > of each month rather than having scattered dates for each customer? | > +---------- Just a quick note about the patch I sent. Since it relies upon Date::Manip it suffers from a horrid daylight savings time issue, just as Date::Manip does. In short, it's unreliable. I quickly switched to GNU sh-utils date as a replacement, but I'm not certain that the call is completely safe. Of course that patch was also for all packages on a customer, and only available when no dates had yet been set (for the customer). It would appear that you wisely did not inject the patch to the CVS. I'll forward a better one as soon as it exists. Jeff -- jeff@cmh.net "There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him." Professor Bernardo de le Paz [ R.A. Heinlein -- "The Moon is a Harsh Mistress" ] From colinc at terrigal.net.au Mon Jun 19 21:36:56 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: Email Addresses Message-ID: <394EE758.8A32F68B@terrigal.net.au> Hi, Is there a way to list all customer email addresses so that we can send a email (such as monthly bulletin) to all customers that are not cancelled. Eg: Does freeside have the ability to let me send customer emails all our customers, without having to type new usernames into long address lists. Currently we have to take out all the cancelled accounts from these long lists of active customers. All this hand-editing of the lists takes many hours each month, and is very labourious. I know that freeside can hide cancelled customers but how can we gather a list of active customers email addresses or at least the customer usernames. Is this possible? Cheers. From colinc at terrigal.net.au Mon Jun 19 22:26:53 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:45 2005 Subject: Email Invoice?? Message-ID: <394EF314.B6ACD72@terrigal.net.au> Hi, Just wondering in which field and table are the Email Invoice addresses stored in mysql? I've entered the invoice email address whilst adding a new customer, but cannot find any references to that data in the mysql database when looking through it manually. I would like to be able to change and add the details manually through mysql. Just by looking at the cust_main.cgi file, it seems to store it under invoice_list, i cannot see this anywhere in the database :-( Thanks. From ivan at 420.am Tue Jun 20 00:13:59 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Email Invoice?? In-Reply-To: <394EF314.B6ACD72@terrigal.net.au>; from Colin on Tue, Jun 20, 2000 at 05:29:09PM +1200 References: <394EF314.B6ACD72@terrigal.net.au> Message-ID: <20000620001358.A10744@cleanwhisker.420.am> man FS::cust_main_invoice or lynx htdocs/docs/man/FS/cust_main_invoice.html On Tue, Jun 20, 2000 at 05:29:09PM +1200, Colin wrote: > Hi, > > Just wondering in which field and table are the Email Invoice addresses > stored in mysql? > I've entered the invoice email address whilst adding a new customer, but > cannot find any references to that data in the mysql database when > looking through it manually. I would like to be able to change and add > the details manually through mysql. > > Just by looking at the cust_main.cgi file, it seems to store it under > invoice_list, i cannot see this anywhere in the database :-( > > Thanks. > -- meow _ivan From ivan at 420.am Tue Jun 20 00:16:01 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Email Addresses In-Reply-To: <394D4FC9.D51DF9E@terrigal.net.au>; from Colin on Mon, Jun 19, 2000 at 11:40:09AM +1200 References: <394D4FC9.D51DF9E@terrigal.net.au> Message-ID: <20000620001600.C10744@cleanwhisker.420.am> $ mysql --user=freeside -p freeside mysql> select username from svc_acct; On Mon, Jun 19, 2000 at 11:40:09AM +1200, Colin wrote: > Hi, > > Is there a way to list all customer email addresses so that we can send > a email (such as monthly bulletin) to all customers that are not > cancelled. > > Eg: Does freeside have the ability to let me send customer emails all > our customers, without having to type new usernames into long address > lists. Currently we have to take out all the cancelled accounts from > these long lists of active customers. All this > hand-editing of the lists takes many hours each month, and is very > labourious. > > I know that freeside can hide cancelled customers but how can we gather > a list of > active customers email addresses. > > Cheers. > -- meow _ivan From ivan at 420.am Tue Jun 20 00:43:01 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:45 2005 Subject: [freeside] Billing In-Reply-To: ; from Jeff Finucane on Mon, Jun 19, 2000 at 09:27:02AM -0400 References: <20000619052932.G2936@cleanwhisker.420.am> Message-ID: <20000620004300.A11527@cleanwhisker.420.am> On Mon, Jun 19, 2000 at 09:27:02AM -0400, Jeff Finucane wrote: > > ivan wrote: > > +---------- > | Date: Mon, 19 Jun 2000 05:29:32 -0700 > | From: ivan > | To: ivan-freeside@sisd.com > | Message-ID: <20000619052932.G2936@cleanwhisker.420.am> > | References: <394D5CC5.9B837F27@terrigal.net.au> > | In-Reply-To: <394D5CC5.9B837F27@terrigal.net.au>; from Colin on Mon, Jun 19, 2000 at 12:35:33PM +1200 > | Subject: Re: [freeside] Billing > | > | Currently, only manually, by editing the database. > | > | In the short term, there will be support for manually changing the > | dates. Note that this won't (yet) do pro-rating, though I'd like to > | support that eventually too. > | > | On Mon, Jun 19, 2000 at 12:35:33PM +1200, Colin wrote: > | > > | > Is it possible to restrict all of the billing for customers to the 1st > | > of each month rather than having scattered dates for each customer? > | > > +---------- > > > Just a quick note about the patch I sent. Since it relies upon > Date::Manip it suffers from a horrid daylight savings time issue, just > as Date::Manip does. In short, it's unreliable. Can you elaborate a bit? I've looked at Date::Manip and liked the available functions, though I suppose an overloaded object would be a nicer interface. I had been planning on using it for quite a few things. If you're just looking to parse a user-entered date, try Date::Parse. > I quickly switched to GNU sh-utils date as a replacement, but I'm not > certain that the call is completely safe. I'd also like to avoid shelling out if at all possible. > Of course that patch was also for all packages on a > customer, and only available when no dates had yet been set (for the customer). > > It would appear that you wisely did not inject the patch to the CVS. > I'll forward a better one as soon as it exists. -- meow _ivan From ivan at 420.am Tue Jun 20 01:08:35 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Demo server & services In-Reply-To: <008f01bfd8af$5af2c800$0100a8c0@isl>; from Gordon Smith on Sun, Jun 18, 2000 at 10:57:02AM +1200 References: <20000519185020.A26497@cleanwhisker.420.am> <20000617144808.F4050@cleanwhisker.420.am> <008f01bfd8af$5af2c800$0100a8c0@isl> Message-ID: <20000620010834.A12123@cleanwhisker.420.am> On Sun, Jun 18, 2000 at 10:57:02AM +1200, Gordon Smith wrote: > Looks like its down, so I guess I'll ask here. I was hoping to see how Ivan > does it on the demo server :-) Sorry about that; it was back up the next day. > My question relates to packages and package types. I'm not sure how to split > the packages. I would like to set up for PPP users, a series of flat-rate > and charge-by-time accounts, virtual domains, etc. Should these be split > further? i.e. POP account, domain, PPP services and then grouped as > packages? There's no need for separate services for the dialup and mail accounts; doing so would prevent users from having the same username for dialup and email. > Is svc_acct just for user-related fields? Yes. > I'm assuming that I > should be putting virtual domains in svc_domain. Am I right? Yes. > Also, what about the radius attributes? Does it make more sense to bring the > radius tables in to the freeside database, and work with them from there > (ICRADIUS)? Yes. -- meow _ivan From jeff at cmh.net Tue Jun 20 06:44:04 2000 From: jeff at cmh.net (Jeff Finucane) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing In-Reply-To: <20000620004300.A11527@cleanwhisker.420.am> from "ivan" at Jun 20, 2000 12:43:00 AM Message-ID: ivan wrote on Tue, 20 Jun 2000 00:43:00 -0700.... +---------- | Message-ID: <20000620004300.A11527@cleanwhisker.420.am> | References: <20000619052932.G2936@cleanwhisker.420.am> | In-Reply-To: ; from Jeff Finucane on Mon, Jun 19, 2000 at 09:27:02AM -0400 | Subject: Re: [freeside] Billing | | On Mon, Jun 19, 2000 at 09:27:02AM -0400, Jeff Finucane wrote: | > | > Just a quick note about the patch I sent. Since it relies upon | > Date::Manip it suffers from a horrid daylight savings time issue, just | > as Date::Manip does. In short, it's unreliable. | | Can you elaborate a bit? I've looked at Date::Manip and liked the | available functions, though I suppose an overloaded object would be a | nicer interface. I had been planning on using it for quite a few things. +---------- The problem appears to be that Date::Manip is unaware of the fact that many locations have two time zones. When it parses times falling on the far side of a daylight savings time shift it can return values which are wrong by an hour. I was using the UnixDate routine with a format of "%s" to return times suited for storage in the Freeside database. Since the entered data tended to include only a day, UnixDate was returning times at 11pm on the previous day for winter dates. +---------- | If you're just looking to parse a user-entered date, try Date::Parse. +---------- Thanks. I was just being lazier than permitted :) Jeff -- jeff@cmh.net "There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him." Professor Bernardo de le Paz [ R.A. Heinlein -- "The Moon is a Harsh Mistress" ] From colinc at terrigal.net.au Tue Jun 20 20:10:56 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:46 2005 Subject: Billing + Freeside Bill Script Message-ID: <395024D0.674EF3C4@terrigal.net.au> Hello, sorry for being a nusiance. I have a question regarding the billing of customers. Currently we bill all customers at the beginning of each month, so this means that the customer should receive an invoice several days before the beginning of the next month. It seems as though freeside does not allow customers to be bill before the date of the next bill. Eg, Clicking on 'Bill Now' does not create an invoice as the date for next bill is 01 July 2000. We also liked to bill every single customer at the same time, it seems as though this can be acheived by using the freeside-bill script in /bin. Again, does not seem to bill customers until the next bill date is matched, even if i specify the date in the command line. When running this script, also receive errors regarding the card number - Billing customer #1025 Error collecting customer #1025:Error adding to cust_pay_batch: Illegal or empty (numeric) cardnum: 1234 1234 1234 1 at /usr/bin/freeside-bill line 65. Not quite sure what this means, but the cust_pay_batch table in mysql does not contain any data for any of the customers, even for those that had no error during the script. I also noticed when viewing the cust_bill table in mysql, some of the invoices are print 1 while other have 0 in the field. I don't have a printer hooked up yet, but does this mean that the invoices are printed each time you run the freeside-bill script, but it won't explain why some print while other don't. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://420.am/pipermail/freeside-users/attachments/20000621/6449a673/attachment.html From amadei at dandy.net Wed Jun 21 19:52:25 2000 From: amadei at dandy.net (Stephen Amadei) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Stuck on a hashref and mod_perl In-Reply-To: <00d601bfd8b2$7c923c40$0100a8c0@isl> Message-ID: I have been very unsuccessful trying to lowercase my column names returned from a fetchrow_hashref. As some of you may remember, I am trying to hack Freeside to work on DB2... as I get time, as least. One thing, is the DB2 returns the columns in the hashref as uppercase, and DB2 doesn't return a number of rows from $sth->execute... so I modified the qsearch and new methods to get around these shortcomings, but apparently this upsets the 'majik' holding the PERL together, and I get a "Can't call method "hashref" on an undefined value at d:/apache/htdocs/freeside/browse/svc_acct_pop.pl line 65" I think I understand the error... but I don't understand why my valid hash in "new" doesn't come out in line 65 or svc_acct_pop.pl: my($hashref)=$svc_acct_pl->hashref; I have spent an embarressingly long amount of time on this... ;-) BTW, I haven't gotten to the point where persisiant DB connections are needed, but I am a little confused as to exactly what I will need... I have Apache 1.3.12 with SSL and PHP4, and my PERL is up to date 5.005 with the Apache_DBI needed for the persistant connections... do I still need mod_PERL, or can PHP4 handle the persisant connections? Thanx in advance. ----Steve Stephen Amadei Dandy.net CTO Atlantic City, NJ From ivan at 420.am Thu Jun 22 03:41:42 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Stuck on a hashref and mod_perl In-Reply-To: ; from Stephen Amadei on Wed, Jun 21, 2000 at 10:52:24PM -0400 References: <00d601bfd8b2$7c923c40$0100a8c0@isl> Message-ID: <20000622034140.A882@cleanwhisker.420.am> On Wed, Jun 21, 2000 at 10:52:24PM -0400, Stephen Amadei wrote: > > I have been very unsuccessful trying to lowercase my column names > returned from a fetchrow_hashref. As some of you may remember, I am > trying to hack Freeside to work on DB2... as I get time, as least. Now that it's there, we should probably move this over to the devel list. > One thing, is the DB2 returns the columns in the hashref as uppercase, > and DB2 doesn't return a number of rows from $sth->execute... so > I modified the qsearch and new methods to get around these shortcomings, Yes, you're not supposed to count on that behaviour. It's in the TODO: Portability: in FS::Record, $sth->execute does not return a number of rows for all DBD's. see man DBI So I'd be interested getting a copy of those changes if you can isolate them. > but apparently this upsets the 'majik' holding the PERL together, and I > get a > "Can't call method "hashref" on an undefined value at > d:/apache/htdocs/freeside/browse/svc_acct_pop.pl line 65" > I think I understand the error... but I don't understand why my valid > hash in "new" doesn't come out in line 65 or svc_acct_pop.pl: > my($hashref)=$svc_acct_pl->hashref; I'm assuming you've changed htdocs/browse/svc_acct_pop.cgi to svc_acct_pop.pl; seems like you've got that working fine. I'm confused as to why you've also changed it in that line; here's the relevant section of code: foreach $svc_acct_pop ( sort { $a->getfield('popnum') <=> $b->getfield('popnum') } qsearch('svc_acct_pop',{}) ) { my($hashref)=$svc_acct_pop->hashref; $svc_acct_pop in the last line references the $svc_acct_pop in the foreach statement. One possibility is that since you've changed it to $svc_acct_pl, that variable is automatically created when referenced with the undefined value. This is the sort of trap that `use strict;' is supposed to avoid (see `perldoc strict') - have you removed it? Another possibility is that your modifications have caused the qsearch() call to return one or more undefined values (since it's called in list context, it returns a list). > I have spent an embarressingly long amount of time on this... ;-) > > BTW, I haven't gotten to the point where persisiant DB connections > are needed, but I am a little confused as to exactly what I will need... > I have Apache 1.3.12 with SSL and PHP4, and my PERL is up to date 5.005 > with the Apache_DBI needed for the persistant connections... do I still > need mod_PERL, or can PHP4 handle the persisant connections? Yes, you need to use mod_perl and Apache::DBI for persistant database connections. PHP4 may be able to handle persistant database connections within the context of PHP, but that wouldn't affect things running under mod_perl. -- meow _ivan From ivan at 420.am Thu Jun 22 03:59:25 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script In-Reply-To: <395024D0.674EF3C4@terrigal.net.au>; from Colin on Wed, Jun 21, 2000 at 03:13:36PM +1200 References: <395024D0.674EF3C4@terrigal.net.au> Message-ID: <20000622035925.B882@cleanwhisker.420.am> On Wed, Jun 21, 2000 at 03:13:36PM +1200, Colin wrote: > Hello, sorry for being a nusiance. > > I have a question regarding the billing of customers. Currently we bill > all customers at the beginning of each month, so this means that the > customer should receive an invoice several days before the beginning of > the next month. It seems as though freeside does not allow customers to > be bill before the date of the next bill. > Eg, Clicking on 'Bill Now' does not create an invoice as the date for > next bill is 01 July 2000. > We also liked to bill every single customer at the same time, it seems > as though this can be acheived by using the freeside-bill script in > /bin. Again, does not seem to bill customers until the next bill date is > matched, even if i specify the date in the command line. You can use the -d option of freeside-bill to run billing as if it's a different date. As per my previous message, Freeside does not currently support pro-rating or 1st-of-the-month billing, only anniversery billing. > When running > this script, also receive errors regarding the card number - > > Billing customer #1025 > Error collecting customer #1025:Error adding to cust_pay_batch: Illegal > or empty > (numeric) cardnum: 1234 1234 1234 1 at /usr/bin/freeside-bill line 65. `1234 1234 1234 1' is not a valid card number and could not have been added to the database using the Freeside web interface or Perl API, which strips all non-numeric characters from credit card numbers before storing them in the database. If you're going to modify the database manually and put illegal values in the database, you shouldn't be surprised when you get errors. > Not quite sure what this means, but the cust_pay_batch table in mysql > does not contain any data for any of the customers, even for those that > had no error during the script. You probably don't have any customers with legal credit card numbers in the database. > I also noticed when viewing the cust_bill table in mysql, some of the > invoices are print 1 while other have 0 in the field. I don't have a > printer hooked up yet, but does this mean that the invoices are printed > each time you run the freeside-bill script, but it won't explain why > some print while other don't. I can't parse this sentence. -- meow _ivan From amadei at dandy.net Thu Jun 22 15:05:12 2000 From: amadei at dandy.net (Stephen Amadei) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Stuck on a hashref and mod_perl In-Reply-To: <20000622034140.A882@cleanwhisker.420.am> Message-ID: On Thu, 22 Jun 2000, ivan wrote: > Now that it's there, we should probably move this over to the devel list. That's right... I completely forgot about the devel list. I am subbed to the devel list, but I cannot remember the address. Sorry... > So I'd be interested getting a copy of those changes if you can isolate > them. Oh... O.K... I'll clean then up and post them. > > but apparently this upsets the 'majik' holding the PERL together, and I > > get a > > "Can't call method "hashref" on an undefined value at > > d:/apache/htdocs/freeside/browse/svc_acct_pop.pl line 65" > > I think I understand the error... but I don't understand why my valid > > hash in "new" doesn't come out in line 65 or svc_acct_pop.pl: > > my($hashref)=$svc_acct_pl->hashref; > > I'm assuming you've changed htdocs/browse/svc_acct_pop.cgi to > svc_acct_pop.pl; seems like you've got that working fine. I'm confused as > to why you've also changed it in that line; here's the relevant section of > code: Yes, I was originally using Lotus Go Domino Web Server for OS/2, but since it is a end-of-life product, I installed Apache/2 1.3.12. Lotus didn't care for the .cgi extensions, but now that I am on Apache again, I'll be changing them all back to .cgi... > foreach $svc_acct_pop ( sort { > $a->getfield('popnum') <=> $b->getfield('popnum') > } qsearch('svc_acct_pop',{}) ) { > my($hashref)=$svc_acct_pop->hashref; > > $svc_acct_pop in the last line references the $svc_acct_pop in the foreach > statement. > > One possibility is that since you've changed it to $svc_acct_pl, that > variable is automatically created when referenced with the undefined > value. This is the sort of trap that `use strict;' is supposed to avoid > (see `perldoc strict') - have you removed it? Sorry, my idiocy got me twice in this email... svc_acct_pl is a typo. The foreach block above is exactly as mine stands... it's the my(hashref) line that complains. > Another possibility is that your modifications have caused the qsearch() > call to return one or more undefined values (since it's called in list > context, it returns a list). Ahhhh.... I did leave the return correctly in the new, but I wasn't so careful in the qsearch... I'll check that again. > Yes, you need to use mod_perl and Apache::DBI for persistant database > connections. PHP4 may be able to handle persistant database connections > within the context of PHP, but that wouldn't affect things running under > mod_perl. Bummer... compiling Mod_PERL makes compiling Apache with SSL and PHP4 look like a cakewalk. ;-) ----Steve Stephen Amadei Dandy.net CTO Atlantic City, NJ From ivan at 420.am Thu Jun 22 16:30:07 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Stuck on a hashref and mod_perl In-Reply-To: ; from Stephen Amadei on Thu, Jun 22, 2000 at 06:05:13PM -0400 References: <20000622034140.A882@cleanwhisker.420.am> Message-ID: <20000622163007.A4774@cleanwhisker.420.am> On Thu, Jun 22, 2000 at 06:05:13PM -0400, Stephen Amadei wrote: > On Thu, 22 Jun 2000, ivan wrote: > > > Now that it's there, we should probably move this over to the devel list. > > That's right... I completely forgot about the devel list. I am subbed to > the devel list, but I cannot remember the address. Sorry... To post: ivan-freeside-devel@sisd.com To subscribe: ivan-freeside-devel-subscribe@sisd.com -- meow _ivan From colinc at terrigal.net.au Thu Jun 22 16:45:20 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> Message-ID: <3952A5AD.64EE586C@terrigal.net.au> > > When running > > this script, also receive errors regarding the card number - > > > > Billing customer #1025 > > Error collecting customer #1025:Error adding to cust_pay_batch: Illegal > > or empty > > (numeric) cardnum: 1234 1234 1234 1 at /usr/bin/freeside-bill line 65. > > `1234 1234 1234 1' is not a valid card number and could not have been > added to the database using the Freeside web interface or Perl API, which > strips all non-numeric characters from credit card numbers before storing > them in the database. > If you're going to modify the database manually and put illegal values in > the database, you shouldn't be surprised when you get errors. Didn't know we had to enter the credit card numbers through the database :( > > > Not quite sure what this means, but the cust_pay_batch table in mysql > > does not contain any data for any of the customers, even for those that > > had no error during the script. > > You probably don't have any customers with legal credit card numbers in > the database. Yes, we have manually entered all the customer details into mysql including credit card numbers as we had to transfer the data from Access 97. They are all legal numbers, i've simply change the number in the above example for privacy reasons. Is there any way to strip the non characters from the number whilst they have already been entered in the database? It's a bit tedious having to go through and reenter them in via the web interface. > > > I also noticed when viewing the cust_bill table in mysql, some of the > > invoices are print 1 while other have 0 in the field. I don't have a > > printer hooked up yet, but does this mean that the invoices are printed > > each time you run the freeside-bill script, but it won't explain why > > some print while other don't. > > I can't parse this sentence. The cust_bill table keeps a record of how many times an invoice is printed, what i'm trying to say is that after running the billing script only some of the invoices seems to be updated to 1 while others are not. Does the billing script also print the invoices to the printer when it is run? Thanks. From ivan at 420.am Thu Jun 22 17:22:07 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script In-Reply-To: <3952A5AD.64EE586C@terrigal.net.au>; from Colin on Fri, Jun 23, 2000 at 09:47:58AM +1000 References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <3952A5AD.64EE586C@terrigal.net.au> Message-ID: <20000622172207.C5102@cleanwhisker.420.am> On Fri, Jun 23, 2000 at 09:47:58AM +1000, Colin wrote: > > > When running > > > this script, also receive errors regarding the card number - > > > > > > Billing customer #1025 > > > Error collecting customer #1025:Error adding to cust_pay_batch: Illegal > > > or empty > > > (numeric) cardnum: 1234 1234 1234 1 at /usr/bin/freeside-bill line 65. > > > > `1234 1234 1234 1' is not a valid card number and could not have been > > added to the database using the Freeside web interface or Perl API, which > > strips all non-numeric characters from credit card numbers before storing > > them in the database. > > > If you're going to modify the database manually and put illegal values in > > the database, you shouldn't be surprised when you get errors. > > Didn't know we had to enter the credit card numbers through the database :( You shouldn't enter them into the database directly, you should use the web interface, or the documented Perl API. The documentation on `Importing Legacy data', htdocs/docs/legacy.html, refers you to eg/TEMPLATE_cust_main.import as an example program to do this. You will also probably want to see the manpage for FS::cust_main and any other tables to which you wish to import data. > > > Not quite sure what this means, but the cust_pay_batch table in mysql > > > does not contain any data for any of the customers, even for those that > > > had no error during the script. > > > > You probably don't have any customers with legal credit card numbers in > > the database. > > Yes, we have manually entered all the customer details into mysql including > credit card numbers > as we had to transfer the data from Access 97. They are all legal numbers, > i've simply change the > number in the above example for privacy reasons. > > Is there any way to strip the non characters from the number whilst they have > already been entered > in the database? Sure, but you'll have to write it yourself. > It's a bit tedious having to go through and reenter them in > via the web interface. You should re-import your data using the perl API, not directly into the database. > > > I also noticed when viewing the cust_bill table in mysql, some of the > > > invoices are print 1 while other have 0 in the field. I don't have a > > > printer hooked up yet, but does this mean that the invoices are printed > > > each time you run the freeside-bill script, but it won't explain why > > > some print while other don't. > > > > I can't parse this sentence. > > The cust_bill table keeps a record of how many times an invoice is printed, > what i'm trying to say > is that after running the billing script only some of the invoices seems to be > updated to 1 while others > are not. > Does the billing script also print the invoices to the printer when it is run? The billing script pipes invoices to the program defined in the `lpr' configuration file, as documented in htdocs/docs/config.html. -- meow _ivan From tus at pemail.net Fri Jun 23 11:49:53 2000 From: tus at pemail.net (tus) Date: Wed Jun 29 06:00:46 2005 Subject: bill -i ? bill -c ? References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> Message-ID: <002301bfdd37$05cca260$0278583f@me.com> Hello there, I want to know how exactly does freeside does billing with credit card customers with bill -i. Does it charges them as if "pressing bill now" on the webpage in real time ? Also i noticed that you recommend bill -c then -i .. why is that ? if -i is interactive mode, it should be better than batch uploads where as it just uploads teh batch, not knowing if it went thru or not. In the interactive mode, if it won't go thru, it won't appear as charged..?!? Thanks Tony From ivan at 420.am Fri Jun 23 15:48:06 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] bill -i ? bill -c ? In-Reply-To: <002301bfdd37$05cca260$0278583f@me.com>; from tus on Fri, Jun 23, 2000 at 01:18:16PM -0400 References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <002301bfdd37$05cca260$0278583f@me.com> Message-ID: <20000623154804.A11610@cleanwhisker.420.am> On Fri, Jun 23, 2000 at 01:18:16PM -0400, tus wrote: > Hello there, > > I want to know how exactly does freeside does billing with credit card > customers with bill -i. Does it charges them as if "pressing bill now" on > the webpage in real time ? `freeside-bill -c -i custnum' is equivalent to the `Bill now' link. > Also i noticed that you recommend bill -c then -i .. why is that ? Umm, I suggest `freeside-bill -c'; no reason to run transactions real-time if you're billing a batch. Read the manpage for freeside-bill and htdocs/docs/billing.html > if -i is interactive mode, It isn't. I don't know where you got this idea, but I suggest you RTFM. -i is for real-time billing (as opposed to batch billing). only relevant for credit cards > it should be better than batch uploads where as it just > uploads teh batch, not knowing if it went thru or not. In the interactive > mode, if it won't go thru, it won't appear as charged..?!? Kindly state your questions in some sort of readable English if you'd like a response. -- meow _ivan From tus at pemail.net Fri Jun 23 17:08:26 2000 From: tus at pemail.net (tus) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] bill -i ? bill -c ? References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <002301bfdd37$05cca260$0278583f@me.com> <20000623154804.A11610@cleanwhisker.420.am> Message-ID: <001b01bfdd64$791a5460$0278583f@me.com> ok. I guess i should have made the question simple. ./freeside-bill "my" variable $days masks earlier declaration in same statement at /usr/local/lib/perl5/site_perl/5.005/Date/Manip.pm line 1103. "my" variable $sign masks earlier declaration in same statement at /usr/local/lib/perl5/site_perl/5.005/Date/Manip.pm line 2145. Usage: bill [ -c [ i ] ] [ -d 'date' ] [ -b ] user why do i get that error ? From ivan at 420.am Fri Jun 23 17:27:42 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] bill -i ? bill -c ? In-Reply-To: <001b01bfdd64$791a5460$0278583f@me.com>; from tus on Fri, Jun 23, 2000 at 06:43:37PM -0400 References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <002301bfdd37$05cca260$0278583f@me.com> <20000623154804.A11610@cleanwhisker.420.am> <001b01bfdd64$791a5460$0278583f@me.com> Message-ID: <20000623172741.A12302@cleanwhisker.420.am> On Fri, Jun 23, 2000 at 06:43:37PM -0400, tus wrote: > ok. > > I guess i should have made the question simple. > > ./freeside-bill > "my" variable $days masks earlier declaration in same statement at > /usr/local/lib/perl5/site_perl/5.005/Date/Manip.pm line 1103. > "my" variable $sign masks earlier declaration in same statement at > /usr/local/lib/perl5/site_perl/5.005/Date/Manip.pm line 2145. > Usage: > > bill [ -c [ i ] ] [ -d 'date' ] [ -b ] user > > > why do i get that error ? Date::Manip is not currently used by any release or development version of Freeside, although it is (superfluously) included in cust_main.pm. You get that *warning* (not error) because of problems with Date::Manip, which is another reason to avoid using it, I suppose. You can safely ignore those warnings. As the usage statement says, you need to suppily a username to run the `freeside-bill' program. -- meow _ivan From colinc at terrigal.net.au Mon Jun 26 16:46:55 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> Message-ID: <3957EC0E.F85B7570@terrigal.net.au> ivan wrote: > On Wed, Jun 21, 2000 at 03:13:36PM +1200, Colin wrote: > > Hello, sorry for being a nusiance. > > > > I have a question regarding the billing of customers. Currently we bill > > all customers at the beginning of each month, so this means that the > > customer should receive an invoice several days before the beginning of > > the next month. It seems as though freeside does not allow customers to > > be bill before the date of the next bill. > > Eg, Clicking on 'Bill Now' does not create an invoice as the date for > > next bill is 01 July 2000. > > We also liked to bill every single customer at the same time, it seems > > as though this can be acheived by using the freeside-bill script in > > /bin. Again, does not seem to bill customers until the next bill date is > > matched, even if i specify the date in the command line. > > You can use the -d option of freeside-bill to run billing as if it's a > different date. As per my previous message, Freeside does not currently > support pro-rating or 1st-of-the-month billing, only anniversery billing. I think you may have misinterpreted my question, we do not wish to implement pro-rating billing. We would like 1st of the month but we can simply changed all packages to the 1st of the month manually to do this so that anniversary billing is used. My question is whether we can bill/print the invoice before the actual billing date. Eg: If the next billing date is 07/01/2000, can we print the invoice prior to this date, say 06/26/2000, so that the customers can receive the invoice before the billing date. At the moment it seems as though no customers get billed even if i specify the date prior to the billing date when running the billing script. It runs the script as though it is billing the customers but nothing is entered in mysql, i've checked all the tables. It'll only add the data if the date i specify is after the billing date, as in the above example 07/02/2000 works fine. From ivan at 420.am Mon Jun 26 16:59:53 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script In-Reply-To: <3957EC0E.F85B7570@terrigal.net.au>; from Colin on Tue, Jun 27, 2000 at 09:49:34AM +1000 References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <3957EC0E.F85B7570@terrigal.net.au> Message-ID: <20000626165953.A30509@cleanwhisker.420.am> On Tue, Jun 27, 2000 at 09:49:34AM +1000, Colin wrote: > > > ivan wrote: > > > On Wed, Jun 21, 2000 at 03:13:36PM +1200, Colin wrote: > > > Hello, sorry for being a nusiance. > > > > > > I have a question regarding the billing of customers. Currently we bill > > > all customers at the beginning of each month, so this means that the > > > customer should receive an invoice several days before the beginning of > > > the next month. It seems as though freeside does not allow customers to > > > be bill before the date of the next bill. > > > Eg, Clicking on 'Bill Now' does not create an invoice as the date for > > > next bill is 01 July 2000. > > > We also liked to bill every single customer at the same time, it seems > > > as though this can be acheived by using the freeside-bill script in > > > /bin. Again, does not seem to bill customers until the next bill date is > > > matched, even if i specify the date in the command line. > > > > You can use the -d option of freeside-bill to run billing as if it's a > > different date. As per my previous message, Freeside does not currently > > support pro-rating or 1st-of-the-month billing, only anniversery billing. > > I think you may have misinterpreted my question, we do not wish to implement > pro-rating billing. > We would like 1st of the month but we can simply changed all packages to the > 1st of the month manually to do this so that anniversary billing is used. > > My question is whether we can bill/print the invoice before the actual billing > date. > Eg: If the next billing date is 07/01/2000, can we print the invoice prior to > this date, say 06/26/2000, so that the customers can receive the invoice > before the billing date. Again, you can use the -d option of freeside-bill to run billing as if it's a different date. > At the moment it seems as though no customers get billed even if i specify the > date prior to the billing date when running the billing script. It runs the > script as though it is billing the customers but nothing is entered in mysql, > i've checked all the tables. > It'll only add the data if the date i specify is after the billing date, as in > the above example 07/02/2000 works fine. What's the question then? -- meow _ivan From colinc at terrigal.net.au Mon Jun 26 17:13:12 2000 From: colinc at terrigal.net.au (Colin) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <3957EC0E.F85B7570@terrigal.net.au> <20000626165953.A30509@cleanwhisker.420.am> Message-ID: <3957F246.BAE7B3A6@terrigal.net.au> ivan wrote: > On Tue, Jun 27, 2000 at 09:49:34AM +1000, Colin wrote: > > > > > > ivan wrote: > > > > > On Wed, Jun 21, 2000 at 03:13:36PM +1200, Colin wrote: > > > > Hello, sorry for being a nusiance. > > > > > > > > I have a question regarding the billing of customers. Currently we bill > > > > all customers at the beginning of each month, so this means that the > > > > customer should receive an invoice several days before the beginning of > > > > the next month. It seems as though freeside does not allow customers to > > > > be bill before the date of the next bill. > > > > Eg, Clicking on 'Bill Now' does not create an invoice as the date for > > > > next bill is 01 July 2000. > > > > We also liked to bill every single customer at the same time, it seems > > > > as though this can be acheived by using the freeside-bill script in > > > > /bin. Again, does not seem to bill customers until the next bill date is > > > > matched, even if i specify the date in the command line. > > > > > > You can use the -d option of freeside-bill to run billing as if it's a > > > different date. As per my previous message, Freeside does not currently > > > support pro-rating or 1st-of-the-month billing, only anniversery billing. > > > > I think you may have misinterpreted my question, we do not wish to implement > > pro-rating billing. > > We would like 1st of the month but we can simply changed all packages to the > > 1st of the month manually to do this so that anniversary billing is used. > > > > My question is whether we can bill/print the invoice before the actual billing > > date. > > Eg: If the next billing date is 07/01/2000, can we print the invoice prior to > > this date, say 06/26/2000, so that the customers can receive the invoice > > before the billing date. > > Again, you can use the -d option of freeside-bill to run billing as if > it's a different date. > > > At the moment it seems as though no customers get billed even if i specify the > > date prior to the billing date when running the billing script. It runs the > > script as though it is billing the customers but nothing is entered in mysql, > > i've checked all the tables. > > It'll only add the data if the date i specify is after the billing date, as in > > the above example 07/02/2000 works fine. > > What's the question then? > > -- > meow > _ivan yes, i know -d can run the billing script with a different date, but it ONLY seems to work with dates after the next billing date, not with dates before. EG: next billing date = 07/01/2000 (this date is already stored in the database) i want to bill prior to above date, say 06/26/2000 i run 'freeside-bill -c -d 2000-06-26 freeside' It seems to run through and bill customers, I go to mysql and check the tables, nothing is added in cust_bill, cust_bill_pkg, cust_pay_batch, and the billing date is not changed to the next month (08/01/2000) for packages IF i run 'freeside-bill -c -d 2000-07-02 freeside' it works fine, but this date is after the billing date which is not what we want to do. We want to bill customers prior to the next billing date, not after. From ivan at 420.am Mon Jun 26 17:30:07 2000 From: ivan at 420.am (ivan) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Billing + Freeside Bill Script In-Reply-To: <3957F246.BAE7B3A6@terrigal.net.au>; from Colin on Tue, Jun 27, 2000 at 10:16:06AM +1000 References: <395024D0.674EF3C4@terrigal.net.au> <20000622035925.B882@cleanwhisker.420.am> <3957EC0E.F85B7570@terrigal.net.au> <20000626165953.A30509@cleanwhisker.420.am> <3957F246.BAE7B3A6@terrigal.net.au> Message-ID: <20000626173006.A31175@cleanwhisker.420.am> On Tue, Jun 27, 2000 at 10:16:06AM +1000, Colin wrote: > > > ivan wrote: > > > On Tue, Jun 27, 2000 at 09:49:34AM +1000, Colin wrote: > > > > > > > > > ivan wrote: > > > > > > > On Wed, Jun 21, 2000 at 03:13:36PM +1200, Colin wrote: > > > > > Hello, sorry for being a nusiance. > > > > > > > > > > I have a question regarding the billing of customers. Currently we bill > > > > > all customers at the beginning of each month, so this means that the > > > > > customer should receive an invoice several days before the beginning of > > > > > the next month. It seems as though freeside does not allow customers to > > > > > be bill before the date of the next bill. > > > > > Eg, Clicking on 'Bill Now' does not create an invoice as the date for > > > > > next bill is 01 July 2000. > > > > > We also liked to bill every single customer at the same time, it seems > > > > > as though this can be acheived by using the freeside-bill script in > > > > > /bin. Again, does not seem to bill customers until the next bill date is > > > > > matched, even if i specify the date in the command line. > > > > > > > > You can use the -d option of freeside-bill to run billing as if it's a > > > > different date. As per my previous message, Freeside does not currently > > > > support pro-rating or 1st-of-the-month billing, only anniversery billing. > > > > > > I think you may have misinterpreted my question, we do not wish to implement > > > pro-rating billing. > > > We would like 1st of the month but we can simply changed all packages to the > > > 1st of the month manually to do this so that anniversary billing is used. > > > > > > My question is whether we can bill/print the invoice before the actual billing > > > date. > > > Eg: If the next billing date is 07/01/2000, can we print the invoice prior to > > > this date, say 06/26/2000, so that the customers can receive the invoice > > > before the billing date. > > > > Again, you can use the -d option of freeside-bill to run billing as if > > it's a different date. > > > > > At the moment it seems as though no customers get billed even if i specify the > > > date prior to the billing date when running the billing script. It runs the > > > script as though it is billing the customers but nothing is entered in mysql, > > > i've checked all the tables. > > > It'll only add the data if the date i specify is after the billing date, as in > > > the above example 07/02/2000 works fine. > > > > What's the question then? > > > > -- > > meow > > _ivan > > yes, i know -d can run the billing script with a different date, but it ONLY seems > to work with dates after the next billing date, not with dates before. > EG: > next billing date = 07/01/2000 (this date is already stored in the database) > i want to bill prior to above date, say 06/26/2000 > i run 'freeside-bill -c -d 2000-06-26 freeside' > It seems to run through and bill customers, I go to mysql and check the tables, > nothing is added in cust_bill, cust_bill_pkg, cust_pay_batch, and the billing date > is not changed to the next month (08/01/2000) for packages That's correct, since you've asked the billing to run as if it's 6/26. > IF i run 'freeside-bill -c -d 2000-07-02 freeside' it works fine, but > this date is after the billing date which is not what we want to do. You don't actually have to wait until 7/2 to run that command. > We want to bill customers prior to the next billing date, not after. You can run `freeside-bill -c -d 2000-07-02 freeside' when the real date is 6/26. -- meow _ivan From jeff at cmh.net Tue Jun 27 11:30:41 2000 From: jeff at cmh.net (Jeff Finucane) Date: Wed Jun 29 06:00:46 2005 Subject: aliases with foreign destinations Message-ID: freesiders: I am curious to know how others are managing mail aliasing to foreign domains. Here I refer to a .forward type alias of a RHS in a sendmail map which points to a domain not local to the ISP where the instance of freeside runs. I'm not seeing a good way to store the info in [an unaltered] freeside. Jeff -- jeff@cmh.net "There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him." Professor Bernardo de le Paz [ R.A. Heinlein -- "The Moon is a Harsh Mistress" ] From jeff at cmh.net Tue Jun 27 15:34:29 2000 From: jeff at cmh.net (Jeff Finucane) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] aliases with foreign destinations In-Reply-To: from "Jeff Finucane" at Jun 27, 2000 02:30:28 PM Message-ID: oops... replacing the first 'of' with 'or' in my previous message leads to simpler parsing. -- jeff@cmh.net "There is no worse tyranny than to force a man to pay for what he does not want merely because you think it would be good for him." Professor Bernardo de le Paz [ R.A. Heinlein -- "The Moon is a Harsh Mistress" ] From kenny at neoserve.com Thu Jun 29 06:31:51 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:46 2005 Subject: Radius Check Items Message-ID: Hi Ivan: Sorry I have not contributed any more patched lately but it's been a very hectic two weeks around here. I'm hoping to get back on track today though. I need to add the ability to add radius check items to a service definition. Currently if I add additional radius items to the svc_acct and part_svc (I don't need to add them anywhere else right) they will be treated as Radius reply items only. Adding check items allows me to support NAS-Port-Type and ICRadius' Simultaneous-Login. The best I've come up with so far is to add 'radiuscheck_' fields to the database and supporting scripts. Do you see any problems with this? Are there any reasons you would not like to do it this way and perhaps do it another. One other question. The Radius documentation says that Framed-Address should be Framed-IP-Address. Either seems to work on my ICRadius and my Livingston Radius v2.x. Any problems with me changing it to the standard? I also noticed in the TODO file that Tim Jung was looking for a way to support pre-paid cards. I'm ccing this to him so he will see it but I wanted to mention for those who did not know that ICRadius supports Monthly-Time-Limit and Total-Time-Limit attributes. This probably will not solve all of the issues related to pre-paid cards but way assist in that effort. --- Kenny Elliott System Administration / Web Development NeoServe, L.L.C. P: (504) 649-9321 F: (504) 781-6007 From kenny at neoserve.com Thu Jun 29 06:38:14 2000 From: kenny at neoserve.com (Kenny Elliott) Date: Wed Jun 29 06:00:46 2005 Subject: Virtual mail domains Message-ID: Ivan: I'm looking at my vpopmail problem again (supporting users in different domains with he same username). Do you foresee any problems with creating usernames as me@mydomain.com in freeside? Basically my though was to allow us to create an email only service that we could put the full email address in as the username and then have the user creation routines create the mail user under the proper vpopmail domain. I believe this would cause a problem for some Radius' use @whatever as the realm name but I could prevent export of usernames with an @ in them to Radius by modifying the export script. --- Kenny Elliott System Administration / Web Development NeoServe, L.L.C. P: (504) 649-9321 F: (504) 781-6007 From khoff at pc-intouch.com Thu Jun 29 11:42:37 2000 From: khoff at pc-intouch.com (Kristian Hoffmann) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Virtual mail domains In-Reply-To: Message-ID: We are about to start using exim, instead of sendmail, to do virtual domains more efficiently with freeside. Since the mail aliases in svc_acct_sm link to real uids from svc_acct, we figured we could just create everyones shell account formated like userdomain (eg, khoffpci). That way you don't have to use something like vpopmail to seperate the different namespaces. Then you can have as many khoff's in svc_acct_sm as you want just as long as the link to unique usernames and uids in svc_acct (eg, khoffpci, khoffnarf, khofffoo, etc.). -Kristian On Thu, 29 Jun 2000, Kenny Elliott wrote: > Ivan: > > I'm looking at my vpopmail problem again (supporting users in > different domains with he same username). Do you foresee any problems > with creating usernames as me@mydomain.com in freeside? Basically my > though was to allow us to create an email only service that we could > put the full email address in as the username and then have the user > creation routines create the mail user under the proper vpopmail > domain. I believe this would cause a problem for some Radius' use > @whatever as the realm name but I could prevent export of usernames > with an @ in them to Radius by modifying the export script. > > --- > Kenny Elliott > System Administration / Web Development > NeoServe, L.L.C. > > P: (504) 649-9321 > F: (504) 781-6007 > > > From rdudfield at hotmail.com Fri Jun 30 00:45:03 2000 From: rdudfield at hotmail.com (Rene Dudfield) Date: Wed Jun 29 06:00:46 2005 Subject: [freeside] Virtual mail domains Message-ID: <20000630074420.52179.qmail@hotmail.com> >From: "Kenny Elliott" >Reply-To: ivan-freeside@sisd.com >To: >Subject: [freeside] Virtual mail domains >Date: Thu, 29 Jun 2000 08:38:22 -0500 > >Ivan: > > I'm looking at my vpopmail problem again (supporting users in >different domains with he same username). Do you foresee any problems >with creating usernames as me@mydomain.com in freeside? Basically my >though was to allow us to create an email only service that we could >put the full email address in as the username and then have the user >creation routines create the mail user under the proper vpopmail >domain. I believe this would cause a problem for some Radius' use >@whatever as the realm name but I could prevent export of usernames >with an @ in them to Radius by modifying the export script. > You still have the problem that the radius server will only authenticate the modified name, not the @ name. What about changing your radius server to authenticate @ names? Or is this a problem on the client side? What advantages do the non opensource radius servers have anyway? They seem pretty simple. Rene. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From john at venturenet.co.za Fri Jun 30 06:27:39 2000 From: john at venturenet.co.za (John Saunders) Date: Wed Jun 29 06:00:46 2005 Subject: svc_acct.import problem Message-ID: Hi I am runing RH6.1 and freeside 1.2.3 Installation went OK and I am able to add services, packages and users etc manually. Billing also works fine. When trying to import the passwd, shadow and users files, I get the following errors when trying to run svc_acct.import: Use of uninitialized value at ./svc_acct.import line 192. Use of uninitialized value at ./svc_acct.import line 192. Use of uninitialized value at ./svc_acct.import line 194. Use of uninitialized value at ./svc_acct.import line 194. DBD::Pg::st execute failed: ERROR: ExecAppend: Fail to add null value in not null attribute pkgnum ERROR: ExecAppend: Fail to add null value in not null attribute pkgnum Ignoring the Use of unitialized...... errors, I am unable to find any references to this error in the mailing list achives. Has anyone come accross this one who knows of a solution. Thanks in advance. John