Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #429: Temporal anomaly


rocksolid / Rocksolid Nodes Help / [rslight] Sync Without Authentication - Old Authentication Question Revisited

SubjectAuthor
* [rslight] Sync Without Authentication - Old Authentication Question RevisitedSugarBug
`* Re: [rslight] Sync Without Authentication - Old Authentication Question RevisiteRetro Guy
 `* Re: [rslight] Sync Without Authentication - Old Authentication Question RevisiteRetro Guy
  `* Re: [rslight] Sync Without Authentication - Old Authentication Question RevisiteSugarBug
   `- Re: [rslight] Sync Without Authentication - Old Authentication Question RevisiteRetro Guy

1
Subject: [rslight] Sync Without Authentication - Old Authentication Question Revisited
From: SugarBug
Newsgroups: rocksolid.nodes.help
Organization: To protect and to server
Date: Wed, 9 Oct 2024 23:43 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: [rslight] Sync Without Authentication - Old Authentication Question
Revisited
Date: Wed, 9 Oct 2024 18:43:41 -0500
Organization: To protect and to server
Message-ID: <ve74et$33r7t$1@paganini.bofh.team>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 9 Oct 2024 23:43:25 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3271933"; posting-host="wgKkEL/bkLdKSEYBBpHkTg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
X-Notice: Filtered by postfilter v. 0.9.3
X-TOR-Router: sha256:MTg1LjcuMzMuMTQ2 --
View all headers

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

Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question Revisited
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
Date: Wed, 9 Oct 2024 23:51 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question
Revisited
Date: Wed, 9 Oct 2024 23:51:39 +0000
Organization: Rocksolid Light
Message-ID: <d12092c202b3b3a3bbcc9d528b254482@www.novabbs.org>
References: <ve74et$33r7t$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1328255"; mail-complaints-to="usenet@i2pn2.org";
posting-account="HNchV9coSOli+kkOHciCZlGs2VaRn7Emh38jWV1k174";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$Sfo1CSCLDfpnvq6MY31fU.UtjF4AnZJ0t.VQq16LhGkhs0FsoaSTK
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 28547bffeec402cc2e544e2f8e28cc9329f66434
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
View all headers

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

Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question Revisited
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
Date: Thu, 10 Oct 2024 17:39 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question
Revisited
Date: Thu, 10 Oct 2024 17:39:41 +0000
Organization: Rocksolid Light
Message-ID: <81ac4239e7c7fae2ae889d442f66c8d4@www.novabbs.org>
References: <ve74et$33r7t$1@paganini.bofh.team> <d12092c202b3b3a3bbcc9d528b254482@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1436439"; mail-complaints-to="usenet@i2pn2.org";
posting-account="HNchV9coSOli+kkOHciCZlGs2VaRn7Emh38jWV1k174";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$FYTYt7YBf2WYFtds2rja3.ZLnvUE5PB082qKLiJHZtEIFIsjTTq1G
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Rslight-Posting-User: 28547bffeec402cc2e544e2f8e28cc9329f66434
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

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

Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question Revisited
From: SugarBug
Newsgroups: rocksolid.nodes.help
Organization: To protect and to server
Date: Thu, 10 Oct 2024 20:56 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!newsfeed.bofh.team!paganini.bofh.team!tor-network!not-for-mail
From: 3883@sugar.bug (SugarBug)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Sync Without Authentication - Old Authentication
Question Revisited
Date: Thu, 10 Oct 2024 15:56:59 -0500
Organization: To protect and to server
Message-ID: <ve9f32$3c43d$1@paganini.bofh.team>
References: <ve74et$33r7t$1@paganini.bofh.team>
<d12092c202b3b3a3bbcc9d528b254482@www.novabbs.org>
<81ac4239e7c7fae2ae889d442f66c8d4@www.novabbs.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Oct 2024 20:57:07 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3543149"; posting-host="Zrq5jVdirmxP30mE+jA0sg.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A";
X-TOR-Router: sha256:MTg1LjI0MS4yMDguMjA2 --
X-Notice: Filtered by postfilter v. 0.9.3
View all headers

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

Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question Revisited
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Rocksolid Light
Date: Thu, 10 Oct 2024 22:05 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.mixmin.net!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: [rslight] Sync Without Authentication - Old Authentication Question
Revisited
Date: Thu, 10 Oct 2024 22:05:35 +0000
Organization: Rocksolid Light
Message-ID: <7a6494bc2a32bc022d54349dac67dddd@www.novabbs.org>
References: <ve74et$33r7t$1@paganini.bofh.team> <d12092c202b3b3a3bbcc9d528b254482@www.novabbs.org> <81ac4239e7c7fae2ae889d442f66c8d4@www.novabbs.org> <ve9f32$3c43d$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1466228"; mail-complaints-to="usenet@i2pn2.org";
posting-account="HNchV9coSOli+kkOHciCZlGs2VaRn7Emh38jWV1k174";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 28547bffeec402cc2e544e2f8e28cc9329f66434
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$/iUiTeegZEGG9WGsbAKuCeG2pBu/zo5uNrR9UktD2R/Md5YZPfoFe
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

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

1

rocksolid light 0.9.8
clearnet tor