Thread View: news.software.nntp
5 messages
5 total messages
Started by Earl Dukerschein
Thu, 28 Jul 2005 20:47
Can I prevent the authentication dialog?
Author: Earl Dukerschein
Date: Thu, 28 Jul 2005 20:47
Date: Thu, 28 Jul 2005 20:47
18 lines
2042 bytes
2042 bytes
I am testing INN 2.4.2 to allow the use of SSL to protect id/password information that might be sent to the server. I will have a "nnrpd -S -c /usr/local/news/etc/readers.conf.ssl" running from inetd. Some users can be accepted without authentication, some will be forced to authenticate. There is a possible combination, a user can be accepted without authentication, but the user has a client-side configuration option to always authenticate. That will work and it is OK within the SSL pipe. For the folks still using port 119 without SSL, I can make authentication (inititated from the client side) fail by not having any "auth: <program path>" line in my auth groups. Eventually the user will ask for help, but the user id and password will still go over the network a few times. For port 119, can I set up the News server to stop the authentication dialog at least before the password is sent?
Re: Can I prevent the authentication dialog?
Author: Jeffrey M. Vinocur
Date: Thu, 28 Jul 2005 23:12
Date: Thu, 28 Jul 2005 23:12
35 lines
2546 bytes
2546 bytes
In article <dcbg8s$jco$1@news.doit.wisc.edu>, Earl Dukerschein <earl.dukerschein@doit.wisc.edu> wrote: > >For the folks still using port 119 without SSL, I can make >authentication (inititated from the client side) fail by not having any >"auth: <program path>" line in my auth groups. Eventually the user >will ask for help, but the user id and password will >still go over the network a few times. > >For port 119, can I set up the News server to stop the authentication >dialog at least before the password is sent? Unfortunately, no. (I understand your thinking, though.) The client can send the username at any time, which is how "always use authentication" works. At present, nnrpd always responds affirmatively to this, so the client is free to send the password. I don't know what real world clients would do if they received an error of some kind at that stage, but at least in theory they might realize to not send the password. Adding the code to make nnrpd automatically decide whether to error is a little complicated. But if you're up for compiling and keeping around a patched version of nnrpd, you could pretty easily make one that -always- refused authentication, install that in the usual place for INN to launch it for port 119 connections, and have inetd spawn the unmodified nnrpd for secure connections. If this approach interests you, I could probably provide a patch. -- Jeffrey M. Vinocur jeff@litech.org
Re: Can I prevent the authentication dialog?
Author: Earl Dukerschein
Date: Fri, 29 Jul 2005 14:55
Date: Fri, 29 Jul 2005 14:55
36 lines
2925 bytes
2925 bytes
Jeffrey M. Vinocur wrote: > In article <dcbg8s$jco$1@news.doit.wisc.edu>, > Earl Dukerschein <earl.dukerschein@doit.wisc.edu> wrote: > >>For the folks still using port 119 without SSL, I can make >>authentication (inititated from the client side) fail by not having any >>"auth: <program path>" line in my auth groups. Eventually the user >>will ask for help, but the user id and password will >>still go over the network a few times. >> >>For port 119, can I set up the News server to stop the authentication >>dialog at least before the password is sent? > > > Unfortunately, no. (I understand your thinking, though.) > > The client can send the username at any time, which is how > "always use authentication" works. At present, nnrpd always > responds affirmatively to this, so the client is free to send the > password. I don't know what real world clients would do if they > received an error of some kind at that stage, but at least in > theory they might realize to not send the password. > > Adding the code to make nnrpd automatically decide whether to > error is a little complicated. But if you're up for compiling > and keeping around a patched version of nnrpd, you could pretty > easily make one that -always- refused authentication, install > that in the usual place for INN to launch it for port 119 > connections, and have inetd spawn the unmodified nnrpd for secure > connections. > > If this approach interests you, I could probably provide a patch. > > That sounds like a good solution. I have no control over the clients that may be used, so it seems like more risk than its worth. Thanks!
Re: Can I prevent the authentication dialog?
Author: Jeffrey M. Vinocur
Date: Sat, 30 Jul 2005 15:32
Date: Sat, 30 Jul 2005 15:32
47 lines
2767 bytes
2767 bytes
In article <42EA4357.3070202@doit.wisc.edu>,
Earl Dukerschein <earl.dukerschein@doit.wisc.edu> wrote:
>Jeffrey M. Vinocur wrote:
>
>> Adding the code to make nnrpd automatically decide whether to
>> error is a little complicated. But if you're up for compiling
>> and keeping around a patched version of nnrpd, you could pretty
>> easily make one that -always- refused authentication, install
>> that in the usual place for INN to launch it for port 119
>> connections, and have inetd spawn the unmodified nnrpd for secure
>> connections.
>
>That sounds like a good solution. I have no control over the clients
>that may be used, so it seems like more risk than its worth. Thanks!
I think you're saying that you'd like to have this modification?
Okay, here's what I would do (untested)...
In nnrpd/commands.c (line 218 in the version I have handy),
you'll find this:
if (strcasecmp(av[1], "user") == 0) {
strlcpy(User, av[2], sizeof(User));
Reply("%d PASS required\r\n", NNTP_AUTH_NEXT_VAL);
return;
}
Change it to something like this:
if (strcasecmp(av[1], "user") == 0) {
strlcpy(User, av[2], sizeof(User));
Reply("%d Encrypted required to authenticate, email Earl for help \r\n", NNTP_ACCESS_VAL);
syslog(L_NOTICE, "%s User \"%s\" attempted authentication on insecure nnrpd", Client.host, User);
return;
}
Then nnrpd will try its best to keep clients from using AUTHINFO
user/pass on the open link.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Can I prevent the authentication dialog?
Author: Bill Davidsen
Date: Mon, 01 Aug 2005 18:54
Date: Mon, 01 Aug 2005 18:54
54 lines
3449 bytes
3449 bytes
Jeffrey M. Vinocur wrote:
> In article <42EA4357.3070202@doit.wisc.edu>,
> Earl Dukerschein <earl.dukerschein@doit.wisc.edu> wrote:
>
>>Jeffrey M. Vinocur wrote:
>>
>>
>>>Adding the code to make nnrpd automatically decide whether to
>>>error is a little complicated. But if you're up for compiling
>>>and keeping around a patched version of nnrpd, you could pretty
>>>easily make one that -always- refused authentication, install
>>>that in the usual place for INN to launch it for port 119
>>>connections, and have inetd spawn the unmodified nnrpd for secure
>>>connections.
>>
>>That sounds like a good solution. I have no control over the clients
>>that may be used, so it seems like more risk than its worth. Thanks!
>
>
> I think you're saying that you'd like to have this modification?
>
> Okay, here's what I would do (untested)...
>
> In nnrpd/commands.c (line 218 in the version I have handy),
> you'll find this:
>
> if (strcasecmp(av[1], "user") == 0) {
> strlcpy(User, av[2], sizeof(User));
> Reply("%d PASS required\r\n", NNTP_AUTH_NEXT_VAL);
> return;
> }
>
>
> Change it to something like this:
>
>
> if (strcasecmp(av[1], "user") == 0) {
> strlcpy(User, av[2], sizeof(User));
> Reply("%d Encrypted required to authenticate, email Earl for help \r\n", NNTP_ACCESS_VAL);
> syslog(L_NOTICE, "%s User \"%s\" attempted authentication on insecure nnrpd", Client.host, User);
> return;
> }
>
>
> Then nnrpd will try its best to keep clients from using AUTHINFO
> user/pass on the open link.
>
>
That is pretty!
--
bill davidsen
SBC/Prodigy Yorktown Heights NY data center
http://newsgroups.news.prodigy.com
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