Thread View: news.software.nntp
8 messages
8 total messages
Started by Flibsy
Fri, 08 Feb 2013 17:28
pnews auth_method nntp fails on local server
Author: Flibsy
Date: Fri, 08 Feb 2013 17:28
Date: Fri, 08 Feb 2013 17:28
28 lines
2116 bytes
2116 bytes
Hi all, Does anyone have any experience with running INND and the PHP News Reader 2.6.2 client on the same server, using auth_method nntp? Currently my web news client runs without authentication, and that works ok. When I change that to authenticate access thru the nntp server of my ISP, that works, it's accepted and the client starts an nnrpd session with inn (logging in with a fixed user id). But that's not what I want, I want everyone who is authorized for my nttp to be able to login from the web. But when I configure localhost or a domain name of my server for authentication in Pnews, it fails, no messages in the news.notice log. It doesn't get there obviously. Could this be a config issue, that makes inn reject the auth requests coming from apache/pnews on the same server? I should mention that I'm also running pullnews to get some global groups in from my ISP, to get them downstream into Inn I had to add my FreeBSD jail's IP address into the incoming.conf ME address list. Any help, tips, advice is appreciated. -- Flibsy
Re: pnews auth_method nntp fails on local server
Author: Julien ÉLIE
Date: Sat, 09 Feb 2013 15:09
Date: Sat, 09 Feb 2013 15:09
23 lines
2256 bytes
2256 bytes
Hi Flibsy, > But when I configure localhost or a domain name of my server for > authentication in Pnews, it fails, no messages in the news.notice > log. It doesn't get there obviously. Are you sure nnrpd gets the connection or is it only handled by innd? Maybe innd believes the connection comes from a peer, and Pnews does not sends the MODE READER command. > Could this be a config issue, that makes inn reject the auth > requests coming from apache/pnews on the same server? Did you try to run a separate nnrpd daemon on a different port and configure Pnews to use that port? Maybe the issue comes from incoming.conf that makes "localhost" be handled by innd and not by nnrpd? -- Julien ÉLIE « Il faut mettre un frein à l'immobilisme. »
Re: pnews auth_method nntp fails on local server
Author: Flibsy
Date: Sat, 09 Feb 2013 15:43
Date: Sat, 09 Feb 2013 15:43
38 lines
2448 bytes
2448 bytes
On 02/09/2013 04:09 PM, Julien ÉLIE wrote: > Hi Flibsy, > >> But when I configure localhost or a domain name of my server for >> authentication in Pnews, it fails, no messages in the news.notice >> log. It doesn't get there obviously. > > Are you sure nnrpd gets the connection or is it only handled by innd? > Maybe innd believes the connection comes from a peer, and Pnews does not > sends the MODE READER command. Hm.. That's an idea. I'll look into the Pnews code to check that. >> Could this be a config issue, that makes inn reject the auth >> requests coming from apache/pnews on the same server? > > Did you try to run a separate nnrpd daemon on a different port and > configure Pnews to use that port? No, I didn't, I'm not that familiar with INN yet. I will check if I can configure that - would this be an extra nnrpd, so normal operation on port 119 continues? > Maybe the issue comes from incoming.conf that makes "localhost" be > handled by innd and not by nnrpd? I've been thinking the same thing, but when I skip the authentication, the web news session works as it should, obeying the reader.conf. Anyway, I will check that one, by disactivating the me group in incoming.conf Thanks so far. -- Flibsy
Re: pnews auth_method nntp fails on local server
Author: Flibsy
Date: Sat, 09 Feb 2013 20:40
Date: Sat, 09 Feb 2013 20:40
33 lines
2377 bytes
2377 bytes
On 02/09/2013 04:43 PM, Flibsy wrote: > On 02/09/2013 04:09 PM, Julien ÉLIE wrote: >> Hi Flibsy, >> >>> But when I configure localhost or a domain name of my server for >>> authentication in Pnews, it fails, no messages in the news.notice >>> log. It doesn't get there obviously. >> >> Are you sure nnrpd gets the connection or is it only handled by innd? >> Maybe innd believes the connection comes from a peer, and Pnews does not >> sends the MODE READER command. That's it. I found out that for the session itself, Pnews indeed opens the session and sends the MODE READER command, followed by the AUTHINFO sequence. When connecting for authentication only, it did not, the mode is not switched to nnrp, and the server throws a 502 Authentication will fail error after the AUTHINFO USER command. So I changed the nntp-authentication module of Pnews to start by issuing the MODE READER command, and it works. This means I can stop running an open server - as I want my local groups protected by Login for Posting policy. Thanks again for helping me out. -- Flibsy
Re: pnews auth_method nntp fails on local server
Author: Julien ÉLIE
Date: Sat, 09 Feb 2013 22:00
Date: Sat, 09 Feb 2013 22:00
29 lines
2688 bytes
2688 bytes
Hi Flibsy, >> Are you sure nnrpd gets the connection or is it only handled by innd? >> Maybe innd believes the connection comes from a peer, and Pnews does not >> send the MODE READER command. > > That's it. > > I found out that for the session itself, Pnews indeed opens the session > and sends the MODE READER command, followed by the AUTHINFO sequence. > When connecting for authentication only, it did not, the mode is not > switched to nnrp, and the server throws a 502 Authentication will fail > error after the AUTHINFO USER command. Strange that the behaviour of Pnews is different when authentication is used. Anyway, I am glad you identified the problem and that it is now solved. > So I changed the nntp-authentication module of Pnews to start by issuing > the MODE READER command, and it works. Shouldn't it be a patch (or a bug report) to send to the maintainers of Pnews? -- Julien ÉLIE « Il faut mettre un frein à l'immobilisme. »
Re: pnews auth_method nntp fails on local server
Author: Julien ÉLIE
Date: Sat, 09 Feb 2013 22:02
Date: Sat, 09 Feb 2013 22:02
16 lines
2005 bytes
2005 bytes
Hi Flibsy,
>> Did you try to run a separate nnrpd daemon on a different port and
>> configure Pnews to use that port?
>
> No, I didn't, I'm not that familiar with INN yet. I will check if I can
> configure that - would this be an extra nnrpd, so normal operation on
> port 119 continues?
Yes, just run "nnrpd -p 3000 -D" to run nnrpd on port 3000.
http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html
--
Julien ÉLIE
« Il faut mettre un frein à l'immobilisme. »
Re: pnews auth_method nntp fails on local server
Author: Flibsy
Date: Sun, 10 Feb 2013 00:29
Date: Sun, 10 Feb 2013 00:29
17 lines
1745 bytes
1745 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Flibsy, > >>> Did you try to run a separate nnrpd daemon on a different port and >>> configure Pnews to use that port? >> >> No, I didn't, I'm not that familiar with INN yet. I will check if I can >> configure that - would this be an extra nnrpd, so normal operation on >> port 119 continues? > > Yes, just run "nnrpd -p 3000 -D" to run nnrpd on port 3000. > http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html Hm.. I might just do that. -- Flibsy
Re: pnews auth_method nntp fails on local server
Author: Flibsy
Date: Sun, 10 Feb 2013 00:29
Date: Sun, 10 Feb 2013 00:29
31 lines
2369 bytes
2369 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi Flibsy, > >>> Are you sure nnrpd gets the connection or is it only handled by innd? >>> Maybe innd believes the connection comes from a peer, and Pnews does not >>> send the MODE READER command. >> >> That's it. >> >> I found out that for the session itself, Pnews indeed opens the session >> and sends the MODE READER command, followed by the AUTHINFO sequence. >> When connecting for authentication only, it did not, the mode is not >> switched to nnrp, and the server throws a 502 Authentication will fail >> error after the AUTHINFO USER command. > > Strange that the behaviour of Pnews is different when authentication is used. I agree. > Anyway, I am glad you identified the problem and that it is now solved. > > >> So I changed the nntp-authentication module of Pnews to start by issuing >> the MODE READER command, and it works. > > Shouldn't it be a patch (or a bug report) to send to the maintainers of Pnews? I will send a bug report, surely. -- Flibsy
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads