OpenSRS returns this XML when your IP address is not allowed...

<?xml version='1.0' encoding="UTF-8" standalone="no" ?><!DOCTYPE OPS_envelope
SYSTEM
"ops.dtd"><OPS_envelope><header><version>0.9</version><msg_id>1.1967217422008</msg_id><msg_type>standard</msg_type></header><body><data_block><dt_assoc><item
key="response_text">Connection refused: invalid ip address</item><item
key="response_code">555</item><item key="protocol">XCP</item><item
key="action">REPLY</item></dt_assoc></data_block></body></OPS_envelope>

The latest released verify_install.cgi does not check for this return... it
only checks for the version key.
if you change the 'if' block around line 238 of verify_install.cgi to this if
block, you should see the refused IP message.  (This change has been added to
the next release of the client software).

    if ( $prompt->{response_code} == 555 ) {
        # the ip address from which we are connecting is not accepted
        return ( $prompt->{response_text} );
    } elsif ( $prompt->{attributes}->{sender} !~ /OpenSRS\sSERVER/ ||
      $prompt->{attributes}->{version} !~ /^XML/ ) {
 return ( "401\tUnrecognized Peer" );
    }

Dan


Tom Savino wrote:

> I got it fixed YA !!!! It had to do with the way that I had the Routing and
> Gateways set in my box........Thanks...
> -------------------------------------------------------------
>
>                      Tom Savino
>                            CEO
>                  2Tone Web Design
>  "The Only Limitation Is The Imagination"
>                 Phone: 727-343-4426
>                      Cell: 727-481-3180
>                      Fax: 815-550-7317
>         http://www.2tonewebdesign.com
>         http://www.2tonedomains.com
> ----- Original Message -----
> From: "Bob Martin" <[EMAIL PROTECTED]>
> To: "Tom Savino" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, October 23, 2000 1:54 PM
> Subject: Re: ERROR: Unable to login to server: Authentication
>
> > sounds like you need to report the IP address of the ethernet adapter on
> the
> > machine your registration system is housed on.
> >
> > For example, if the ethernet address of my linux box is 192.168.0.2 and my
> > OpenSRS system is on a virtual host at 192.168.0.4 I would report both
> > addresses to OpenSRS.
> >
> > I do not understand why, but this happened to be the case with at least 2
> of
> > the 70 or 80 that I've done.
> >
> > Bob Martin
> > Shore Communications, LLC
> > http://www.shorecom.com
> > Website Hosting from $9.95/month
> > Internet Access from $10.25/month
> > Domain Registration $20 No Internic Fees!
> >
> > ----- Original Message -----
> > From: Tom Savino <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, October 23, 2000 12:04 PM
> > Subject: ERROR: Unable to login to server: Authentication
> >
> >
> > > OK.......I have installed 100 opensrs systems for other companies and
> > never
> > > come across this type of problem. I have Generate New Private Key 12
> times
> > > and had tech support do it for me also and they said that it was working
> > > fine on there end but  I still get this error I have used different
> types
> > of
> > > text editor, reinstalled PM lib files transferred the files in different
> > > modes everything that I could think of to do I have tried. It works fine
> > in
> > > the test system but when I go to the live system I get this error I have
> > > been on the phone with tech support and they tell me its on my end and
> > there
> > > is nothing they can do. Has this happened to anybody if so please tell
> me
> > > how to fix or debug this.The funny thing is it is my personal reg system
> > for
> > > my company, I have setup the same system last week on a box just like
> mine
> > > same software and hardware on the same network and his works fine.
> Running
> > > Redhat 6.1, perl 5.00503
> > > http://www.2tonedomains.com/cgi-bin/verify_install.cgi and you can get
> the
> > > rest here.
> > > -------------------------------------------------------------
> > >
> > >                      Tom Savino
> > >                            CEO
> > >                  2Tone Web Design
> > >  "The Only Limitation Is The Imagination"
> > >                 Phone: 727-343-4426
> > >                      Cell: 727-481-3180
> > >                      Fax: 815-550-7317
> > >         http://www.2tonewebdesign.com
> > >         http://www.2tonedomains.com
> >
> >

Reply via email to