• [rslight] Sync Without Authentication - Old Authentication QuestionRevisited

    From SugarBug@3883@sugar.bug to rocksolid.nodes.help on Wed Oct 9 18:43:41 2024
    From Newsgroup: rocksolid.nodes.help

    I vaguely recall in the past that I asked about configuring a rslight
    section to peer with a open server that doesn't authenticate. Long
    since I have deleted that test setup and I can't seem to find the
    newsgroup messages where we discussed this. If anyone else can jog my
    memory that would be greatly appreciated.

    The goal is to configure rslight to pull and push messages without
    making any attempt to authenticate to the remote peer, as in, sending no authinfo command headers with the session. I can't remember how we
    worked this out, so please refresh my memory. Or if anyone knows where
    to find the old thread please point me to a message-id.

    Thanks in advance.
    --
    3883@sugar.bug

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Retro Guy@retroguy@novabbs.com to rocksolid.nodes.help on Wed Oct 9 23:51:39 2024
    From Newsgroup: rocksolid.nodes.help

    On Wed, 9 Oct 2024 23:43:41 +0000, SugarBug wrote:

    I vaguely recall in the past that I asked about configuring a rslight
    section to peer with a open server that doesn't authenticate. Long
    since I have deleted that test setup and I can't seem to find the
    newsgroup messages where we discussed this. If anyone else can jog my
    memory that would be greatly appreciated.

    The goal is to configure rslight to pull and push messages without
    making any attempt to authenticate to the remote peer, as in, sending no authinfo command headers with the session. I can't remember how we
    worked this out, so please refresh my memory. Or if anyone knows where
    to find the old thread please point me to a message-id.

    Thanks in advance.

    I actually do not remember this.

    If we can't work it out easily, I can create a function in rslight to do
    that pretty easily. I'll check back here tomorrow about it.
    --
    Retro Guy
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Retro Guy@retroguy@novabbs.com to rocksolid.nodes.help on Thu Oct 10 17:39:41 2024
    From Newsgroup: rocksolid.nodes.help

    On Wed, 9 Oct 2024 23:51:39 +0000, Retro Guy wrote:

    On Wed, 9 Oct 2024 23:43:41 +0000, SugarBug wrote:

    I vaguely recall in the past that I asked about configuring a rslight
    section to peer with a open server that doesn't authenticate. Long
    since I have deleted that test setup and I can't seem to find the
    newsgroup messages where we discussed this. If anyone else can jog my
    memory that would be greatly appreciated.

    The goal is to configure rslight to pull and push messages without
    making any attempt to authenticate to the remote peer, as in, sending no
    authinfo command headers with the session. I can't remember how we
    worked this out, so please refresh my memory. Or if anyone knows where
    to find the old thread please point me to a message-id.

    Thanks in advance.

    I actually do not remember this.

    If we can't work it out easily, I can create a function in rslight to do
    that pretty easily. I'll check back here tomorrow about it.

    I just dug through the code (yeah I know, I wrote it lol) and it looks
    like if remote_auth_user is unset or == '', authentication will be
    skipped:

    if ((isset($CONFIG['remote_auth_user'])) && (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user'] !=
    "")) {
    fputs($ns, "AUTHINFO USER " . $CONFIG['remote_auth_user'] . "\r\n");
    $weg = line_read($ns);
    fputs($ns, "AUTHINFO PASS " . $CONFIG['remote_auth_pass'] . "\r\n");
    $weg = line_read($ns);
    if (substr($weg, 0, 3) != "281" && ! (isset($post_server)) &&
    ($post_server != "")) {
    echo "<p>" . $text_error["error:"] . "</p>";
    echo "<p>" . $text_error["auth_error"] . "</p>";
    }
    }

    Have you tried setting it (in rslight.inc.php) to ''? Please let us know
    if that works for you.
    --
    Retro Guy
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From SugarBug@3883@sugar.bug to rocksolid.nodes.help on Thu Oct 10 15:56:59 2024
    From Newsgroup: rocksolid.nodes.help

    On Thu, 10 Oct 2024 17:39:41 +0000
    Retro Guy <retroguy@novabbs.com> wrote:

    On Wed, 9 Oct 2024 23:51:39 +0000, Retro Guy wrote:

    On Wed, 9 Oct 2024 23:43:41 +0000, SugarBug wrote:

    I vaguely recall in the past that I asked about configuring a
    rslight section to peer with a open server that doesn't
    authenticate. Long since I have deleted that test setup and I
    can't seem to find the newsgroup messages where we discussed this.
    If anyone else can jog my memory that would be greatly appreciated.

    The goal is to configure rslight to pull and push messages without
    making any attempt to authenticate to the remote peer, as in,
    sending no authinfo command headers with the session. I can't
    remember how we worked this out, so please refresh my memory. Or
    if anyone knows where to find the old thread please point me to a
    message-id.

    Thanks in advance.

    I actually do not remember this.

    If we can't work it out easily, I can create a function in rslight
    to do that pretty easily. I'll check back here tomorrow about it.

    I just dug through the code (yeah I know, I wrote it lol) and it looks
    like if remote_auth_user is unset or == '', authentication will be
    skipped:

    if ((isset($CONFIG['remote_auth_user'])) && (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user']
    != "")) {
    fputs($ns, "AUTHINFO USER " . $CONFIG['remote_auth_user'] .
    "\r\n"); $weg = line_read($ns);
    fputs($ns, "AUTHINFO PASS " . $CONFIG['remote_auth_pass'] .
    "\r\n"); $weg = line_read($ns);
    if (substr($weg, 0, 3) != "281" && ! (isset($post_server)) && ($post_server != "")) {
    echo "<p>" . $text_error["error:"] . "</p>";
    echo "<p>" . $text_error["auth_error"] . "</p>";
    }
    }

    Have you tried setting it (in rslight.inc.php) to ''? Please let us
    know if that works for you.


    Pulling without auth works for some servers but not for others. I ran
    some tests as advised above with mixed results.

    I tested by trying to pull from several open servers. For some
    servers it works. For some it fails. For the failures, spoolnews.log
    returns failure to connect.

    # success (each one worked first try)
    news.i2pn2.org
    news.novabbs.org
    news.blueworldhosting.com
    news.mixmin.net
    news.chmurka.net
    nntp.csiph.com

    # failure (tested each one for many runs of cron with 100% failures) news.neodome.net
    paganini.bofh.team
    news.bbs.nz
    news.usenet.ovh

    # mixed
    news.grc.com (119 only)

    GRC had initial double failure to connect then afterward successful
    pulls.

    It does not seem to matter whether or not I use SSL on the failed
    hosts. The errors in the spoolnews.log are the same, like this:

    Failed to connect to news.bbs.nz:119
    Failed to connect to news.bbs.nz:563
    Failed to connect to news.neodome.net:119
    Failed to connect to news.neodome.net:563
    Failed to connect to news.usenet.ovh:119
    Failed to connect to paganini.bofh.team:119
    Failed to connect to paganini.bofh.team:563
    Failed to connect to news.grc.com:119

    What else should I look at?
    --
    3883@sugar.bug

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Retro Guy@retroguy@novabbs.com to rocksolid.nodes.help on Thu Oct 10 22:05:35 2024
    From Newsgroup: rocksolid.nodes.help

    On Thu, 10 Oct 2024 20:56:59 +0000, SugarBug wrote:

    On Thu, 10 Oct 2024 17:39:41 +0000
    Retro Guy <retroguy@novabbs.com> wrote:

    On Wed, 9 Oct 2024 23:51:39 +0000, Retro Guy wrote:

    On Wed, 9 Oct 2024 23:43:41 +0000, SugarBug wrote:

    I vaguely recall in the past that I asked about configuring a
    rslight section to peer with a open server that doesn't
    authenticate. Long since I have deleted that test setup and I
    can't seem to find the newsgroup messages where we discussed this.
    If anyone else can jog my memory that would be greatly appreciated.

    The goal is to configure rslight to pull and push messages without
    making any attempt to authenticate to the remote peer, as in,
    sending no authinfo command headers with the session. I can't
    remember how we worked this out, so please refresh my memory. Or
    if anyone knows where to find the old thread please point me to a
    message-id.

    Thanks in advance.

    I actually do not remember this.

    If we can't work it out easily, I can create a function in rslight
    to do that pretty easily. I'll check back here tomorrow about it.

    I just dug through the code (yeah I know, I wrote it lol) and it looks
    like if remote_auth_user is unset or == '', authentication will be
    skipped:

    if ((isset($CONFIG['remote_auth_user'])) &&
    (isset($CONFIG['remote_auth_pass'])) && ($CONFIG['remote_auth_user']
    != "")) {
    fputs($ns, "AUTHINFO USER " . $CONFIG['remote_auth_user'] .
    "\r\n"); $weg = line_read($ns);
    fputs($ns, "AUTHINFO PASS " . $CONFIG['remote_auth_pass'] .
    "\r\n"); $weg = line_read($ns);
    if (substr($weg, 0, 3) != "281" && ! (isset($post_server)) &&
    ($post_server != "")) {
    echo "<p>" . $text_error["error:"] . "</p>";
    echo "<p>" . $text_error["auth_error"] . "</p>";
    }
    }

    Have you tried setting it (in rslight.inc.php) to ''? Please let us
    know if that works for you.


    Pulling without auth works for some servers but not for others. I ran
    some tests as advised above with mixed results.

    I tested by trying to pull from several open servers. For some
    servers it works. For some it fails. For the failures, spoolnews.log
    returns failure to connect.

    # success (each one worked first try)
    news.i2pn2.org
    news.novabbs.org
    news.blueworldhosting.com
    news.mixmin.net
    news.chmurka.net
    nntp.csiph.com

    # failure (tested each one for many runs of cron with 100% failures) news.neodome.net
    paganini.bofh.team
    news.bbs.nz
    news.usenet.ovh

    # mixed
    news.grc.com (119 only)

    GRC had initial double failure to connect then afterward successful
    pulls.

    It does not seem to matter whether or not I use SSL on the failed
    hosts. The errors in the spoolnews.log are the same, like this:

    Failed to connect to news.bbs.nz:119
    Failed to connect to news.bbs.nz:563
    Failed to connect to news.neodome.net:119
    Failed to connect to news.neodome.net:563
    Failed to connect to news.usenet.ovh:119
    Failed to connect to paganini.bofh.team:119
    Failed to connect to paganini.bofh.team:563
    Failed to connect to news.grc.com:119

    What else should I look at?

    I just tried two on a test site and they worked:

    Oct 10 21:55:14 rocksolid Connecting: paganini.bofh.team:119
    Oct 10 21:55:21 rocksolid paganini.bofh.team for
    rocksolid.shared.freenet We are up to date

    Oct 10 22:00:13 rocksolid Connecting: news.neodome.net:119
    Oct 10 22:00:15 rocksolid news.neodome.net for rocksolid.shared.freenet
    We are up to date

    My settings are:

    'remote_server' => 'news.neodome.net', (or paganini)
    'remote_port' => '119',
    'remote_auth_user' => '',

    There are two places in spoolnews.php that would log, "Failed to
    connect". Can you provide some surrounding lines so I can tell which one
    it is?

    Also, double check you did not unset 'server_auth_user'. That is for the internal server (the rslight nntp server). This would also cause the
    issue, and I see now in the code that I incorrectly claim it is the
    remote server. I'll fix that.
    --
    Retro Guy
    --- Synchronet 3.21a-Linux NewsLink 1.2