Door Games Unlimited

Welcome, Guest.


Subject: Re: New User Script Date: Fri Mar 07 2014 15:32:23
From: Digital Man To: Lab Rat

  Re: Re: New User Script
  By: Lab Rat to Digital Man on Thu Mar 06 2014 01:16 pm

 >  > Yeah, that would be a better approach. If you're using the current
 >  > development build (v3.16), then you can pass the username and password
 >  > to the JavaScript bbs.rlogin_gate method (as the 2nd and 3rd arguments).
 >  > Like this:
 >  >
 >  > bbs.rlogin_gate(host, name, pass);
 >  >
 >  > If you use that instead of bbs.telnet_gate() in the remote systems's
 >  > rlogin.js, that'll allow you to pass whatever name/pass combination you
 >  > wish via RLogin.
 >  >
 >  >                                             digital man
 >
 > I'm afraid I just cannot get rlogin_gate to do anything. When I run it in
 > JavaScript, absolutely nothing happens:
 >
 >     load("sbbsdefs.js");
 >
 >     var host="192.168.0.172";
 >     var name="Bbs Client";
 >     var pass="password";
 >
 >     bbs.rlogin_gate(host, name, pass);
 >
 >     console.writeln("Finished");
 >     console.pause();
 >
 > I don't even get to see the 'Finished' text. If I connect to the system
 > 192.168.0.172 from SyncTERM using RLogin and those same credentials, it
 > connects just fine.
 >
 > If I substitute the rlogin_gate with telnet_gate and use this line:
 >
 >     bbs.telnet_gate(host, TG_RLOGIN);
 >
 > This connects fine, but of course it's passing the logged in user's
 > credentials, not the specific ones I want to pass.
 >
 > Any ideas appreciated!

I tested it and noticed that it was throwing an exception (in a Win32 debug 
build) due to a variable being used without being initialized. Are you building 
the code yourself? Anyway, I made substatial changes to this over the past 1-2 
days and suggest you get the latest development build and use that (or get 
latest source from CVS) - it's working fine for me.

You'll need to reverse the order of the 'name' and 'pass' arguments however. 
RLogin doesn't actually have a 'password' as part of the protocol, but 
Synchronet does support it if it's in the *first* string passed upon RLogin 
connection (which correlates with the *first* argument to bbs.rlogin_gate).

                                            digital man

Synchronet "Real Fact" #67:
Robert D. Bouman, the author of SyncEdit, died in the mid to late 1990's.
Norco, CA WX: 72.8°F, 39.0% humidity, 7 mph SE wind, 0.00 inches rain/24hrs

---
 ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net

Previous Message       Next Message
In Reply To: Re: New User Script (Lab Rat)
Replies: Re: New User Script (Lab Rat)