Thread View: news.software.nntp
9 messages
9 total messages
Started by Tim Fardell
Fri, 25 Apr 2008 11:15
NNTP over SSL/TLS using INN 2.4.3
Author: Tim Fardell
Date: Fri, 25 Apr 2008 11:15
Date: Fri, 25 Apr 2008 11:15
31 lines
2274 bytes
2274 bytes
Thought this was worth a new thread, since it's a sligtly different question! I have compiled INN with --with-openssl, generated certificate, and set up sasl.conf to point to the cert and key files. nnrpd runs fine on port 119, with clear text authentication working. However, when I run 'nnrpd -S', I get: 580 Error initializing TLS Running 'nnrpd -D -S -p 563' starts up the daemon, but the same error is then returned to any client connecting to port 563, and the connection is closed immediately. I compiled on a Fedora Core 5 box, and the 'Make' process could not find com_err.h. I found this file in /usr/include/et and copied it to /usr/include where Make could find it, and the compilation worked fine then. What am I doing wrong? Google only finds a mailing-list thread with someone else experiencing the same problem, but no solution is given. Tim. -- Please remove all-your-clothes before replying.
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Jeffrey M. Vinocur
Date: Sat, 26 Apr 2008 00:55
Date: Sat, 26 Apr 2008 00:55
29 lines
1861 bytes
1861 bytes
In article <Pine.LNX.4.44.0804251207410.12509-100000@menace.crumblenet.co.uk>, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: >Thought this was worth a new thread, since it's a sligtly different >question! Definitely. >nnrpd runs fine on port 119, with clear text authentication working. But I bet if you telnet to port 119 and send STARTTLS, you'll get the same error as below. >However, when I run 'nnrpd -S', I get: > >580 Error initializing TLS Did you check news.err / news.notice / errlog? I have a vague recollection that the libraries can be finnicky about filesystem permissions -- check the installation section of the sasl.conf manpage about exactly what access / ownership you need. -- Jeffrey M. Vinocur jeff@litech.org
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Tim Fardell
Date: Mon, 28 Apr 2008 13:35
Date: Mon, 28 Apr 2008 13:35
42 lines
2828 bytes
2828 bytes
On Sat, 26 Apr 2008, Jeffrey M. Vinocur wrote: > In article <Pine.LNX.4.44.0804251207410.12509-100000@menace.crumblenet.co.uk>, > Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >nnrpd runs fine on port 119, with clear text authentication working. > > But I bet if you telnet to port 119 and send STARTTLS, you'll get > the same error as below. Thanks Jeff - Indeed I did, but I feel very silly now, because I was attempting to run nnrpd as 'root' instead of 'news'. When I run it as 'news' the SSL seems to work fine. However - I now have a new problem! My recompiled nnrpd can't seem to access any newsgroups. When the client connects, it sends LIST, to which the server responds with a full, correct list of groups. It then does a LIST NEWSGROUPS to get the newsgroup descriptions and closes the connection. All fine, no problems here. However, when the client attempts to read a newsgroup, it sends GROUP <groupname>, where <groupname> is a valid name of a group, as returned previously by LIST. The server then responds with: 411 No such group, even though the group is valid. Even attempts to read control.cancel and junk result in 411 No such group. When I connect to the 'stock' Fedora nnrpd, everything works fine, but obviously I have no SSL support in that binary! I have tried rebuilding the complete Overview and History databases (makehistory -O -F) but no joy. Nothing of any use in the logs. Any ideas what could cause this? Tim. -- Please remove all-your-clothes before replying.
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Julien ÉLIE
Date: Mon, 28 Apr 2008 14:15
Date: Mon, 28 Apr 2008 14:15
20 lines
2114 bytes
2114 bytes
Hi Tim, > When I connect to the 'stock' Fedora nnrpd, everything works fine, but > obviously I have no SSL support in that binary! Did you compile your nnrpd with the same configure options as the "stock" Fedora one? (for instance --enable-largefiles if it is used in Fedora) It is just a suggestion, perhaps the problem is generated by another thing. The paths to your spool is in inn.conf which seems to be correctly read by your nnrpd (it finds pathdb for instance). -- Julien ÉLIE « La science consiste à passer d'un étonnement à l'autre. » (Aristote)
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Bozweb
Date: Mon, 28 Apr 2008 14:38
Date: Mon, 28 Apr 2008 14:38
45 lines
2393 bytes
2393 bytes
On Fri, 25 Apr 2008 12:15:31 +0100, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: >Thought this was worth a new thread, since it's a sligtly different >question! > >I have compiled INN with --with-openssl, generated certificate, and set up >sasl.conf to point to the cert and key files. > >nnrpd runs fine on port 119, with clear text authentication working. > >However, when I run 'nnrpd -S', I get: > >580 Error initializing TLS > >Running 'nnrpd -D -S -p 563' starts up the daemon, but the same error is >then returned to any client connecting to port 563, and the connection is >closed immediately. > >I compiled on a Fedora Core 5 box, and the 'Make' process could not find >com_err.h. I found this file in /usr/include/et and copied it to >/usr/include where Make could find it, and the compilation worked fine >then. > >What am I doing wrong? > >Google only finds a mailing-list thread with someone else experiencing the >same problem, but no solution is given. > >Tim. There is a bug in auth_krb5.c #include "config.h" #include "clibrary.h" #include "libauth.h" #ifdef HAVE_ET_COM_ERR_H # include <et/com_err.h> #else # include <com_err.h> chance this in <et/com_err.h> #endif -- Posted by: news.bozweb.net http://www.bozweb.net/
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Julien ÉLIE
Date: Mon, 28 Apr 2008 20:47
Date: Mon, 28 Apr 2008 20:47
29 lines
2160 bytes
2160 bytes
Hi Bozweb, >>I compiled on a Fedora Core 5 box, and the 'Make' process could not find >>com_err.h. I found this file in /usr/include/et and copied it to >>/usr/include where Make could find it, and the compilation worked fine >>then. > > There is a bug in auth_krb5.c > > #include "config.h" > #include "clibrary.h" > #include "libauth.h" > #ifdef HAVE_ET_COM_ERR_H > # include <et/com_err.h> > #else > # include <com_err.h> chance this in <et/com_err.h> > #endif Or a problem with configure? I have HAVE_ET_COM_ERR_H set if <et/com_err.h> exists. What does config.log say? -- Julien ÉLIE « -- C'est quoi la vesperna ? -- C'est du latin de cuisine imbécile ! » (Astérix)
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Bozweb
Date: Tue, 29 Apr 2008 07:31
Date: Tue, 29 Apr 2008 07:31
38 lines
2151 bytes
2151 bytes
On Mon, 28 Apr 2008 22:47:04 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Bozweb, > >>>I compiled on a Fedora Core 5 box, and the 'Make' process could not find >>>com_err.h. I found this file in /usr/include/et and copied it to >>>/usr/include where Make could find it, and the compilation worked fine >>>then. >> >> There is a bug in auth_krb5.c >> >> #include "config.h" >> #include "clibrary.h" >> #include "libauth.h" >> #ifdef HAVE_ET_COM_ERR_H >> # include <et/com_err.h> >> #else >> # include <com_err.h> chance this in <et/com_err.h> >> #endif > >Or a problem with configure? >I have HAVE_ET_COM_ERR_H set if <et/com_err.h> exists. > >What does config.log say? Nothing in config.log Configure --with-perl on a centos 5.1 make[1]: *** [auth_krb5.o] Error 1 make[1]: Leaving directory `/tmp/inn-2.4.3/authprogs' make: *** [all-authprogs] Error 2 -- Posted by: news.bozweb.net http://www.bozweb.net/
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Julien ÉLIE
Date: Tue, 29 Apr 2008 10:28
Date: Tue, 29 Apr 2008 10:28
97 lines
4174 bytes
4174 bytes
Hi Bozweb,
>>> There is a bug in auth_krb5.c
>>
>>Or a problem with configure?
>>I have HAVE_ET_COM_ERR_H set if <et/com_err.h> exists.
>>
>>What does config.log say?
>
> Nothing in config.log
> Configure --with-perl on a centos 5.1
Hmm... auth_krb5.c should normally be dealt with only if "--with-kerberos"
is also given to configure.
I see that KRB5_AUTH is set in Makefile.global even though we do not want
Kerberos. It affects INN 2.4.x but it was fixed in INN 2.5.
Perhaps something like that should fix the problem for INN 2.4.x but
it is more a kludge than anything else:
Index: configure
===================================================================
--- configure (révision 7765)
+++ configure (copie de travail)
@@ -8054,6 +8054,8 @@
fi
+if test "${with_kerberos+set}" = set; then
+if test x"$with_kerberos" != xno ; then
inn_save_LIBS=$LIBS
LIBS=${KRB5_LIB}
@@ -8223,6 +8225,10 @@
fi
done
+
+fi
+fi
+
LIBS=$inn_save_LIBS
if test x"$DO_PERL" = xDO ; then
Index: configure.in
===================================================================
--- configure.in (révision 7765)
+++ configure.in (copie de travail)
@@ -818,19 +818,21 @@
dnl Check for Kerberos libraries for auth_krb5, and if found define KRB5_AUTH
dnl to the relevant object file, which will enable compilation of it.
-INN_SEARCH_AUX_LIBS(krb5_parse_name, krb5, KRB5_LIB,
- [KRB5_AUTH="auth_krb5"
- KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
- AC_SUBST(KRB5_AUTH)
- AC_SUBST(KRB5_INC)
- AC_CHECK_HEADERS([et/com_err.h])], , [$LIBS -lk5crypto -lcom_err])
+if test x"$with_kerberos" != xno ; then
+ INN_SEARCH_AUX_LIBS(krb5_parse_name, krb5, KRB5_LIB,
+ [KRB5_AUTH="auth_krb5"
+ KRB5_LIB="$KRB5_LDFLAGS $KRB5_LIB -lk5crypto -lcom_err"
+ AC_SUBST(KRB5_AUTH)
+ AC_SUBST(KRB5_INC)
+ AC_CHECK_HEADERS([et/com_err.h])], , [$LIBS -lk5crypto -lcom_err])
-dnl Check for necessity of krb5_init_ets
-dnl OSX does not require this function
-inn_save_LIBS=$LIBS
-LIBS=$KRB5_LIB
-AC_CHECK_FUNCS(krb5_init_ets)
-LIBS=$inn_save_LIBS
+ dnl Check for necessity of krb5_init_ets
+ dnl OSX does not require this function
+ inn_save_LIBS=$LIBS
+ LIBS=$KRB5_LIB
+ AC_CHECK_FUNCS(krb5_init_ets)
+ LIBS=$inn_save_LIBS
+fi
dnl Libraries and flags for embedded Perl. Some distributions of Linux have
dnl Perl linked with gdbm but don't normally have gdbm installed, so on that
--
Julien ÉLIE
« Être øu ne pås être, telle est lå questiøn... » (Kerøzen)
Re: NNTP over SSL/TLS using INN 2.4.3
Author: Julien ÉLIE
Date: Wed, 30 Apr 2008 18:37
Date: Wed, 30 Apr 2008 18:37
22 lines
2123 bytes
2123 bytes
Hi Bozweb, >> I compiled on a Fedora Core 5 box, and the 'Make' process could not find >> com_err.h. I found this file in /usr/include/et and copied it to >> /usr/include where Make could find it, and the compilation worked fine >> then. > > Configure --with-perl on a centos 5.1 > > make[1]: *** [auth_krb5.o] Error 1 > make[1]: Leaving directory `/tmp/inn-2.4.3/authprogs' > make: *** [all-authprogs] Error 2 This issue is fixed in INN 2.4.4. Thanks, Tim, for having reported it and Bozweb for having restarted the thread. It was a great timing :) -- Julien ÉLIE « Le temps, c'est des sesterces. » (Coquelus)
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