Door Games Unlimited

Welcome, Guest.


Subject: Re: New User Script Date: Thu Mar 06 2014 13:16:15
From: Lab Rat To: Digital Man

 > 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!


Lab Rat.

---
 ■ Synchronet ■ Toxic Laboratory BBS - Birmingham, UK - toxicbbs.com

Previous Message       Next Message
In Reply To: New User Script (Digital Man)
Replies: Re: New User Script (MCMLXXIX)Re: New User Script (Digital Man)