• Password setting for Irc Client accessing a private irc server

    From Odusseus71@VERT to Digital Man on Wed Jul 31 11:27:26 2024
    Hello Digital Man,

    here are some results of my experimenting on irc client, with the main intent of sharing my experience:

    The irc.js didn't support a password "override" (e.g. via command-line), i.e. it always sent to current user's password via the >IRC "PASS" message upon connecting to a server. I just committed a change to allow the sysop to override the password >sent via the '-p' command-line option to irc.js. Please let me know how that works for you.

    Yes, connecting by current user's password works (I only had to disable pw encryption in ircd-hybrid config) and this could fit the scope of my project, actually (connection of very few BBS clients/terminals running on retro machines like Amiga and C64).

    Regarding the SysOp power to override the password, I understood that, logged as SO after changed the default irc address/port in mods/chat_sec.js directly, I could input a command like:

    !EXEC ?irc.js -p "IRCPASSWORD" but this returned some js variable type errors (and, considering my very poor coding attitude, I did not insist).

    So, the issue that is left (by using a common users password as irc password) is that irc.js/Deuce's IRC client module does continuosly rewrite/update a single line on Amiga's DC Telnet screen (both on WinUAE and real Amiga), loosing all the chat history.

    I was so close...

    Thanks a lot

    BR

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Odusseus71 on Wed Jul 31 18:20:05 2024
    Re: Password setting for Irc Client accessing a private irc server
    By: Odusseus71 to Digital Man on Wed Jul 31 2024 11:27 am

    !EXEC ?irc.js -p "IRCPASSWORD" but this returned some js variable type errors (and, considering my very poor coding attitude, I did not insist).

    What errors? Why the quotes around the password? What shell support "!EXEC ..." commands?

    There's a lot you're not telling us here. :-)
    --
    digital man (rob)

    Breaking Bad quote #19:
    Yeah, I know these two knob jobs. - Hank Schrader
    Norco, CA WX: 86.9øF, 33.0% humidity, 10 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Odusseus71@VERT to Digital Man on Thu Aug 1 06:19:07 2024
    Hello Rob,

    you're right: there is a lot I don't know about how BBS potential and mechanisms, expecially about Command Shells and SysOp stuff, I'm sorry and your patience and any help is really appreciated.

    Here are my steps;

    - I've changed IRC server/port in chat_sec.js directly, for not to rely on modopts.ini IRC settings (otherwise first steps below do not work);

    - I connect to BBS by a standard account having password = ircd-hybrid server password, get to Chat section (C key) and activate IRC Cient (R key), it works and IRC Client connect successfully to my personal irc server based on ircd-hybrid;

    - then, I re-connect to BBS and login by SysOp account, having a different password than the one of ircd-hybrid;

    - If I get to Chat section (C key) and activate IRC client (R key), I obviously can connect to ircd-hybrid server but get "Bad Password" in this case;

    - therefore, following the instructions in SysOp menu (! key), I enter the command in the bottom line of the Main page (and this is where my fundamental lack of knowledge and correct understanding of command shell comes out...), just after the names of current group and subgroup: !EXEC ?irc.js -p IRCPWD

    - the IRC Module 1.62 starts but it does return the error: !Javascript irc.js line 126: Error: can't convert irc-port to an integer

    Just as a note, my whole knowledge about BBS in general and Synchronet comes from the Wiki, of course, and this tutorial page: https://renaissancedork.com/bbsing/

    Thank you very much

    BR

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Odusseus71 on Thu Aug 1 10:44:06 2024
    Re: Password setting for Irc Client accessing a private irc server
    By: Odusseus71 to Digital Man on Thu Aug 01 2024 06:19 am

    - the IRC Module 1.62 starts but it does return the error: !Javascript irc.js line 126: Error: can't convert irc-port to an integer

    In the stock exec/irc.js file, line 126 contains: sock.bind(0,server.interface_ip_address); // Use globally defined intereface in sbbs.ini

    Did you change this line?
    --
    digital man (rob)

    Synchronet "Real Fact" #4:
    Synchronet version 3 is written mostly in C, with some C++, x86 ASM, and Pascal Norco, CA WX: 78.4øF, 52.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Odusseus71@VERT to Digital Man on Thu Aug 1 11:36:48 2024
    Nope, irc.js is untouched in the exec dir and this is the copy of the whole section:

    /* Command-line args can override default server values */ if(argv[cmdarg]!=undefined)
    irc_server=argv[cmdarg++];
    if(argv[cmdarg]!=undefined)
    irc_port=Number(argv[cmdarg++]);
    if(argv[cmdarg]!=undefined)
    default_channel=argv[cmdarg++];

    default_channel=default_channel.replace(/\s+/g,"_");

    sock=new Socket();
    sock.bind(0,server.interface_ip_address); // Use globally defined intereface in sbbs.ini
    history=new History();
    screen=new Screen();

    Also, no changes to the [Global] section of sbbs.ini:

    [Global]
    ; Override system address for this instance (optional):
    Hostname =
    ; IP address of network interface to bind to (defaults to ANY/ALL interfaces):
    Interface =
    ; IPv4 address of network interface to use for outgoing connections
    OutboundInterface =
    ; Override the SBBSCTRL environment variable (optional):
    CtrlDirectory =
    ........

    Thanks a lot

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Odusseus71 on Thu Aug 1 12:14:45 2024
    Re: Password setting for Irc Client accessing a private irc server
    By: Odusseus71 to Digital Man on Thu Aug 01 2024 11:36 am

    Nope, irc.js is untouched in the exec dir and this is the copy of the whole section:

    The error message you quoted mentions line 126 of irc.js. What is on line 126 of your exec/irc.js file?

    The error message you quoted said "can't convert irc-port to an integer" - was that error actually copy/pasted, literally, or did you retype it (possibly with a typo)? The reason I ask is "irc-port" does not exist in irc.js, but "irc_port" does (underscore, not dash).

    Anyway, the error seems to imply there was an additional argument provided after the "-p <password>" on the irc.js command-line. I'll re-test the -p option myself and make sure I didn't introduce a bug there, but the code looks okay at a glance.
    --
    digital man (rob)

    Sling Blade quote #9:
    Doyle Hargraves: Morris here is a modern-day poet, kinda like in olden times. Norco, CA WX: 82.7øF, 47.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Odusseus71 on Thu Aug 1 12:16:47 2024
    Re: Password setting for Irc Client accessing a private irc server
    By: Digital Man to Odusseus71 on Thu Aug 01 2024 12:14 pm

    Anyway, the error seems to imply there was an additional argument provided after the "-p <password>" on the irc.js command-line. I'll re-test the -p option myself and make sure I didn't introduce a bug there, but the code looks okay at a glance.

    I just ran the current exec/irc.js using the "exec" sysop command: "?irc.js -p password" and there was no error - ran as expected.
    --
    digital man (rob)

    Steven Wright quote #4:
    99% of lawyers give the rest a bad name.
    Norco, CA WX: 82.7øF, 47.0% humidity, 0 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Odusseus71@VERT to Digital Man on Fri Aug 2 07:04:47 2024
    The error message you quoted said "can't convert irc-port to an integer" - was that error actually copy/pasted, literally, or did you retype it (possibly with a typo)? The reason I ask is "irc-port" does not exist in irc.js, but "irc_port" does (underscore, not dash).

    Yes, a typo, since I rewrited the error shown in Syncterm.

    Thanks

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Odusseus71@VERT to Digital Man on Fri Aug 2 07:06:09 2024
    I just ran the current exec/irc.js using the "exec" sysop command: "?irc.js -p password" and there was no error - ran as expected.

    OOk, will try again.

    Thanks

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Odusseus71@VERT to Digital Man on Fri Aug 2 07:37:04 2024
    SUCCESS: now it works for me, thanks a lot (maybe I made mistakes with irc.js versions between exec and mods dirs)

    Still, I have to figure out why the Deuce's IRC client module only update one line on Amiga DC Telnet, whilst it properly shows the history on Syncterm (since I have experienced similar behaviour with ANSI screens not properly converted, I assume it could be related to Ctrl-A coding, in a way that does not affect Syncterm but does with DC Telnet).

    Thank you very much

    Marco

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Odusseus71 on Fri Aug 2 10:10:56 2024
    Re: Password setting for Irc Client accessing a private irc server
    By: Odusseus71 to Digital Man on Fri Aug 02 2024 07:04 am


    The error message you quoted said "can't convert irc-port to an integer" - was that error actually copy/pasted, literally, or did you retype it (possibly with a typo)? The reason I ask is "irc-port" does not exist in irc.js, but "irc_port" does (underscore, not dash).

    Yes, a typo, since I rewrited the error shown in Syncterm.

    Tip: Use copy/paste of log/error messages (right-click to paste in SyncTERM). --
    digital man (rob)

    Rush quote #84:
    Looming low & ominous, twilight premature t-heads rumbling a distance overture Norco, CA WX: 86.0øF, 46.0% humidity, 4 mph WSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net