diff options
author | ivan <ivan> | 2001-10-24 15:29:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-10-24 15:29:31 +0000 |
commit | e6b57805f6b3e76448ab9b6d280f2c53bc1410f3 (patch) | |
tree | e05b4074ba546fa07a0da0587fb048b48ae21e23 /bin | |
parent | 40927c9cd9472719a3720270256f4300b81ebc98 (diff) |
preliminary web config editor
new config files: username-ampersand, passwordmax
fs-setup updates
get rid of old and crufty and unused registries/ config foo
documentation updates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fs-setup | 18 | ||||
-rwxr-xr-x | bin/svc_acct.export | 5 |
2 files changed, 14 insertions, 9 deletions
diff --git a/bin/fs-setup b/bin/fs-setup index 3d76bf823..f3889f0dc 100755 --- a/bin/fs-setup +++ b/bin/fs-setup @@ -1,13 +1,13 @@ #!/usr/bin/perl -Tw # -# $Id: fs-setup,v 1.64 2001-10-23 18:15:06 ivan Exp $ +# $Id: fs-setup,v 1.65 2001-10-24 15:29:30 ivan Exp $ #to delay loading dbdef until we're ready BEGIN { $FS::Record::setup_hack = 1; } use strict; use DBI; -use DBIx::DBSchema 0.18; +use DBIx::DBSchema 0.19; use DBIx::DBSchema::Table; use DBIx::DBSchema::Column; use DBIx::DBSchema::ColGroup::Unique; @@ -30,14 +30,18 @@ my($dbdef_file) = "/usr/local/etc/freeside/dbdef.". datasrc; ### -print "\nEnter the maximum username length: "; -my($username_len)=&getvalue; +#print "\nEnter the maximum username length: "; +#my($username_len)=&getvalue; +my $username_len = 32; #usernamemax config file print "\n\n", <<END, ":"; -Freeside tracks the RADIUS attributes User-Name, check attribute Password and +Freeside tracks the RADIUS User-Name, check attribute Password and reply attribute Framed-IP-Address for each user. You can specify additional -check and reply attributes. First enter any additional RADIUS check attributes -you need to track for each user, separated by whitespace. +check and reply attributes (or you can add them later with the +fs-radius-add-check and fs-radius-add-reply programs). + +First enter any additional RADIUS check attributes you need to track for each +user, separated by whitespace. END my @check_attributes = map { $attrib2db{lc($_)} or die "unknown attribute $_"; } split(" ",&getvalue); diff --git a/bin/svc_acct.export b/bin/svc_acct.export index bc27f7f02..727186085 100755 --- a/bin/svc_acct.export +++ b/bin/svc_acct.export @@ -1,6 +1,6 @@ #!/usr/bin/perl -w # -# $Id: svc_acct.export,v 1.25 2001-10-16 20:33:02 jeff Exp $ +# $Id: svc_acct.export,v 1.26 2001-10-24 15:29:30 ivan Exp $ # # Create and export password, radius and vpopmail password files: # passwd, passwd.adjunct, shadow, acp_passwd, acp_userinfo, acp_dialup @@ -254,7 +254,8 @@ foreach $svc_domain (sort {$a->domain cmp $b->domain} @svc_domain) { foreach $svc_acct (qsearch('svc_acct', {'domsvc' => $svc_domain->svcnum})) { my($password)=$svc_acct->getfield('_password'); my($cpassword,$rpassword); - if ( ( length($password) <= 8 ) + #if ( ( length($password) <= 8 ) + if ( ( length($password) <= 12 ) && ( $password ne '*' ) && ( $password ne '!!' ) && ( $password ne '' ) |