Convert passwd into freeside
Bao C. Ha
bao at hacom.net
Sun Mar 14 14:37:14 PST 1999
Yes, I did.
Thanks for the fast response.
Bao
--
Bao C. Ha, President voice: (706) 736-8717
Hacom, Internet & Web Services http://www.hacom.net
On Sun, 14 Mar 1999, Ivan Kohler wrote:
> 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