[freeside] Error: couldn't insert record for new domain:
Illegal recaf: NS
Online 2000
phil at on2k.com.au
Wed Sep 24 02:10:13 PDT 2003
Thanks Ivan. That did the trick.
I was able to add the first svc_domain.
I can also provision svc_acct services without the
error "Can't find domsvc in svc_domain.svcnum"
The user is added in the svc_acct table in the freeside database ok.
However the user is not actually added on the two remote machines to the
password file.
I am using the following shell command ( Realtime Export via remote SSH
script) in the freeside export:
useradd /usr/sbin/pw useradd $username -d $dir -s $shell -u $uid
-g $gid -c $finger -h 0 useradd_stdin $_password
If I run the following command manually (using the two remote servers ip)
from the freeside server it works ok for both:
ssh root@<remote ip> /usr/sbin/pw useradd phil3 -d /nonexistent -s
/sbin/nologin -u 1569 -g 1569 -c test -h 0
It waits for a password that I need to enter manually, but I expect that
freeside sends $_password from the "Insert command STDIN"
field of the shellcommands - Realtime Export via remote SSH script
Unattended SSH is setup and working ok.
rsync is not installed on the remote machines but is not used at this stage.
I am running two exports for the package (shells commands to two password
servers)
Here are the contents of the Job Queue:
39 FS::part_export::shellcommands::ssh_cmd user root host <remote ip>
command /usr/sbin/pw useradd phil9 -d /n... stdin_string pk1234 Wed Sep 24
16:41:22 2003 new phil9 at on2k.com.au
40 FS::part_export::shellcommands::ssh_cmd user root host <second remote
ip> command /usr/sbin/pw useradd phil9 -d /n... stdin_string pk1234 Wed
Sep 24 16:41:23 2003 new phil9 at on2k.com.au
41 FS::svc_acct::append_fuzzyfiles phil9 Wed Sep 24 16:41:23 2003 new
phil9 at on2k.com.au 42 FS::svc_acct::send_email to phil at on2k.com.au from
support at on2k.com.au subject Welcome mimetype text/plain body Hi $first and
Welcome to Online ... Wed Sep 24 16:41:23 2003 new (waiting for 40, 39)
phil9 at on2k
As indicated above the status is "new" is the Job Queue.
Also I noticed the following if I do a "ps -aux"
postgres 8271 0.0 1.1 8032 3044 pts/0 S 16:50 0:00 postgres:
freeside freeside [local] idle in transaction
postgres 8272 0.0 0.9 7720 2548 pts/0 S 16:50 0:00 postgres:
freeside freeside [local] idle in transaction
postgres 8273 0.0 1.1 8032 3044 pts/0 S 16:50 0:00 postgres:
freeside freeside [local] idle in transaction
postgres 8274 0.0 1.1 8036 3064 pts/0 S 16:50 0:00 postgres:
freeside freeside [local] idle in transaction
Checked log files and I cannot find any errors.
Checked FAQ: Problem similar to
http://www.sisd.com/freeside/list-archive/msg03553.html
Can you help?
Thanks,
Phil
At 03:53 AM 19/9/2003 -0700, you wrote:
>On Fri, Sep 19, 2003 at 08:35:11PM +1000, Online 2000 wrote:
> > Hi,
> >
> > I am receiving the following error when trying to provision a svc_domain
> > service
> > with no Exports selected:
> >
> > Error: couldn't insert record for new domain: Illegal recaf: NS
> >
> > As part of a new install I am trying to setup the first svc_domain as per
> > the Administration Page.
> > I have not ticked any exports because I do not want to setup the domain on
> > my DNS servers as it is already there.
>
>You probably want to make sure the "defaultrecords" configuration option
>(under "BIND configuration options") is empty for now. You should then
>be able to add your existing domains. You probably only want to use
>the "defaultrecords" option after importing data from your existing
>nameservers and setting up a BIND export.
>
> > I have typed a domain in the Configuration setting "domain - Your domain
> > name".
>
>This configuration option is in the "Deprecated" section and is not
>recommended for use with new installations.
>
>--
>_ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20030924/9754a22f/attachment.html
More information about the freeside-users
mailing list