Thread View: news.software.nntp
28 messages
28 total messages
Started by Sylvain Robitaille
Thu, 17 Feb 2005 00:02
a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 00:02
Date: Thu, 17 Feb 2005 00:02
469 lines
19438 bytes
19438 bytes
Alright, this will likely be fairly long, but I hope folks will bear
with me ...
first the patch:
Way back in the Stone Ages (late 1993, into early 1994, actually), a
fellow by the name of Luke Mewburn produced a patch for Inn (1.4.x at the
time, I believe; we started using it here with Inn-1.5.1) which caused
nnrpd to add an additional header "NNTP-Posting-User" to all locally
posted messages. I've been running a news server for a number of years
now, with this (and more than a few others, which appear to have since
been incorporated into newer versions of Inn) patch applied to Inn-1.7.
Well, I'm in the process of "graduating" to Inn-2.4.2, and though I
realize that the NNTP-Posting-User patch is not of great value to many
news admins, it is functionality I did not want to lose. I've managed
to port it forward, though with some slight simplifications (and no
attempt to make it work with IPv6, as I do not have any IPv6 attached
systems to test with) of some of the code.
I've tested this on my new news server and it appears to be working as
expected. I include, below my signature, the patch against Inn-2.4.2,
in case this might be useful to anyone else. I hope it will be.
Comments and criticisms are of course welcome. I'm sure this could
have been done more elegantly, but I've done the best I believe I can do
(I have some programming skill, but I'm by no means a "programmer").
Next, the comments:
This applies to every version of Inn (and perhaps other news servers as
well, but I've only worked with Inn) that I'm aware of, interestingly
enough ...
- Installed file ownerships and permissions are arguably not restrictive
enough: why does the "news" user own the installed binaries, libraries,
include files, documentation, etc? More importantly, why is the
news server process able to rewrite (by virtue of running as user
"news") the news server configuration files and input filters?
I would argue that the news user needs write permission only to the
following:
- PATHARCHIVE
- PATHARTICLES
- PATHDB
- PATHINBAD
- PATHINCOMING
- PATHLOG
- PATHLOGOLD
- PATHOUTGOING
- PATHOVERVIEW
- PATHRUN
- PATHSPOOL
- PATHTAPE
- PATHTMP
- _PATH_RNEWS_DUP_LOG
The directories where binaries, libraries, configuration files, and
anything else that could change _how_ the news server functions (and
those files), in my opinion, should _not_ be writable to the same user
that the news server runs as. I do intend to ultimately adjust this
in my own installation of Inn-2.4.2.
Also, for those installing Inn-2.4.2 (from source) on Slackware Linux:
- On a Slackware-10 Linux system (probably also true of other versions),
the Berkeley DB package (at least with db3) is installed as "libdb",
rather than libdb3. Configure correctly finds /usr/include/db3, then
assumes that the library will also be named "db3" (EXTSTORAGELIBS in
Makefile.global is set via configure's BERKELEY_DB_LIB to "-ldb3").
This is arguably a Slackware oddity, rather than a problem with
Inn, but a usable work-around is to replace "@BERKELEY_DB_LIB@" in
Makefile.global.in with "-ldb" prior to running configure.
Finally, my question ...
Primarily, the news server I manage is a readers server. I do exchange
feeds with a small number of peers (at one time this system was one of a
few primary North-American news "hubs", but the growth of some of the
hierarchies and the proliferation of commercial news servers have made
that a historical tidbit at best).
In the end, I've not gone (perhaps "yet") with ovdb for overview, but
rather I'm using the traditional overview method (this system does have
_fast_ disks, and I am dealing with a primarily text-only feed). I've
configured to use overchan via the newsfeeds, as follows:
# News overview.
overview!:*,@junk,@control*:Tc,WnteO:/local/paths/overchan
The idea is to poison out any articles in junk and control*, since
readers aren't going to be interested in those anyway. However, in my
/news/log/errlog, I'm seeing repeated messages like the following from
overchan trying to write overview information for control messages
(mostly cancels, it seems, but some newgroup, rmgroup, and checkgroups
messages as well):
overchan: cannot write overview cmsg cancel <1108596738@reader1.news>
<nntpmon@ozemail.com.au> Wed, 16 Feb 2005 23:32:34 GMT
<cancel.1108596738@reader1.news> 710 1
Xref: newsflash.concordia.ca control.cancel:20796887535
Clearly my attempt above to poison junk and control* is not doing what I
intended. Can someone point me to some information that will help me
understand what I've done wrong, and how to get the result I want?
Thanks for taking the time to read this far... My adaptation of Luke
Mewburn's NNTP-Posting-User patch is appended.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst / Newsmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
# nntp-posting-user patch (against Inn-2.4.2, originally by Luke
# Mewburn, adapted by Sylvain Robitaille -- any mistakes are my own):
--- nnrpd/post.h.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/post.h 2005-02-03 16:35:30.000000000 -0500
@@ -47,6 +47,7 @@
#define HDR__XTRACE 21
#define HDR__XCOMPLAINTSTO 22
#define HDR__NNTPPOSTINGDATE 23
+#define HDR__NNTPPOSTINGUSER 24
#define HDR__CC 33
#define HDR__BCC 34
#define HDR__TO 35
--- nnrpd/post.c.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/post.c 2005-02-03 16:38:50.000000000 -0500
@@ -51,6 +51,7 @@
{ "X-Trace", false, HTstd, 0, NULL, NULL, 0 },
{ "X-Complaints-To", false, HTstd, 0, NULL, NULL, 0 },
{ "NNTP-Posting-Date", false, HTstd, 0, NULL, NULL, 0 },
+ { "NNTP-Posting-User", false, HTstd, 0, NULL, NULL, 0 },
{ "Xref", false, HTstd, 0, NULL, NULL, 0 },
{ "Injector-Info", false, HTstd, 0, NULL, NULL, 0 },
{ "Summary", true, HTstd, 0, NULL, NULL, 0 },
@@ -489,6 +490,13 @@
if (!ihave && PERMaccessconf->addnntppostingdate)
HDR_SET(HDR__NNTPPOSTINGDATE, datebuff);
+ /*
+ * 2005/02/03 Sylvain Robitaille: adaptation of Luke Mewburn's
+ * NNTP-Posting-User patch
+ */
+ if (!ihave && PERMaccessconf->addnntppostinguser)
+ HDR_SET(HDR__NNTPPOSTINGUSER, ClientUser);
+
/* X-Trace; set */
t = time((time_t *)NULL) ;
pid = (long) getpid() ;
--- nnrpd/nnrpd.h.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/nnrpd.h 2005-02-08 16:34:53.000000000 -0500
@@ -76,6 +76,7 @@
int strippostcc;
int addnntppostinghost;
int addnntppostingdate;
+ int addnntppostinguser;
char *nnrpdposthost;
int nnrpdpostport;
int nnrpdoverstats;
@@ -154,6 +155,7 @@
EXTERN char **PERMreadlist;
EXTERN char **PERMpostlist;
EXTERN char ClientHost[SMBUF];
+EXTERN char ClientUser[SMBUF]; /* lm, 931203 */
EXTERN char ServerHost[SMBUF];
EXTERN char Username[SMBUF];
#ifdef HAVE_INET6
--- nnrpd/nnrpd.c.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/nnrpd.c 2005-02-15 19:55:29.000000000 -0500
@@ -571,6 +571,31 @@
break;
#endif
}
+
+ /*
+ * 2005/02/15 Sylvain Robitaille: This may not be the greatest place
+ * for this; we _just_ went from IP address to string in
+ * Sock2String above, but I need the in_addr_t form for
+ * Luke Mewburn's ident_client().
+ */
+ ClientIpAddr = inet_addr(ClientIpString);
+
+ /* lm, 940112 */
+ /* Adapted for Inn-2.4.2 by Sylvain Robitaille, 2005/02/15 */
+ ClientUser[0] = '\0';
+ if (!isatty(STDIN_FILENO)) {
+ length = sizeof(sss);
+ if (getsockname(STDIN_FILENO, (struct sockaddr *)&sss, &length) >= 0) {
+ char *ident_client();
+ char *them;
+
+ them = ident_client(ClientIpAddr, ClientPort,ServerPort);
+ if (them) {
+ (void)strncpy(ClientUser, them, sizeof(ClientUser) - 1);
+ ClientUser[sizeof(ClientUser) - 1] = '\0';
+ }
+ }
+ }
}
strlcpy(LogName, ClientHost, sizeof(LogName));
--- nnrpd/perm.c.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/perm.c 2005-02-08 16:53:45.000000000 -0500
@@ -135,32 +135,33 @@
#define PERMstrippostcc 37
#define PERMaddnntppostinghost 38
#define PERMaddnntppostingdate 39
-#define PERMnnrpdposthost 40
-#define PERMnnrpdpostport 41
-#define PERMnnrpdoverstats 42
-#define PERMbackoff_auth 43
-#define PERMbackoff_db 44
-#define PERMbackoff_k 45
-#define PERMbackoff_postfast 46
-#define PERMbackoff_postslow 47
-#define PERMbackoff_trigger 48
-#define PERMnnrpdcheckart 49
-#define PERMnnrpdauthsender 50
-#define PERMvirtualhost 51
-#define PERMnewsmaster 52
-#define PERMlocaladdress 53
-#define PERMrejectwith 54
-#define PERMmaxbytespersecond 55
-#define PERMperl_auth 56
-#define PERMpython_auth 57
-#define PERMperl_access 58
-#define PERMpython_access 59
-#define PERMpython_dynamic 60
+#define PERMaddnntppostinguser 40
+#define PERMnnrpdposthost 41
+#define PERMnnrpdpostport 42
+#define PERMnnrpdoverstats 43
+#define PERMbackoff_auth 44
+#define PERMbackoff_db 45
+#define PERMbackoff_k 46
+#define PERMbackoff_postfast 47
+#define PERMbackoff_postslow 48
+#define PERMbackoff_trigger 49
+#define PERMnnrpdcheckart 50
+#define PERMnnrpdauthsender 51
+#define PERMvirtualhost 52
+#define PERMnewsmaster 53
+#define PERMlocaladdress 54
+#define PERMrejectwith 55
+#define PERMmaxbytespersecond 56
+#define PERMperl_auth 57
+#define PERMpython_auth 58
+#define PERMperl_access 59
+#define PERMpython_access 60
+#define PERMpython_dynamic 61
#ifdef HAVE_SSL
-#define PERMrequire_ssl 61
-#define PERMMAX 62
+#define PERMrequire_ssl 62
+#define PERMMAX 63
#else
-#define PERMMAX 61
+#define PERMMAX 62
#endif
#define TEST_CONFIG(a, b) \
@@ -225,6 +226,7 @@
{ PERMstrippostcc, "strippostcc:" },
{ PERMaddnntppostinghost, "addnntppostinghost:" },
{ PERMaddnntppostingdate, "addnntppostingdate:" },
+ { PERMaddnntppostinguser, "addnntppostinguser:" },
{ PERMnnrpdposthost, "nnrpdposthost:" },
{ PERMnnrpdpostport, "nnrpdpostport:" },
{ PERMnnrpdoverstats, "nnrpdoverstats:" },
@@ -493,6 +495,7 @@
curaccess->strippostcc = innconf->strippostcc;
curaccess->addnntppostinghost = innconf->addnntppostinghost;
curaccess->addnntppostingdate = innconf->addnntppostingdate;
+ curaccess->addnntppostinguser = innconf->addnntppostinguser;
curaccess->nnrpdposthost = innconf->nnrpdposthost;
curaccess->nnrpdpostport = innconf->nnrpdpostport;
curaccess->nnrpdoverstats = innconf->nnrpdoverstats;
@@ -977,6 +980,10 @@
if (boolval != -1) curaccess->addnntppostingdate = boolval;
SET_CONFIG(oldtype);
break;
+ case PERMaddnntppostinguser:
+ if (boolval != -1) curaccess->addnntppostinguser = boolval;
+ SET_CONFIG(oldtype);
+ break;
case PERMnnrpdposthost:
if (curaccess->nnrpdposthost)
free(curaccess->nnrpdposthost);
@@ -1281,6 +1288,7 @@
case PERMstrippostcc:
case PERMaddnntppostinghost:
case PERMaddnntppostingdate:
+ case PERMaddnntppostinguser:
case PERMnnrpdposthost:
case PERMnnrpdpostport:
case PERMnnrpdoverstats:
--- nnrpd/ident_client.c.original 1969-12-31 19:00:00.000000000 -0500
+++ nnrpd/ident_client.c 2005-02-15 20:04:13.000000000 -0500
@@ -0,0 +1,121 @@
+/*
+ * ident_client.c
+ *
+ * Identifies the remote user of a given connection.
+ *
+ * Written 940112 by Luke Mewburn <lm@rmit.edu.au>
+ *
+ * Copyright (C) 1994 by Luke Mewburn.
+ * This code may be used freely by anyone as long as this copyright remains.
+ *
+ */
+
+/*
+ * adapted to Inn-2.4.2 by Sylvain Robitaille <syl@alcor.concordia.ca>,
+ * 2005/02/15: NOTE: no effort has been made to make this IPv6 friendly.
+ * I'm not un-inclined to do so, but it is a very low priority for me at
+ * the moment.
+ */
+#include "config.h"
+#include "nnrpd.h"
+
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+
+#define IDENT_PORT 113
+
+/*
+ * ident_client
+ * - user interface to identd
+ *
+ * Args:
+ * peeraddr in_addr_t of peer end: the IP address in network byte order.
+ * peerport the port number used by the peer end.
+ * ourport the port number connected to at our end.
+ *
+ * Returns:
+ * NULL on failure to identify (for whatever reason), or pointer to
+ * static character string with the identity.
+ */
+
+char *
+ident_client(peeraddr, peerport, ourport)
+ in_addr_t peeraddr;
+ int peerport, ourport;
+{
+ struct sockaddr_in authcon;
+ int authfd, authlen;
+ struct servent *identserv;
+ int identport;
+
+ FILE *authfpin, *authfpout;
+ char buffer[8192]; /* XXX: argh! magic numbers */
+ char reply_type[81];
+ char opsys_or_err[81];
+ int rport, lport;
+
+ static char identifier[1024];
+
+ authfd = socket(AF_INET, SOCK_STREAM, 0);
+ if (authfd == -1)
+ return NULL;
+
+ identserv = getservbyname("ident", "tcp");
+ if (identserv)
+ identport = identserv->s_port;
+ else
+ identport = ntohs(IDENT_PORT);
+
+ memset(&authcon, 0, sizeof(authcon));
+ authcon.sin_family = AF_INET;
+ authcon.sin_addr.s_addr = peeraddr;
+ authcon.sin_port = identport;
+
+ authlen = sizeof(authcon);
+ if (connect(authfd, (struct sockaddr *)&authcon, authlen) < 0) {
+ syslog(L_ERROR, "ident_client: %s", "connect failed");
+ return NULL;
+ }
+ authfpin = fdopen(authfd, "r");
+ authfpout = fdopen(authfd, "w");
+ if (!authfpin || !authfpout) {
+ syslog(L_ERROR, "ident_client: %s", "fdopen failed");
+ return NULL;
+ }
+ /* Anne Bennett 1995/05/31 Some machines time out waiting for CR/LF;
+ * LF is not sufficient. (E.g.: VMS machines)
+ */
+ fprintf(authfpout, "%d , %d\r\n", peerport, ourport);
+ fflush(authfpout);
+
+ if (fgets(buffer, sizeof(buffer)-1, authfpin) == NULL) {
+ syslog(L_ERROR, "ident_client: %s", "fgets failed");
+ return NULL;
+ }
+
+ shutdown(authfd, 1);
+
+ authlen = sscanf(buffer, "%d , %d : %[^ \t\n\r:] : %[^ \t\n\r:] : %[^\n\r]",
+ &lport, &rport, reply_type, opsys_or_err, identifier);
+ if (authlen < 3) {
+ syslog(L_ERROR, "ident_client: %s: %s", "sscanf failed", buffer);
+ return NULL;
+ }
+
+#if 0 /* XXX: for if we ever handle the ERROR class */
+ if (! strcasecmp(reply_type, "ERROR"))
+ return NULL;
+#endif
+ if (strcasecmp(reply_type, "USERID")) {
+ syslog(L_ERROR, "ident_client: %s: %s", "reply type", reply_type);
+ syslog(L_ERROR, "ident_client: %s", buffer);
+ return NULL;
+ }
+
+ return identifier;
+} /* ident_client */
+
--- include/inn/innconf.h.original 2004-12-21 23:21:19.000000000 -0500
+++ include/inn/innconf.h 2005-02-08 16:55:36.000000000 -0500
@@ -91,6 +91,7 @@
/* Posting */
bool addnntppostingdate; /* Add NNTP-Posting-Date: to posts */
bool addnntppostinghost; /* Add NNTP-Posting-Host: to posts */
+ bool addnntppostinguser; /* Add NNTP-Posting-User: to posts */
bool checkincludedtext; /* Reject if too much included text */
char *complaints; /* Address for X-Complaints-To: */
char *fromhost; /* Host for the From: line */
--- nnrpd/Makefile.original 2004-12-21 23:21:19.000000000 -0500
+++ nnrpd/Makefile 2005-02-03 17:09:22.000000000 -0500
@@ -9,7 +9,7 @@
SOURCES = article.c cache.c group.c commands.c line.c list.c misc.c \
newnews.c nnrpd.c perl.c perm.c post.c python.c \
- sasl_config.c tls.c track.c
+ sasl_config.c tls.c track.c ident_client.c
INCLUDES = cache.h nnrpd.h post.h sasl_config.h tls.h
--- lib/innconf.c.original 2004-12-21 23:21:19.000000000 -0500
+++ lib/innconf.c 2005-02-08 16:36:36.000000000 -0500
@@ -180,6 +180,7 @@
/* The following settings are specific to nnrpd. */
{ K(addnntppostingdate), BOOL (true) },
{ K(addnntppostinghost), BOOL (true) },
+ { K(addnntppostinguser), BOOL (true) },
{ K(allownewnews), BOOL (true) },
{ K(backoffauth), BOOL (false) },
{ K(backoffdb), STRING (NULL) },
Re: a patch, some comments, and a question ...
Author: Russ Allbery
Date: Thu, 17 Feb 2005 00:14
Date: Thu, 17 Feb 2005 00:14
25 lines
2101 bytes
2101 bytes
Sylvain Robitaille <syl@alcor.concordia.ca> writes:
> In the end, I've not gone (perhaps "yet") with ovdb for overview, but
> rather I'm using the traditional overview method (this system does have
> _fast_ disks, and I am dealing with a primarily text-only feed). I've
> configured to use overchan via the newsfeeds, as follows:
> # News overview.
> overview!:*,@junk,@control*:Tc,WnteO:/local/paths/overchan
You don't want to do it this way. Instead, just set ovgrouppat in
inn.conf to "*,@junk,@control*". See the inn.conf man page for more
details.
It's not entirely clear to me that overchan is a good idea these days, but
I haven't done any benchmarks.
I'll have more comments on the rest of your message when I get a chance to
do some more work on INN....
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: a patch, some comments, and a question ...
Author: Marco d'Itri
Date: Thu, 17 Feb 2005 10:17
Date: Thu, 17 Feb 2005 10:17
8 lines
1099 bytes
1099 bytes
syl@alcor.concordia.ca wrote: >Comments and criticisms are of course welcome. I'm sure this could Use the perl API. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 16:39
Date: Thu, 17 Feb 2005 16:39
61 lines
3823 bytes
3823 bytes
Russ Allbery wrote:
>> I've configured to use overchan via the newsfeeds, as follows:
>> # News overview.
>> overview!:*,@junk,@control*:Tc,WnteO:/local/paths/overchan
>
> You don't want to do it this way. Instead, just set ovgrouppat in
> inn.conf to "*,@junk,@control*". ...
That's what I get for working on this over the course of several days.
I already had the following in inn.conf:
ovgrouppat: *,!control*,!junk
So the system must have been trying to store overview information only
for articles also crossposted to a regular newsgroup. I'll change this
as follows and keep an eye on it.
ovgrouppat: *,@control*,@junk
restarted Innd ... I'm still seeing the same messages in errlog;
do I need to completely remove the "overview!" feed? If so, will
Innd automatically know to store the overview in traditional format?
(sound of rustling man pages as I search for relevant information...)
Ah yes, according to innd.conf(5), if I set useoverchan to false, Innd
will create the overview information according to ovmethod ("tradindexed"
in my case). That at least explains why I'm still seeing the errors.
I'll adjust accordingly, then, and keep watching it ... Thanks for
pointing me in the right direction.
> It's not entirely clear to me that overchan is a good idea these days,
> but I haven't done any benchmarks.
For the nature of this server, considering that I've been using it until
now with on older version of Inn on much older hardware, I'm really not
concerned that it will have a negative effect on performance. I had
been expecting to use ovdb, but then I did the math to estimate how much
space it would use, and compared that to the space being used by the
(traditional) overview information on my old system and decided that the
tradeoff went in favour of using the traditional method. (I had, at
some point, incorrectly concluded that "using the traditional method"
was equivalent to using overchan ...)
This machine has very fast disks, but very little in the way of being
able to expand the available disk space (internally, that is).
> I'll have more comments on the rest of your message when I get a
> chance to do some more work on INN....
It's much appreciated. Thank you.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 16:43
Date: Thu, 17 Feb 2005 16:43
24 lines
2184 bytes
2184 bytes
Marco d'Itri wrote: >> Comments and criticisms are of course welcome. > Use the perl API. For NNTP-Posting-User, you mean? I've read through doc/hook-perl and I got the sense that this was primarily for authenticating the users, (sure at that point you could use the authenticated user name in such a header as well), but that isn't the goal here. In fact, I specifically don't want to change the way our users use the news service, which they're entitled to do so long as they're using a computer on our network. What I want to be able to do is use the ident information (when available) from multi-user systems, in the cases where I might need to trace a message back. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Marco d'Itri
Date: Thu, 17 Feb 2005 17:07
Date: Thu, 17 Feb 2005 17:07
17 lines
1570 bytes
1570 bytes
syl@alcor.concordia.ca wrote: >>> Comments and criticisms are of course welcome. >> Use the perl API. >For NNTP-Posting-User, you mean? I've read through doc/hook-perl and I Yes. >got the sense that this was primarily for authenticating the users, >(sure at that point you could use the authenticated user name in such a >header as well), but that isn't the goal here. In fact, I specifically >don't want to change the way our users use the news service, which You don't need to. Anything you can do in a patch can be done more easily in filter_nnrpd.pl. -- ciao, | Marco | * The Internet is full. Go away. -- Joel Furr *
Re: a patch, some comments, and a question ...
Author: Jeffrey M. Vinocur
Date: Thu, 17 Feb 2005 17:16
Date: Thu, 17 Feb 2005 17:16
25 lines
1888 bytes
1888 bytes
In article <slrnd19idr.82tt.syl@alcor.concordia.ca>, Sylvain Robitaille <syl@alcor.concordia.ca> wrote: >Marco d'Itri wrote: > >> Use the perl API. > >For NNTP-Posting-User, you mean? I've read through doc/hook-perl and I >got the sense that this was primarily for authenticating the users, That's one thing it can do, but it also can be used to add headers to post. Search for "$modify_headers" in doc/hook-perl. >What I want to be able to do is use the ident information (when >available) from multi-user systems, in the cases where I might need to >trace a message back. Note that this behavior is essentially builtin, if you set "nnrpdauthsender" in inn.conf and use a "res: ident" in your readers.conf. -- Jeffrey M. Vinocur jeff@litech.org
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 17:38
Date: Thu, 17 Feb 2005 17:38
27 lines
2401 bytes
2401 bytes
Jeffrey M. Vinocur wrote: > That's one thing it can do, but it also can be used to add > headers to post. Search for "$modify_headers" in doc/hook-perl. Yes but how does the nnrpd Perl filter get the ident information from the client system? Is it given enough information about the network connection to query the client's ident daemon? > Note that this behavior is essentially builtin, if you set > "nnrpdauthsender" in inn.conf and use a "res: ident" in your > readers.conf. I'll look some more at this. When I did try to use it, it queried me for a username and password, but since I'd not pointed it to any authentication server it didn't seem to be working. Still, the patch I applied already works, so at this point this is more for the sake of completeness ... Certainly from the manual pages this does seem to provide the same functionality that I want ... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 18:07
Date: Thu, 17 Feb 2005 18:07
35 lines
2851 bytes
2851 bytes
Jeffrey M. Vinocur wrote: >> What I want to be able to do is use the ident information (when >> available) from multi-user systems, in the cases where I might >> need to trace a message back. > > Note that this behavior is essentially builtin, if you set > "nnrpdauthsender" in inn.conf and use a "res: ident" in your > readers.conf. I'm definitely unable to make this work: just adding "res: ident" to the auth section in readers.conf results in being queried for username and password, which is certainly not what I expect it to do, nor does it seem like that's what it _should_ be expected to do. There's obviously something I'm missing for this to work correctly, but I can't seem to make any sense of it. :-( (I _did_ set it up according to the example in readers.conf(5), then slowly stripped it back down so that the only change from the configuration I've been using is "res: ident" in the auth stanza, and narrowed it down to that change which seems to be causing the news reader to query for a username and password. I prefer to go with something that I know will give me what I want, of course, than to pursue something that I believe _should_ give me what I want, but seems to be doing something completely different ...) Thanks for your help, though ... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 18:34
Date: Thu, 17 Feb 2005 18:34
19 lines
2029 bytes
2029 bytes
Marco d'Itri wrote: > Anything you can do in a patch can be done more easily in > filter_nnrpd.pl. It will certainly be worth my while to get familiar with filter_nnrpd.pl and how it can be used, but for now I'm going to claim that the patch was "more easily" done than (having me) try to do the same in filter_nnrpd.pl. After I get this system into production to replace my existing news server, I might change my mind about that, but probably not sooner. :-) -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Jeffrey M. Vinocur
Date: Thu, 17 Feb 2005 19:07
Date: Thu, 17 Feb 2005 19:07
38 lines
2642 bytes
2642 bytes
In article <slrnd19nbp.av2a.syl@alcor.concordia.ca>, Sylvain Robitaille <syl@alcor.concordia.ca> wrote: >Jeffrey M. Vinocur wrote: > >> Note that this behavior is essentially builtin, if you set >> "nnrpdauthsender" in inn.conf and use a "res: ident" in your >> readers.conf. > >I'm definitely unable to make this work: just adding "res: ident" to the >auth section in readers.conf results in being queried for username and >password, which is certainly not what I expect it to do That's quite strange. I have a configuration using "res: ident" working (posting via it right now), so I'm curious if there's something askew in your configuration. Would you be able to post your readers.conf? >I prefer to go with something that I know will give me what I >want, of course, than to pursue something that I believe >_should_ give me what I want, but seems to be doing something >completely different ... I understand where you're coming from here, certainly. On the other hand, the existing nnrpdauthsender / ident resolver approach provides very similar functionality, is easily generalized to identity systems other than identd, supports IPv6, etc, so -- while I have not had time to look at your patch in detail -- I'm not sure how much benefit we'd get from incorporating it into INN. I'd be interested in hearing your thoughts (once we get "res: ident" working for you) on the differences between that and the NNTP-Posting-User approach. -- Jeffrey M. Vinocur jeff@litech.org
Re: a patch, some comments, and a question ...
Author: Russ Allbery
Date: Thu, 17 Feb 2005 20:31
Date: Thu, 17 Feb 2005 20:31
28 lines
2302 bytes
2302 bytes
Sylvain Robitaille <syl@alcor.concordia.ca> writes:
> Russ Allbery wrote:
>> It's not entirely clear to me that overchan is a good idea these days,
>> but I haven't done any benchmarks.
> For the nature of this server, considering that I've been using it until
> now with on older version of Inn on much older hardware, I'm really not
> concerned that it will have a negative effect on performance.
Then you definitely don't want to run overchan.
overchan is more complicated and more fiddly, but exists to get overview
writing out of INN's main loop for performance reasons. If you don't care
about that level of performance tweak, just let INN write out the overview
information directly. Then you don't have to worry about overchan
backlogs, conflicting configurations, etc.
> (I had, at some point, incorrectly concluded that "using the traditional
> method" was equivalent to using overchan ...)
Aha! Nope. :)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 20:54
Date: Thu, 17 Feb 2005 20:54
33 lines
2698 bytes
2698 bytes
Russ Allbery wrote: > overchan is more complicated and more fiddly, but exists to get > overview writing out of INN's main loop for performance reasons. > If you don't care about that level of performance tweak, just let > INN write out the overview information directly. Well, it's been running for all of 4 hours, and 15 minutes, so far with no more problems! :-) >> (I had, at some point, incorrectly concluded that "using the >> traditional method" was equivalent to using overchan ...) > > Aha! Nope. :) This is actually the toughest part of this upgrade for me: Inn has changed so much in the last few years that it is barely recognizable compared to how it was when 1.7 was current. At some levels, I'm just about starting over! :-( Still, the new news server has now been running for about a week, with the only real problem being this one with overchan and that's now been resolved. :-) Now with luck I'll be hearing lots of Ooooh-ing and Aaaah-ing from the users when I make the switch! :-) (he says, almost drowned out by the sounds of crickets chirping!) -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 21:05
Date: Thu, 17 Feb 2005 21:05
59 lines
3385 bytes
3385 bytes
Jeffrey M. Vinocur wrote:
> That's quite strange. I have a configuration using "res: ident"
> working (posting via it right now), so I'm curious if there's
> something askew in your configuration.
Well, that wouldn't surprise me ... :-(
> Would you be able to post your readers.conf?
As it currently is (minus the comments and examples, which you've no
doubt already seen ...):
## Concordia University hosts have no password, can read anything.
auth "concordia" {
hosts: *.concordia.ca
default: <concordia>
}
# R: read
# P: post
# N: newnews
# A: post approved messages
#
access "concordia" {
users: <concordia>
newsgroups: "*,!clari.web.*"
access: RPNA
}
> On the other hand, the existing nnrpdauthsender / ident resolver
> approach provides very similar functionality, is easily
> generalized to identity systems other than identd, supports IPv6,
> etc, so -- while I have not had time to look at your patch in
> detail -- I'm not sure how much benefit we'd get from
> incorporating it into INN.
Assuming that most people don't have the same problems I'm having with
the ident resolver, probably very little, I'm afraid.
> I'd be interested in hearing your thoughts (once we get "res:
> ident" working for you) on the differences between that and the
> NNTP-Posting-User approach.
The only difference, from what I understand of the documentation is that
the "Sender:" header might already have been added by the client
software, and would be replaced by the nnrpdauthsender / ident resolver
configuration. NNTP-Posting-User is not added by any client software I
know of, and seems consistent with NNTP-Posting-Host and
NNTP-Posting-Date. At that level, though, it's just aesthetic.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst / Newsmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Jeffrey M. Vinocur
Date: Thu, 17 Feb 2005 21:12
Date: Thu, 17 Feb 2005 21:12
54 lines
2656 bytes
2656 bytes
In article <slrnd1a1o6.fn5p.syl@alcor.concordia.ca>,
Sylvain Robitaille <syl@alcor.concordia.ca> wrote:
>
> ## Concordia University hosts have no password, can read anything.
> auth "concordia" {
> hosts: *.concordia.ca
> default: <concordia>
> }
>
> access "concordia" {
> users: <concordia>
> newsgroups: "*,!clari.web.*"
> access: RPNA
> }
Aha. Were you just adding the "res: ident" to that above? If
so, your problem was that using a resolver will result in an
identity other than "<concordia>" and thus the access block will
not match.
How about this:
## Concordia University hosts have no password, can read anything.
auth "concordia" {
hosts: *.concordia.ca
res: ident -t
default: <concordia>
default-domain: concordia.ca
}
access "concordia" {
users: *@concordia.ca
newsgroups: "*,!clari.web.*"
access: RPNA
}
>> I'd be interested in hearing your thoughts (once we get "res:
>> ident" working for you) on the differences between that and the
>> NNTP-Posting-User approach.
>
>The only difference, from what I understand of the documentation is that
>the "Sender:" header might already have been added by the client
>software, and would be replaced by the nnrpdauthsender / ident resolver
>configuration.
That's true. In practice, though, it's a rare news client that
adds (or even knows about) the Sender header.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 21:26
Date: Thu, 17 Feb 2005 21:26
41 lines
2579 bytes
2579 bytes
Jeffrey M. Vinocur wrote:
> Aha. Were you just adding the "res: ident" to that above?
In some attempts, yes, in others I also added
users: *@*.concordia.ca
to the access stanza (instead of <concordia>)
> How about this:
>
> ## Concordia University hosts have no password, can read anything.
> auth "concordia" {
> hosts: *.concordia.ca
> res: ident -t
> default: <concordia>
> default-domain: concordia.ca
> }
>
> access "concordia" {
> users: *@concordia.ca
> newsgroups: "*,!clari.web.*"
> access: RPNA
> }
But I want the machine name as well, in order to be able to contact the
correct sysadmin --- mind you that's already in NNTP-Posting-Host anyway
...
Would I be correct in understanding that I would need a separate access
stanza in the above configuration, to permit access from hosts with no
ident daemon, with "users: <concordia>"?
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst / Newsmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Jeffrey M. Vinocur
Date: Thu, 17 Feb 2005 21:40
Date: Thu, 17 Feb 2005 21:40
37 lines
2261 bytes
2261 bytes
In article <slrnd1a2vk.fn5p.syl@alcor.concordia.ca>, Sylvain Robitaille <syl@alcor.concordia.ca> wrote: >Jeffrey M. Vinocur wrote: > >> Aha. Were you just adding the "res: ident" to that above? > >In some attempts, yes, in others I also added > > users: *@*.concordia.ca > >to the access stanza (instead of <concordia>) Good. (Note that *@*.concordia.ca will -not- match foo@concordia.ca.) >But I want the machine name as well, in order to be able to contact the >correct sysadmin --- mind you that's already in NNTP-Posting-Host anyway >... What does your identd results look like? If they're fully-qualified, just use "res: ident" without the -t. If not, there's no trivial way to have nnrpd append the .concordia.ca for you, unfortunately. (Although, it would be a simple patch to authprogs/ident.c, I might even write it if I have a spare minute.) >Would I be correct in understanding that I would need a separate access >stanza in the above configuration, to permit access from hosts with no >ident daemon, with "users: <concordia>"? Correct. -- Jeffrey M. Vinocur jeff@litech.org
Re: a patch, some comments, and a question ...
Author: Russ Allbery
Date: Thu, 17 Feb 2005 21:41
Date: Thu, 17 Feb 2005 21:41
42 lines
2838 bytes
2838 bytes
Sylvain Robitaille <syl@alcor.concordia.ca> writes:
> Jeffrey M. Vinocur wrote:
>> How about this:
>>
>> ## Concordia University hosts have no password, can read anything.
>> auth "concordia" {
>> hosts: *.concordia.ca
>> res: ident -t
>> default: <concordia>
>> default-domain: concordia.ca
>> }
>>
>> access "concordia" {
>> users: *@concordia.ca
>> newsgroups: "*,!clari.web.*"
>> access: RPNA
>> }
> But I want the machine name as well, in order to be able to contact the
> correct sysadmin --- mind you that's already in NNTP-Posting-Host anyway
> ...
Does your ident daemon return identities like user@machine.concordia.ca?
Most of them don't; most of them just return the user part. If the
latter, this isn't something that the ident authenticator currently
supports, but it would be trivial to add a command-line flag that appends
the hostname to the returned identity.
> Would I be correct in understanding that I would need a separate access
> stanza in the above configuration, to permit access from hosts with no
> ident daemon, with "users: <concordia>"?
No, those users will be assigned an identity of <concordia>@concordia.ca
(the combination of default and default-domain) and then will be picked up
by *@concordia.ca.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Thu, 17 Feb 2005 21:56
Date: Thu, 17 Feb 2005 21:56
32 lines
2570 bytes
2570 bytes
Jeffrey M. Vinocur wrote: > What does your identd results look like? Hrmmm ... Good question. I had to perform a test to find out: : elvira[syl] ~; echo 4714,22 | nc charlotte 113 4714,22 : USERID : UNIX :syl > If they're fully-qualified, just use "res: ident" without the -t. > If not, there's no trivial way to have nnrpd append the .concordia.ca > for you, unfortunately. But in that case, I'm not sure that it needs to be up to nnrpd to add that information: ident "knows" which host it queried. > (Although, it would be a simple patch to authprogs/ident.c, I might > even write it if I have a spare minute.) I was thinking exactly along those lines myself. That does seem to me to be the correct place to make the change, in this case, probably with a command-line option to enable it (unless the response contains an @, perhaps, and maybe another option to override any content after the @ if one is there?) -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Russ Allbery
Date: Thu, 17 Feb 2005 22:10
Date: Thu, 17 Feb 2005 22:10
16 lines
1963 bytes
1963 bytes
Sylvain Robitaille <syl@alcor.concordia.ca> writes:
> I was thinking exactly along those lines myself. That does seem to me
> to be the correct place to make the change, in this case, probably with
> a command-line option to enable it (unless the response contains an @,
> perhaps, and maybe another option to override any content after the @ if
> one is there?)
The -t option already basically says "ignore @ and anything after it in
the response," so it could be reused for this purpose.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: a patch, some comments, and a question ...
Author: Russ Allbery
Date: Thu, 17 Feb 2005 22:13
Date: Thu, 17 Feb 2005 22:13
23 lines
2384 bytes
2384 bytes
Russ Allbery <rra@stanford.edu> writes:
> Sylvain Robitaille <syl@alcor.concordia.ca> writes:
>> I was thinking exactly along those lines myself. That does seem to me
>> to be the correct place to make the change, in this case, probably with
>> a command-line option to enable it (unless the response contains an @,
>> perhaps, and maybe another option to override any content after the @
>> if one is there?)
> The -t option already basically says "ignore @ and anything after it in
> the response," so it could be reused for this purpose.
That wasn't clear; I meant to reply only to the parenthetical. What I'd
do is add an option like -s (append system name; -h should be reserved for
help), and have it by default append @ and the remote system name if there
is no @ in the repsonse. And then, if -t is given, strip off the @ stuff
before making that check.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: a patch, some comments, and a question ...
Author: Jeffrey M. Vinocur
Date: Thu, 17 Feb 2005 22:23
Date: Thu, 17 Feb 2005 22:23
33 lines
2280 bytes
2280 bytes
In article <slrnd1a4p0.fn5p.syl@alcor.concordia.ca>,
Sylvain Robitaille <syl@alcor.concordia.ca> wrote:
>Jeffrey M. Vinocur wrote:
>
>> (Although, it would be a simple patch to authprogs/ident.c, I might
>> even write it if I have a spare minute.)
>
>I was thinking exactly along those lines myself. That does seem to me
>to be the correct place to make the change, in this case, probably with
>a command-line option to enable it (unless the response contains an @,
>perhaps,
I'd probably do it as a flag taking a domain to append before
returning the result, but you could make a case either way. It's
an issue only for people with ident results containing a local
hostname. For example, if I query identd on X.domain.example, at
it returns user@Y, what should the identity be?
user@X.domain.example
user@Y.domain.example
user@Y.X.domain.example
>and maybe another option to override any content after the @ if
>one is there?)
Sure, although the -t flag already does this in some sense
(seeing as the default-domain will then be appended).
--
Jeffrey M. Vinocur
jeff@litech.org
Re: a patch, some comments, and a question ...
Author: Urs Janßen
Date: Fri, 18 Feb 2005 01:08
Date: Fri, 18 Feb 2005 01:08
21 lines
2258 bytes
2258 bytes
In <cv31ce$prj$1@puck.litech.org>, Jeffrey M. Vinocur wrote: > >The only difference, from what I understand of the documentation is that > >the "Sender:" header might already have been added by the client > >software, and would be replaced by the nnrpdauthsender / ident resolver > >configuration. > That's true. In practice, though, it's a rare news client that > adds (or even knows about) the Sender header. JFTR: tin adds the Sender header if the local-part or the domain-part of the user doesn't match his login and/or the systems (or compiled in) domain-name (this can disabled, but not on a per users basis). and having a newsserver to replace the Sender header might cause problems with pgp-signed articles (e.g. control-messages). urs -- Jef Poskanzer: "When people aren't stupid Usenet is even more useful. Too bad this happens so rarely."
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Fri, 18 Feb 2005 04:21
Date: Fri, 18 Feb 2005 04:21
38 lines
3288 bytes
3288 bytes
Russ Allbery wrote:
>> Would I be correct in understanding that I would need a separate access
>> stanza in the above configuration, to permit access from hosts with no
>> ident daemon, with "users: <concordia>"?
>
> No, those users will be assigned an identity of
> <concordia>@concordia.ca (the combination of default and
> default-domain) and then will be picked up by *@concordia.ca.
Hrmmm... and that ("<concordia>@concordia.ca") is what would show up in
the Sender: header, then? I'm not crazy about that. In fact, it occurs
to me that with any Sender: header with a default of "@concordia.ca"
people might (incorrectly) try and email the user at that "address",
which would fail. Definitely if I use Inn's ident resolver, I'll need
to modify it to add @hostname when it doesn't receive a hostname in the
response (and probably also in cases where any text after the @, if
present, doesn't match the hostname that ident queried).
I saw also in ident.c that in the cases where the response from the
client system's ident server is encrypted, we get back the default user
(very likely because ident.c was written with the intention of
determining access to the groups), which is yet another behaviour I
rather not have. I'm yet again leaning towards sticking with the
NNTP-Posting-User patch, which would in this case simply record the
encryption string in place of the user name, and that could still be
used by the sysadmin of the NNTP-Posting-Host to identify a user.
Of course, if I'm misinterpretting ident.c, I hope someone will let me
know.
--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca
Systems analyst / Newsmaster Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Fri, 18 Feb 2005 04:45
Date: Fri, 18 Feb 2005 04:45
62 lines
3982 bytes
3982 bytes
I'm following up here to several messages at once, in the interest of trying to keep things as short as possible ... Russ Allbery wrote: > What I'd do is add an option like -s (append system name; -h should > be reserved for help), and have it by default append @ and the remote > system name if there is no @ in the repsonse. And then, if -t is > given, strip off the @ stuff before making that check. For what it's worth, I had understood what you meant in your first message. :-) If no one starts on this before I get around to it, (and unless someone objects) I'll gladly work on it myself. I'm still thinking I likely won't use it, but it would be worth coding in. Jeffrey M. Vinocur wrote: > I'd probably do it as a flag taking a domain to append before > returning the result, but you could make a case either way. It's > an issue only for people with ident results containing a local > hostname. For example, if I query identd on X.domain.example, at > it returns user@Y, what should the identity be? > > user@X.domain.example > user@Y.domain.example > user@Y.X.domain.example If I trust X.domain.example's ident daemon, I imagine that "user@Y" is meaningful to me. It needn't be meaningful to anyone else, so I would argue that it could be left as-is. If I don't trust X.domain.example, then "user@X.domain.example" is probably the best I'll be able to give to X.domain.example's sysadmin. >> and maybe another option to override any content after the @ if >> one is there?) > > Sure, although the -t flag already does this in some sense > (seeing as the default-domain will then be appended). :-) There seems to be a concensus on using "-t"s functionality for that. It, of course makes sense. Urs Janßen wrote: > ... having a newsserver to replace the Sender header might cause > problems with pgp-signed articles (e.g. control-messages). Hrmmm... That's worth considering, but this is something that's already in Inn, and may (hopefully?) already have been considered. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst / Newsmaster Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
Re: a patch, some comments, and a question ...
Author: Bill Davidsen
Date: Mon, 28 Feb 2005 20:46
Date: Mon, 28 Feb 2005 20:46
33 lines
3014 bytes
3014 bytes
Russ Allbery wrote: > Sylvain Robitaille <syl@alcor.concordia.ca> writes: > >>Russ Allbery wrote: > > >>>It's not entirely clear to me that overchan is a good idea these days, >>>but I haven't done any benchmarks. > > >>For the nature of this server, considering that I've been using it until >>now with on older version of Inn on much older hardware, I'm really not >>concerned that it will have a negative effect on performance. > > > Then you definitely don't want to run overchan. > > overchan is more complicated and more fiddly, but exists to get overview > writing out of INN's main loop for performance reasons. If you don't care > about that level of performance tweak, just let INN write out the overview > information directly. Then you don't have to worry about overchan > backlogs, conflicting configurations, etc. Our unthreaded innd is showing it's age with current volume. Using overchan, or even several, may be necessary to allow other CPUs in the act. I would love to get the perl filter out of single threaded mode as well, but that's not in my current time constraints. -- bill davidsen (davidsen@darkstar.prodigy.com) SBC/Prodigy Yorktown Heights NY data center Project Leader, USENET news http://newsgroups.news.prodigy.com
Re: a patch, some comments, and a question ...
Author: Bill Davidsen
Date: Mon, 28 Feb 2005 20:49
Date: Mon, 28 Feb 2005 20:49
29 lines
2748 bytes
2748 bytes
Sylvain Robitaille wrote: > Marco d'Itri wrote: > > >>>Comments and criticisms are of course welcome. >> >>Use the perl API. > > > For NNTP-Posting-User, you mean? I've read through doc/hook-perl and I > got the sense that this was primarily for authenticating the users, > (sure at that point you could use the authenticated user name in such a > header as well), but that isn't the goal here. In fact, I specifically > don't want to change the way our users use the news service, which > they're entitled to do so long as they're using a computer on our > network. > > What I want to be able to do is use the ident information (when > available) from multi-user systems, in the cases where I might need to > trace a message back. > I hope you are not putting user information in any reversable format, unless you have users who have no concern for privicy and spam issues. -- bill davidsen (davidsen@darkstar.prodigy.com) SBC/Prodigy Yorktown Heights NY data center Project Leader, USENET news http://newsgroups.news.prodigy.com
Re: a patch, some comments, and a question ...
Author: Sylvain Robitaille
Date: Mon, 28 Feb 2005 22:40
Date: Mon, 28 Feb 2005 22:40
23 lines
2248 bytes
2248 bytes
Bill Davidsen wrote: > I hope you are not putting user information in any reversable format, > unless you have users who have no concern for privicy and spam issues. Well, see the headers of this message (or any other I've sent): You'll find that "NNTP-Posting-User@NNTP-Posting-Host" matches the "From:" header. In fact, with the particular software I'm using (which is the default supported newsreader on our main multi-user system), see the "Message-ID:" header as well. This isn't something we started doing recently, however. We encourage our users not to post anything they would not otherwise say in person, and to make use of spam-detection and filtering facilities that we provide. -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------
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