Thread View: news.software.nntp
3 messages
3 total messages
Started by Patrice
Thu, 04 Apr 2002 12:20
Inn 2.3 & nnrpd_auth.pl - cannot post / connection ends
Author: Patrice
Date: Thu, 04 Apr 2002 12:20
Date: Thu, 04 Apr 2002 12:20
34 lines
2251 bytes
2251 bytes
Hello there, I'm new in nntp world, but I'm already encountering some weird stuff ... I'm trying to link Innd authentication to a LDAP server, thus I'm using the perl hook through nnrpd_auth.pl. My Inn server is a standalone one, thus the configuration is a very basic one. When connecting, I return the following arguments' list requesting authentication : ( 480, 1, 1, *, undef ) What is expected happends here : a call to authenticate() which matches a username/password couple against the LDAP server. When the authentication is correct I return the following list : ( 281, 1, 1, [ a list of comma separated authorized newsgroups ], undef ) Till here, everything looks OK. I'm able to read the authorized newsgroups, a telnet connection comforts me in the fact that the authentication succeeded ( return code 281 ) ... The snag is I'm unable to post anything ... A telnet connection ends as soon as I'm entering the post command. The logs of pan ( a newsreader ) shows that the client lost connection with the server as soon as the posting occurs. When I'm not using the nnrpd_auth.pl stuff, everything works fine. But the problem seems not to come from the perl stuff because the codes returned are correct. I feel a bit lost, and, if anybody has any idea about a path to follow to overcome the situation, I will be very thanksfull. Patrice Bour
Re: Inn 2.3 & nnrpd_auth.pl - cannot post / connection ends
Author: Jeffrey M. Vinocur
Date: Thu, 04 Apr 2002 15:23
Date: Thu, 04 Apr 2002 15:23
23 lines
1712 bytes
1712 bytes
In article <6bc5840c.0204040420.42251e8b@posting.google.com>, Patrice <patrice.bour@synaptique.com> wrote: > >I'm trying to link Innd authentication to a LDAP server, thus I'm using >the perl hook through nnrpd_auth.pl. Are you using an operating system that supports PAM (say, Redhat?). If so, you can install pamckpasswd and a PAM/LDAP module, and not have to write any code at all. This is what I did, it's very easy. >The snag is I'm unable to post anything ... A telnet connection ends as >soon as I'm entering the post command. It just closes the connection, no output? What's in the logs (news.notice, news.err, news.crit, errlog). -- Jeffrey M. Vinocur jeff@litech.org
Re: Inn 2.3 & nnrpd_auth.pl - cannot post / connection ends
Author: Patrice Bour
Date: Thu, 04 Apr 2002 16:52
Date: Thu, 04 Apr 2002 16:52
53 lines
3250 bytes
3250 bytes
Cheers for your answer Jeffrey. In article <a8hr5t$7c5$1@marduk.litech.org>, "Jeffrey M. Vinocur" <jeff@litech.org> wrote: > In article <6bc5840c.0204040420.42251e8b@posting.google.com>, Patrice > <patrice.bour@synaptique.com> wrote: >> >>I'm trying to link Innd authentication to a LDAP server, thus I'm using >>the perl hook through nnrpd_auth.pl. > > Are you using an operating system that supports PAM (say, Redhat?). If > so, you can install pamckpasswd and a PAM/LDAP module, and not have to > write any code at all. This is what I did, it's very easy. > Indeed I'm using RedHat Linux ... But it is only for testing purposes, the target system is a Solaris OS. And even if pam is usable there, the configuration won't authorize it. Moreover, the LDAP connection itself will be replaced by a already existing perl script front-end on the final system. This front end will return a list of lines, each one with a specific meaning associated with the order of appearance > >>The snag is I'm unable to post anything ... A telnet connection ends as >>soon as I'm entering the post command. > > It just closes the connection, no output? What's in the logs > (news.notice, news.err, news.crit, errlog). Nothing in the logs but the connect line with the user id. When posting, the socket suddenly dies. When inspecting TCP/IP packets during the exchange, nothing seems unusual, untill the connexion is brutally terminated without a single FIN packet. The only "original" point in my configuration is that i'm using an alias IF (eth0:1) because my newsreaders don't issue a "mode reader" command and thus I'm not able to read news through them because they're bind to the same interface than my Innd server. But if that was the point I won't be able to post as well without authentication, I guess. I was thinking about using readers.conf's stuff but because the authentication schemes will be gid dependent and a single user can be member of multiple groups, it's too contraignant. I feel a bit lost. Patrice
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