Article View: news.software.nntp
Article #46348Re: How to hook a perl script to INN?
From: Julien Lajeunesse
Date: Tue, 09 May 2000 00:00
Date: Tue, 09 May 2000 00:00
59 lines
2938 bytes
2938 bytes
Hi again,
Thank you very much Paul for your help, everything is going better
everyday :-).
Now I've played with the perl script. I installed the Authen::PAM perl
module which allow a script to use the PAM mechanism in Linux or FreeBSD
or Solaris. This way shadow password and encryption such as MD5 are not
a problem. As soon as I have everything working I'll post my
nnrpd_auth.pl so people interested in it can take a look.
But I still have a problem. If anyone has a clue I would like to hear
from you! When setting useperlauth to true in /etc/news/inn.conf, I get
an error when I try to connect. The simplest test I have done is the
following:
-I make sure that nnrpd_auth.pl returns (200, 1, 1, "local.*") upon a
connection, so there's not even authentication going on;
-When trying to connect with tin I get this error:
-----
bash$ tin -g localhost
tin pre-1.4 release 19990216 ("Styrofoam") [UNIX] (c) Copyright 1991-99
Iain Lea.
Reading config file...
Connecting to localhost...
localhost InterNetNews server INN 2.2 21-Jan-1999 ready
Your server does not have Xref: in its XOVER information.
Tin will try to use XHDR XREF instead (slows down things a bit).
Reading input history file...
Reading groups from active file... Active file corrupt - Subject:
Active file corrupt - From:
Active file corrupt - Date:
Active file corrupt - Message-ID:
Active file corrupt - References:
Active file corrupt - Bytes:
Active file corrupt - Lines:
Active file corrupt - Xref:full
servers active-file contains no newsgroups. Exiting.
Disconnecting from server...
-----
With Netscape I have an error message saying "Bad command use".
If I "come back" to using /etc/news/nnrp.access, everything works fine.
(If I ask for authentication, I am prompted for a username and password
and then I get a "auhtentication failed" error even if I do nothing and
*always* return the access granted value!!!)
Any cue? I'm still working on it!
Thanks again in advance for any help,
Julien Lajeunesse
Technical Details
Message-ID:
<39188387.395A3D2D@hermes.usherb.ca>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<39175CD7.C95DCD79@hermes.usherb.ca> <8f7mmc$12a$1@allhats.xcski.com> <8f7n8t$1i1$1@allhats.xcski.com>Show Full Headers
Complete Article Headers
Message-ID: <39188387.395A3D2D@hermes.usherb.ca> Subject: Re: How to hook a perl script to INN? Date: Tue, 09 May 2000 00:00:00 +0000 From: Julien Lajeunesse <julien.lajeunesse@hermes.usherb.ca> References: <39175CD7.C95DCD79@hermes.usherb.ca> <8f7mmc$12a$1@allhats.xcski.com> <8f7n8t$1i1$1@allhats.xcski.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 621290747 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: news20.bellglobal.com 957907393 216.209.221.16 (Tue, 09 May 2000 17:23:13 EDT) Organization: Sympatico MIME-Version: 1.0 NNTP-Posting-Date: Tue, 09 May 2000 17:23:13 EDT Newsgroups: news.software.nntp