🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Gina Bull Tue, 25 Nov 2003 21:16
News URL Extra
#67261
Author: Gina Bull
Date: Tue, 25 Nov 2003 21:16
33 lines
2885 bytes
I've looked in some books and online, and haven't found my answer yet.

I have set up the capability for private newsgroups on our main server. 
Each newsgroup within the private hierarchy has an associated user id 
and password. The private hierarchy cannot be viewed with the regular 
service.This works just fine.

The server also "serves" normal newsgroups out to the machines on our 
network without authentication, and requires authentication ("remote 
access") for users of machines not on our network. That all works fine, 
too, and all the services coexist happily.

Another service at our site uses URLs that are generated dynamically. 
Here's the question - is there a way to indicate in the URL that 
authentication is required? The newsreader components of Netscape (7.0 
and newer) and IE must be told to request authentication in the account 
properties. If somebody using a machine on our network does not have a 
"private" account set up in the newsreader and just clicks on a URL for 
access, the response is that the newsgroup does not exist -- which is a 
correct response since authentication has not occurred. (The URL access 
does work from a machine not on our network, since the server asks for 
authentication first and the private user id/password can be given.)

If necessary I'll tell the folks who run the service that uses generated 
URLs that they just can't access private newsgroups in that fashion. But 
when the question comes up, I'd prefer to be able to provide them with 
the URL syntax to require forced authentication.

Thanks!
Gina Bull
University of Virginia

Re: News URL Extra
#67273
Author: Jeffrey M. Vinocur
Date: Fri, 28 Nov 2003 21:06
38 lines
2707 bytes
In article <bq0gra$t6m$1@murdoch.acc.Virginia.EDU>,
Gina Bull  <ginabull@virginia.edu> wrote:
>
>Here's the question - is there a way to indicate in the URL that 
>authentication is required? The newsreader components of Netscape (7.0 
>and newer) and IE must be told to request authentication in the account 
>properties.

There is no provision for URLs of this type.  (I forget if
there's support for user@pass: prefixed to the URL like there is
in HTTP, but that's not relevant to you anyway, since you don't
want to hardcode the password in the URL.)

So much for the easy answer.  But read on...


>If somebody using a machine on our network does not have a 
>"private" account set up in the newsreader and just clicks on a URL for 
>access, the response is that the newsgroup does not exist -- which is a 
>correct response since authentication has not occurred.

Now, the fact that INN handles unauthenticated-but-partial-access
users in this way (i.e. by reporting the requested newsgroup does
not exist) is merely a decision of implementation.  It would also
be reasonable, in some circumstances, to return a 480 response to
such requests -- this is the client-please-authenticate code that
works for you off-site users.

The trouble is that I'm not sure you can do this with INN out of
the box.  It may be possible to do it with the Python hooks
(the "dynamic" authentication feature may be powerful enough, I'm
not sure), or potentially a change to the INN source may be
required.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: News URL Extra
#67289
Author: Gina Bull
Date: Mon, 01 Dec 2003 17:41
16 lines
1954 bytes
Jeffrey M. Vinocur wrote:
> There is no provision for URLs of this type.  (I forget if
> there's support for user@pass: prefixed to the URL like there is
> in HTTP, but that's not relevant to you anyway, since you don't
> want to hardcode the password in the URL.)
> 
> So much for the easy answer.  But read on...

Jeffrey,

Thanks for confirming that. It's good to know I'm not overlooking it.

As for the munging in Python I'd have to learn about -- ouch! I think 
I'll try to avoid this becoming a possibility! :-) If it doesn't come up 
as an issue, it can be safely ignored. :-)
Re: News URL Extra
#67290
Author: JanC
Date: Mon, 01 Dec 2003 19:50
21 lines
1924 bytes
Gina Bull <ginabull@virginia.edu> schreef:

> Another service at our site uses URLs that are generated dynamically. 
> Here's the question - is there a way to indicate in the URL that 
> authentication is required? The newsreader components of Netscape (7.0 
> and newer)

I'm not sure if this is a solution for you, but when part of your 
newsgroups are private to authenticated users, Netscape/Mozilla users 
can/must use an option in that program to always "force" authentication for 
that news server...

Search the internet for 
"user_pref("mail.server.serverNN.always_authenticate", true);"
to find more info...

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
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