🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Mason Sin-Fai Leung Tue, 13 Apr 2004 20:43
perl_auth
#68978
Author: Mason Sin-Fai Leung
Date: Tue, 13 Apr 2004 20:43
11 lines
1430 bytes
Hi all,

I have put "perl_auth : <where filter_nnrpd.pl>" is in my auth block in 
the reader.conf file, howerever, when I load up my news reader, inn does
not do any authenticate (I put some print to file code in filter_nnrpd.pl to
check if it is ever run).  Any idea why filter_nnrpd.pl is not executed?  I 
also saw some ppl use "auth: ldap" in auth block to use ldap.  Is this the 
proper way to do it?  Thanks.

ML  
Re: perl_auth
#68979
Author: Jeffrey M. Vinocur
Date: Tue, 13 Apr 2004 20:54
23 lines
1871 bytes
In article <c5hjcn$d44$1@woodrow.ucdavis.edu>,
Mason Sin-Fai Leung  <leungm@pc36.cs.ucdavis.edu> wrote:
>
>I have put "perl_auth : <where filter_nnrpd.pl>" is in my auth block in 
>the reader.conf file, howerever, when I load up my news reader, inn does
>not do any authenticate (I put some print to file code in filter_nnrpd.pl to
>check if it is ever run).  Any idea why filter_nnrpd.pl is not executed?

Well, filter_nnrpd.pl by its name, likely contains a posting
filter, rather than authentication code.  I suggest you read
doc/hook-perl more carefully.


>I also saw some ppl use "auth: ldap" in auth block to use ldap.
>Is this the proper way to do it?  Thanks.

Depends what you want to do.  Have you read the readers.conf
manpage?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: perl_auth
#68982
Author: Mason Sin-Fai Leung
Date: Tue, 13 Apr 2004 21:41
34 lines
2476 bytes
I meant "nnrpd_auth.pl" not "filter_nnrpd.pl" in reader.conf.  It was a
typo.  I can't control posting via filter_nnrpd.pl, but not sure why
nnrpd_auth.pl never loads.  I am trying to use ldap to authenticate users
when they first connect to the news server.  I look into nnrpd_auth.pl and
it looks like I can load a DB in nnrpd_auth.pl.  Presumably, I can use ldap
there?  Any pointer?  Thanks.

ML


On Tue, 13 Apr 2004, Jeffrey M. Vinocur wrote:

> In article <c5hjcn$d44$1@woodrow.ucdavis.edu>,
> Mason Sin-Fai Leung  <leungm@pc36.cs.ucdavis.edu> wrote:
> >
> >I have put "perl_auth : <where filter_nnrpd.pl>" is in my auth block in 
> >the reader.conf file, howerever, when I load up my news reader, inn does
> >not do any authenticate (I put some print to file code in filter_nnrpd.pl to
> >check if it is ever run).  Any idea why filter_nnrpd.pl is not executed?
> 
> Well, filter_nnrpd.pl by its name, likely contains a posting
> filter, rather than authentication code.  I suggest you read
> doc/hook-perl more carefully.
> 
> 
> >I also saw some ppl use "auth: ldap" in auth block to use ldap.
> >Is this the proper way to do it?  Thanks.
> 
> Depends what you want to do.  Have you read the readers.conf
> manpage?
> 
> 
> 
Re: perl_auth
#68983
Author: Jeffrey M. Vinocur
Date: Tue, 13 Apr 2004 22:17
28 lines
2078 bytes
In article <Pine.LNX.4.44.0404131433210.4546-100000@pc36.cs.ucdavis.edu>,
Mason Sin-Fai Leung  <leungm@cs.ucdavis.edu> wrote:
>I meant "nnrpd_auth.pl" not "filter_nnrpd.pl" in reader.conf.  It was a
>typo.

Ok.


>I can't control posting via filter_nnrpd.pl, but not sure why
>nnrpd_auth.pl never loads.  I am trying to use ldap to authenticate users
>when they first connect to the news server.  I look into nnrpd_auth.pl and
>it looks like I can load a DB in nnrpd_auth.pl.

This all sounds good.  Does your nnrpd_auth.pl define functions
as described in the "Perl Authentication Support for nnrpd" of
doc/hook-perl?


>Presumably, I can use ldap there?  Any pointer?  Thanks.

For what it's worth, we access LDAP by using the ckpasswd
authenticator, which has support for PAM; and we use the PAM LDAP
support that came with the operating system.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: perl_auth
#68985
Author: Mason Sin-Fai Leung
Date: Wed, 14 Apr 2004 00:00
27 lines
2280 bytes
On Tue, 13 Apr 2004, Jeffrey M. Vinocur wrote:

> >I can't control posting via filter_nnrpd.pl, but not sure why
> >nnrpd_auth.pl never loads.  I am trying to use ldap to authenticate users
> >when they first connect to the news server.  I look into nnrpd_auth.pl and
> >it looks like I can load a DB in nnrpd_auth.pl.
> 
> This all sounds good.  Does your nnrpd_auth.pl define functions
> as described in the "Perl Authentication Support for nnrpd" of
> doc/hook-perl?
> 
Ya, I have both auth_init() and authenticate() defined.  Both functions
follow the default nnrpd_auth.pl.  One thing is strange is the %attributes
hash is empty.  My news reader does supply password and login and I can even
see the login name in /log/news.notice.  Any idea?  Thanks for your prompt
Jeffrey

> 
> >Presumably, I can use ldap there?  Any pointer?  Thanks.
> 
> For what it's worth, we access LDAP by using the ckpasswd
> authenticator, which has support for PAM; and we use the PAM LDAP
> support that came with the operating system.
> 
> 
> 
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