[freeside-commits] freeside/bin generate-raddb,1.4,1.5

Ivan,,, ivan at wavetail.420.am
Fri Dec 16 14:47:53 PST 2005


Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv15766/bin

Modified Files:
	generate-raddb 
Log Message:
add motorola canopy attributes from wtxs, neaten up raddb.pm generation

Index: generate-raddb
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/generate-raddb,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- generate-raddb	7 Sep 2005 22:04:17 -0000	1.4
+++ generate-raddb	16 Dec 2005 22:47:51 -0000	1.5
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 # usage: generate-raddb radius-server/raddb/dictionary* >raddb.pm
-#  i.e.: generate-raddb ~/freeradius/freeradius-1.0.4/share/dictionary* /home/ivan/wirelessoceans/dictionary.ip3networks >raddb.pm.new
+#  i.e.: generate-raddb ~/freeradius/freeradius-1.0.5/share/dictionary* ~/wirelessoceans/dictionary.ip3networks ~/wtxs/dictionary.mot.canopy >raddb.pm.new
 print <<END;
 package FS::raddb;
 use vars qw(%attrib);
@@ -28,17 +28,24 @@
   #print "$2\n";
 }
 
-foreach ( keys %hash ) {
+foreach ( sort keys %hash ) {
 #  print "$_\n" if length($_)>24;
 #  print substr($_,0,24),"\n" if length($_)>24; 
 #  $max = length($_) if length($_)>$max;
 # have to fudge things since everything >24 is *not* unique
 
   #print "  '". substr($_,0,24). "' => '$hash{$_}',\n";
-  print "  '$_' => '$hash{$_}',\n";
+  print "  '$_' ". ( " " x (24-length($_) ) ). "=> '$hash{$_}',\n";
 }
 
 print <<END;
+
+  #NETC.NET.AU (RADIATOR?)
+  'authentication_type'      => 'Authentication-Type',
+
+  #wtxs (dunno)
+  #'radius_operator'          => 'Radius-Operator',
+
 );
 
 1;



More information about the freeside-commits mailing list