Convert passwd into freeside
Ivan Kohler
ivan at sisd.com
Sun Mar 14 14:34:06 PST 1999
On Sun, Mar 14, 1999 at 05:02:29PM -0500, Bao C. Ha wrote:
>
> On Sat, 13 Mar 1999, Ivan Kohler wrote:
>
> > > How do I convert my passwd file into freeside.
> >
> > bin/svc_acct.import
> >
> I have an annoying problem.
>
> I have a few accounts that have a dot in the middle of the username.
> Freeside will not import these in.
>
> How do I get arround it?
You could add the accounts to your SQL database manually using dbimon or
similar.
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:
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
More information about the freeside-users
mailing list