[freeside] Importing Legacy master.passwd data with svc_acct.import
ivan
ivan at 420.am
Thu Nov 16 18:42:22 PST 2000
On Fri, Nov 17, 2000 at 11:43:43AM +1000, Tim McCullagh wrote:
> Hi Ivan,
>
> Thanks for the other feedback re: legacybillingdata. It had to do with the
> fact that I had an empty field on the end of my legacy data file
>
> I have 3 more questions if you have time to reply to them
>
> 1. When I am importing the legacy data to my svc_acct db table with
> svc_acct.import it errors when it reaches a 3 character GID. The 4
> character GID's seems to go in fine. Can you give me a pointer as to where
> I might be able to change / fix this?
First of all, you didn't report the exact error message. In the future,
report the *exact* error message you receive, with cut and paste, or your
problem will be ignored.
I can't imagine why the number of characters in the GID would cause
a problem.
> 2. When I import passwords from my master.passwd the svc_acct.import only
> inserts 8 characters into the password field.
You can specify the maximum username length when you run fs-setup. To
change it afterwords, change the length of the SQL column and run
bin/dbdef-create. Also check the usernamemin and usernamemax
configuration files, documented in htdocs/docs/config.html
> My master.passwd has
> encrypted paswords with $ signs in them. When I write scripts to make any
> changes I normally have to use ' ' around my '${passwd}' to copy them
> correctly. Do you think I need to change the svc_acct.import to reflect
> this as well ?
No, Perl's interpolation semantics are different from shell. Actually
you shouldn't be doing anything sensitive like that with shell, because
the quoting conventions are so insecure.
>
> 3. I have set up my customers home directorys under the following path
> structure. /home/usr/{initial}/{username}.
> This structure is in my master.passwd. how would you suggests I change the
> import script to catter for this? or can you suggest how this might be done
I don't think the import script needs to be modified, but you will need to
modify svc_acct.pm so that new home directories are assigned correctly.
>
> TIA
>
> Freeside itself works like a charm.
>
> regards
>
> Tim
>
>
--
meow
_ivan
More information about the freeside-users
mailing list