add support for config option textradiusprepend
authorivan <ivan>
Wed, 28 Jun 2000 12:37:28 +0000 (12:37 +0000)
committerivan <ivan>
Wed, 28 Jun 2000 12:37:28 +0000 (12:37 +0000)
bin/svc_acct.export
htdocs/docs/config.html

index 598a6df..f7ee571 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 #
-# $Id: svc_acct.export,v 1.12 2000-06-15 14:07:02 ivan Exp $
+# $Id: svc_acct.export,v 1.13 2000-06-28 12:37:28 ivan Exp $
 #
 # Create and export password files: passwd, passwd.adjunct, shadow,
 # acp_passwd, acp_userinfo, acp_dialup, users
 # ivan@sisd.com 98-sep-18
 # 
 # $Log: svc_acct.export,v $
-# Revision 1.12  2000-06-15 14:07:02  ivan
+# Revision 1.13  2000-06-28 12:37:28  ivan
+# add support for config option textradiusprepend
+#
+# Revision 1.12  2000/06/15 14:07:02  ivan
 # added ICRADIUS radreply table support, courtesy of Kenny Elliott
 #
 # Revision 1.11  2000/03/06 16:00:39  ivan
@@ -89,6 +92,8 @@ my $icradius_mysqlsource =
 my $icradius_dbh = dbh; #could eventually get it from a config file if you're
                         #not running MySQL for your Freeside database
 
+my $textradiusprepend = $conf->config('textradiusprepend');
+
 my(@saltset)= ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' );
 require 5.004; #srand(time|$$);
 
@@ -237,7 +242,7 @@ foreach $svc_acct (@svc_acct) {
     ###
     # FORMAT OF THE USERS FILE HERE
     print USERS
-      $svc_acct->username, qq(\tPassword = "$rpassword"\n\t),
+      $svc_acct->username, qq(\t${textradiusprepend}Password = "$rpassword"\n\t),
       join ",\n\t", map { qq($_ = "$radius{$_}") } keys %radius;
     
     if ( $ip && $ip ne '0e0' ) {
index 730a1c9..c3bfe17 100644 (file)
@@ -72,6 +72,7 @@ All further configuration files and directories are located in
   <li>soamachine - SOA machine for new domains, with trailing `.'
   <li>soarefresh - SOA refresh for new domains
   <li>soaretry - SOA retry for new domains
+  <li>textradiusprepend - The contents of this file will be prepended to the first line of a user's RADIUS entry in text exports.  If necessary, usually `Auth-Type = Local, '.
   <li>usernamemin - Minimum username length (default 2);
   <li>usernamemax - Maximum username length (default is the size of the SQL column, probably specified when fs-setup was run)
 </ul>