summaryrefslogtreecommitdiff
path: root/FS/FS/part_export/textradius.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_export/textradius.pm')
-rw-r--r--FS/FS/part_export/textradius.pm27
1 files changed, 26 insertions, 1 deletions
diff --git a/FS/FS/part_export/textradius.pm b/FS/FS/part_export/textradius.pm
index 1492f26..65936ea 100644
--- a/FS/FS/part_export/textradius.pm
+++ b/FS/FS/part_export/textradius.pm
@@ -1,12 +1,35 @@
package FS::part_export::textradius;
-use vars qw(@ISA $prefix);
+use vars qw(@ISA %info $prefix);
use Fcntl qw(:flock);
+use Tie::IxHash;
use FS::UID qw(datasrc);
use FS::part_export;
@ISA = qw(FS::part_export);
+tie my %options, 'Tie::IxHash',
+ 'user' => { label=>'Remote username', default=>'root' },
+ 'users' => { label=>'users file location', default=>'/etc/raddb/users' },
+;
+
+%info = (
+ 'svc' => 'svc_acct',
+ 'desc' =>
+ 'Real-time export to a text /etc/raddb/users file (Livingston, Cistron)',
+ 'options' => \%options,
+ 'notes' => <<'END'
+This will edit a text RADIUS users file in place on a remote server.
+Requires installation of
+<a href="http://search.cpan.org/dist/RADIUS-UserFile">RADIUS::UserFile</a>
+from CPAN. If using RADIUS::UserFile 1.01, make sure to apply
+<a href="http://rt.cpan.org/NoAuth/Bug.html?id=1210">this patch</a>. Also
+make sure <a href="http://rsync.samba.org/">rsync</a> is installed on the
+remote machine, and <a href="../docs/ssh.html">SSH is setup for unattended
+operation</a>.
+END
+);
+
$prefix = "/usr/local/etc/freeside/export.";
sub rebless { shift; }
@@ -164,3 +187,5 @@ sub textradius_upload {
}
+1;
+