[freeside] Customer Add (exporting passwords to NIS and Shell machines on the fly)

Tim McCullagh timbo at halenet.com.au
Thu Nov 30 01:07:14 PST 2000


Hi Ivan,

I have read both of the references below, and I have scoured the mailing
list.

I am using FreeBSD 4.1  with MYSQL   perl 5.005, patch 03

the only error messages I am getting are

[Sun Nov 26 01:59:12 2000] signup.cgi: Use of uninitialized value at
/usr/local/
www/cgi-bin/signup.cgi line 236, <SOCK> chunk 1.

and
[Thu Nov 30 09:14:38 2000] signup.cgi: connect: Connection refused at
/usr/local
/lib/perl5/site_perl/5.005/FS/SignupClient.pm line 102.

Freeside seems to be installed ok all the functions seem to be returning
what I would expect.

I am trying to determine where I am going wrong with regards to adding users
and  with the online signup server facility.

Both of these add new customers to the data base but neither seems to update
the NIS or shell machine, yet there  seems to be a ssh connection
established to each of these machines, yet nothing is updated.

I suspect it has to do with the fact that my default home dir is /usr/home
whereas the actual home page location is /usr/home/initial/username.

I suspect that the update is failing to create the directory structure and
is exiting.

To make matters worse I don't seem to be getting any error messages, when
using the admin customer signup screen.  To this end I am trying to walk
through the steps.

Given that there seems to be a ssh connection I am questioning whether I
would need to run the svc_acct.export at all once the initial data has been
imported, as it seems that this is being attempted by the signup scripts

In my svc_acct.pm  I have changed the dir_prefix to include the  $dir_prefix
. '/' . substr($recref->{username},0,1). '/' . $recref->{username};

I believe the process is failing at the useradd statement below because of a
problem with my $dir returning /usr/home instead of the full path.  If that
make sence

  ssh("root\@$shellmachine",
     "useradd -d $dir -m -s $shell -u $uid $username"
 );

I appologise for being a pain,  I have scoured the mailing list looking for
similar questions without success.  I have also read and reread the
references above and have followed the detail in each case without success.
By the way I have been reading the docs that came with freeside not directly
from the sisd site.   Are they different?

regards

Tim


----- Original Message -----
From: "ivan" <ivan at 420.am>
To: <ivan-freeside at sisd.com>
Sent: Thursday, 30 November 2000 6:09
Subject: Re: [freeside] Customer Add (exporting passwords to NIS and Shell
machines on the fly)


RTFM, specifically htdocs/docs/export.html and htdocs/docs/config.html

If, after reading those files, you still have a problem, please send a
well-written and thought out email with the specifics of your question or
problem.

On Thu, Nov 30, 2000 at 06:07:59PM +1000, Tim McCullagh wrote:
> Hi IVan
>
> When a customer is added  in Freeside what scripts update the NIS and
shell
> machines
>
> Is it  scv_acct.export  ?
>
> Where is it called from?
>
> thanks
>
> Tim
>

--
meow
_ivan





More information about the freeside-users mailing list