Importing data

Ivan Kohler ivan at sisd.com
Mon Jun 8 00:33:57 PDT 1998


-----BEGIN PGP SIGNED MESSAGE-----

The importing and exporting scripts need to be customized for your site.

A list of valid shells needs to be in bin/svc_acct.import as well as
site_perl/svc_acct.pm.

If you have duplicate usernames or run the import script without cleaning
the svc_acct and cust_svc tables, you will get "Username in use".

You might have >8 character usernames, or you might have strange
characters in your usernames.  To change the username length:

You would need  to change site_perl/dbdef.pm:

      'username char(a_larger_number) NOT NULL'
      
site_perl/svc_acct.pm:

  $recref->{username} =~ /^([a-z0-9_\-]{2,a_larger_number})$/ or return "Illegal shell";
 
htdocs/edit/svc_acct.cgi:

<INPUT TYPE="text" NAME="username" VALUE="$username" SIZE=xx MAXLENGTH=yy> 


On Sun, 7 Jun 1998, Roger Mangraviti wrote:

> when i execute svc_acct.import as the freeside user I get a lot of
> "Illegal shell", "Username in use" and "Illegal username".
> 
> What am I doing wrong?
> 
> 
> -- 
> -----------------------------------------------------------------
>                         Why not Adap-2-Us?
> -----------------------------------------------------------------								
>  Roger Mangraviti			Ph:	+61 2 9746 1492	
>  Systems Integrator/Network Admin.	Fax:	+61 2 9793 7350	
>  Adap-2-Us
>  Email: rem at atu.com.au			http://www.atu.com.au	
> -----------------------------------------------------------------
>  "I tried an internal modem, but it hurt too much when I walked"
> -----------------------------------------------------------------
> 

- -- 
Ivan Kohler <ivan at sisd.com> - finger for PGP key
Silicon Interactive Software Design - http://www.sisd.com/
Open source billing and administration for ISPs - http://www.sisd.com/freeside
"But it's alright, to smile back at me" -Blind Melon

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBNXuT5L7OPBeQJv09AQFNNwQAsZSgt4XLNV44ZnkM1L1kPWzbsekIzfIN
Sj0DmWJxQt7zZuCwSVk+Py5XQJJvWjdkEpkbQZDxHxV3cMkfBF/LhIn2Rdwcfb+4
anVdmEIxSiiPfKdZXSK3Ekevoh56kJEbiGDt35jaP/+cUTDoWL8Ih6yvXxUb6E5U
q7iQUdOGuTE=
=0egk
-----END PGP SIGNATURE-----




More information about the freeside-users mailing list