From: ivan Date: Mon, 6 Mar 2000 14:19:15 +0000 (+0000) Subject: ICRADIUS export bugfix X-Git-Tag: freeside_1_3_0~157 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b70cf8e6aaeeef34baae4542f389ceab20f4f37d;ds=sidebyside ICRADIUS export bugfix --- diff --git a/bin/svc_acct.export b/bin/svc_acct.export index 8cdccda1f..8bec4aa79 100755 --- a/bin/svc_acct.export +++ b/bin/svc_acct.export @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: svc_acct.export,v 1.3 2000-03-06 14:12:57 ivan Exp $ +# $Id: svc_acct.export,v 1.4 2000-03-06 14:19:15 ivan Exp $ # # Create and export password files: passwd, passwd.adjunct, shadow, # acp_passwd, acp_userinfo, acp_dialup, users @@ -38,8 +38,8 @@ # ivan@sisd.com 98-sep-18 # # $Log: svc_acct.export,v $ -# Revision 1.3 2000-03-06 14:12:57 ivan -# ICRADIUS export support +# Revision 1.4 2000-03-06 14:19:15 ivan +# ICRADIUS export bugfix # # Revision 1.2 1998/12/10 07:23:15 ivan # use FS::Conf, need user (for datasrc) @@ -360,7 +360,7 @@ foreach my $icradiusmachine ( @icradiusmachines ) { sshopen2("root\@$machine", $reader, $writer, "mysql --user=$user -p $db"); print $writer "$pass\nLOCK TABLES radcheck WRITE;\n"; foreach my $file ( glob("radcheck.*") ) { - scp($file,"root\@$icradiusmachine:$icradius_mysqldest/$file"); + scp($file,"root\@$icradiusmachine:$icradius_mysqldest/$db/$file"); } close $writer; close $reader; diff --git a/htdocs/docs/config.html b/htdocs/docs/config.html index 3c7c0bd29..fe1cce23d 100644 --- a/htdocs/docs/config.html +++ b/htdocs/docs/config.html @@ -38,7 +38,7 @@ All further configuration files and directories are located in
  • hidecancelledcustomers - The existance of this file will prevent customers with only cancelled packages from showing up in listings (though they will still be in the database)
  • home - For new users, prefixed to usrename to create a directory name. Should have a leading but not a trailing slash.
  • icradiusmachines - Your ICRADIUS machines, one per line. The existance of this file (even if empty) turns on radcheck table creation (in the freeside database - the radcheck table needs to be created manually). Machines listed in this file will have the radcheck table exported to them. Each line of this file should contain four items, separted by whitespace: machine name, MySQL database name, MySQL username, and MySQL password. For example: "radius.isp.tld radius_db radius_user passw0rd". Note that to use ICRADIUS export you need to be using MySQL. -
  • icradius_mysqldest - Destination directory for the MySQL radcheck table files, on the ICRADIUS machines. Defaults to "/usr/local/var/radius". +
  • icradius_mysqldest - Destination directory for the MySQL databases, on the ICRADIUS machines. Defaults to "/usr/local/var/".
  • icradius_mysqlsource - Source directory for for the MySQL radcheck table files, on the Freeside machine. Defaults to "/usr/local/var/freeside".
  • invoice_from - Return address on email invoices.
  • lpr - Print command for paper invoices, for example `lpr -h'.