jobqueue not working

Mario Zuppini tribune at cybersol.com.au
Wed May 1 17:33:40 PDT 2002


Everything is nearly working 100% except when I add a user, the username
and passwords are getting added to
the radcheck table in my icradius database, but the users are not
getting added to the system.
 
Below I have selected teh job queue where im trying to get it going by
clicking on *retry* and then i have the error
below it.
 
Net::SSH::ssh_cmd	 root at 203.34.142. <mailto:root at 203.34.142.143>
143 /usr/sbin/useradd -d /home-clients/louie3600 -m -s /bin/false
louie3600	 Wed May 1 17:47:02 2002	 locked ( retry
<http://203.34.142.9/aspdocs//misc/queue.cgi?jobnum=55&action=new>  |
remove
<http://203.34.142.9/aspdocs//misc/queue.cgi?jobnum=55&action=del>  )
louie3600 at cybersol.com.au	
 
The error im getting on 203.34.142.8 server is as follows..ssh debug log
in auth.log
 
May  2 10:23:41 hq sshd[548]: debug1: Forked child 6109.
May  2 10:23:41 hq sshd[6109]: Connection from 203.34.142.9 port 1039
May  2 10:23:41 hq sshd[6109]: Did not receive identification string
from 203.34.142.9
May  2 10:23:41 hq sshd[6109]: debug1: Calling cleanup 0x8066dbc(0x0)
 
Now from what I can gather, it tries to execute that ssh_cmd as the
freeside user to get to 203.34.142.143 as root, I have all
the rsa keys done and i can manually ssh across via the freeside account
to root account on 203.34.142.143 without any problem or password
queries..
 
To test the Net::SSH module in perl as I thought this might of been the
problem, I went and got the example from cpan
to test the module to make sure it works and the arguments for it where
correct in the jobqueue that you see above.
The test perl file I used that works correctly and added the user was as
follows..
 
#!/usr/bin/perl
 
use Net::SSH qw(sshopen2);
use strict;
  
    my $user = "root";
    my $host = "203.34.142.143";
    my $cmd = "/usr/sbin/useradd -d /home-clients/cocacola11 -m -s
/bin/false cocacola11";       
             
sshopen2("$user\@$host", *READER, *WRITER, "$cmd") || die "ssh: $!";

                                                
    while (<READER>) { 
       chomp();
       print "$_\n";
     }       
 

close(READER);
close(WRITER);
 
-----------------------------
that works 100% perfect and added the user, so I am unsure and have no
idea why when i click RETRY on the jobqueue
there that im getting that error in the auth.log for ssh..
 
Machine : i386
OS : Debian 2.2
Radius : IC-Radius 0.18.1
Freeside v1.4.0pre11
Perl v5.6.1
Server version: Apache/1.3.23 (Unix) Debian GNU/Linux (apache is running
as the freeside user)
 
 
Thank You
 
Mario Zuppini
Systems Administrator
 
Total Cybersolutions
www.cybersol.com.au <http://www.cybersol.com.au/> 
 
PO BOX 2081
Windsor QLD 4030
Australia
Phone : +617-3861-0882
Fax: +617-3861-0884
sysadmin at cybersol.com.au
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20020502/68058d8f/attachment.htm


More information about the freeside-users mailing list