Convert passwd into freeside

Ivan Kohler ivan at sisd.com
Sun Mar 14 14:36:13 PST 1999


ooops

On Sun, Mar 14, 1999 at 05:34:06PM -0500, Ivan Kohler wrote:
>
> You could allow periods in usernames.  Data for a particular table is
> untainted in sub check of FS/table_name.pm.  In this case, you would
> change:

change svc_acct.pm:

> 
>   my $ulen =$self->dbdef_table->column('username')->length;
>   $recref->{username} =~ /^([a-z0-9_\-]{2,$ulen})$/
>                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
>     or return "Illegal username";
>   $recref->{username} = $1;
>   $recref->{username} =~ /[a-z]/ or return "Illegal username";
> 
> to
> 
> /^([a-z0-9_\-\.]{2,$ulen})$/
>              ^^
> 
> -- 
> Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok Navi
> Open-source billing and administration for ISPs - http://www.sisd.com/freeside
> 20 4,16 * * * saytime # please don't be surprised if you find me dreaming too

-- 
Ivan Kohler <ivan at sisd.com> - finger for PGP key - <moc.dsis at navi> Relhok Navi
Open-source billing and administration for ISPs - http://www.sisd.com/freeside
20 4,16 * * * saytime # please don't be surprised if you find me dreaming too



More information about the freeside-users mailing list