Thread View: news.software.nntp
32 messages
32 total messages
Started by Tim Fardell
Wed, 09 Apr 2008 20:30
INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Wed, 09 Apr 2008 20:30
Date: Wed, 09 Apr 2008 20:30
41 lines
2141 bytes
2141 bytes
Hello again all!
I'm trying to configure INN in such a way that everyone can read all
groups as soon as they connect, but can only post after successfully
authenticating (via ckpasswd).
It sounds so simple, but I'm getting totally bogged down in the syntax
of readers.conf. I can't even figure out whether I need two auth
groups or just one!
So, when a user connects and does not authenticate, they are allowed
to read everything, but post nothing.
If they then authenticate, only then are they allowed to post.
So far, I have come up with this:
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
access not-authenticated {
users: "<LOCAL>*"
read: "*"
post: "!*"
}
access authenticated {
users "*, !<LOCAL>*"
newsgroups: "*"
}
Will that work, or am I completely up the spout?
Do I need separate auth groups, one for authenticated and the other
for non-authenticated users?
Thanks in advance!
--
Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Wed, 09 Apr 2008 20:54
Date: Wed, 09 Apr 2008 20:54
81 lines
3088 bytes
3088 bytes
Hi Tim,
> It sounds so simple, but I'm getting totally bogged down in the syntax
> of readers.conf. I can't even figure out whether I need two auth
> groups or just one!
With only your:
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
if someone is not authenticated, this auth block will fail and he
will not have access to your news server. Therefore, you also have
to add an "access not-authenticated" block like this one:
auth "not-authenticated" {
hosts: "*"
default: <LOCAL>
}
> access not-authenticated {
> users: "<LOCAL>*"
> read: "*"
> post: "!*"
> }
I do not know whether "not-authenticated" should be quoted but in case
something goes wrong, try to quote it.
> access authenticated {
> users "*, !<LOCAL>*"
> newsgroups: "*"
> }
Do not forget the colon after "users".
Why do you remove <LOCAL> here?
> Will that work, or am I completely up the spout?
I have not tested your blocks but I think they should work.
The one I use (thus it works) is the following:
auth "users" {
hosts: "*"
default: "<all>"
}
auth "users-ssl" {
hosts: "*"
auth: "ckpasswd -f /home/news/etc/users-ssl"
}
access "users" {
users: "<all>"
newsgroups: "*"
access: R
}
access "users-ssl" {
newsgroups: "*"
strippath: "true"
access: RPA
}
I sometimes like to put "key" parameters. And I am accustomed to using
"access" instead of "read"/"post".
--
Julien ÉLIE
« Le rire est une chose sérieuse avec laquelle il ne faut pas plaisanter. » (Raymond Devos)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Wed, 09 Apr 2008 21:50
Date: Wed, 09 Apr 2008 21:50
77 lines
3241 bytes
3241 bytes
Thanks Julien!
On Wed, 9 Apr 2008 22:54:15 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:
>With only your:
>
>auth everyone {
>
>if someone is not authenticated, this auth block will fail and he
>will not have access to your news server. Therefore, you also have
>to add an "access not-authenticated" block like this one:
>
>auth "not-authenticated" {
> hosts: "*"
> default: <LOCAL>
>}
Yes, I thought this was probably the case, but the man page wasn't all
that clear as to exactly how the scanning of readers.conf was handled.
It sort of implied that if the auth failed, it would still match on
the block but set the user to default:, in my case <LOCAL>.
>> access authenticated {
>> users "*, !<LOCAL>*"
>> newsgroups: "*"
>> }
>
>Do not forget the colon after "users".
>Why do you remove <LOCAL> here?
Thinking that if no authentication is carried out, the user will be
set to <LOCAL>, so would match on this block and allow everyone to
post. ???
>The one I use (thus it works) is the following:
>
>
>auth "users" {
> hosts: "*"
> default: "<all>"
>}
>
>auth "users-ssl" {
> hosts: "*"
> auth: "ckpasswd -f /home/news/etc/users-ssl"
>}
>
>access "users" {
> users: "<all>"
> newsgroups: "*"
> access: R
>}
>
>access "users-ssl" {
> newsgroups: "*"
> strippath: "true"
> access: RPA
>}
Thanks! I think I understand what you're doing here - but why doesn't
your access "users-ssl" block match all users and thus allow all users
to read and post?
So, unauthenticated user comes in, and matches on auth "users" and
gets username "<all>". Access "users-ssl" has no users: line, so
matches all users, including "<all>" so will allow unauthenticated
users to post, as it is the last matching access block in
readers.conf???
I guess my question is: why don't you need:
access "users-ssl" {
users: "*, !<all>"
...
}
--
Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Wed, 09 Apr 2008 22:50
Date: Wed, 09 Apr 2008 22:50
60 lines
2583 bytes
2583 bytes
In article <ftjae7$q1d$1@news.trigofacile.com>,
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>
>With only your:
>
>auth everyone {
> hosts: "*"
> auth: "ckpasswd"
> default: <LOCAL>
>}
>
>if someone is not authenticated, this auth block will fail and he
>will not have access to your news server.
Actually, I don't think that's the case. I'm pretty sure that
the above block will work as intended (matching unauthenticated
connections as well and assigning the default identity).
>> access authenticated {
>> users "*, !<LOCAL>*"
>> newsgroups: "*"
>> }
>
>Do not forget the colon after "users".
>Why do you remove <LOCAL> here?
Remember that last matching group is used, so either the
<LOCAL>-only access block needs to go last, or the above
technique needs to be used.
>auth "users" {
> hosts: "*"
> default: "<all>"
>}
>
>auth "users-ssl" {
> hosts: "*"
> auth: "ckpasswd -f /home/news/etc/users-ssl"
>}
Hmm does this actually work as desired if you connect without
authenticating? I'm surprised if it does.
>I sometimes like to put "key" parameters. And I am accustomed to using
>"access" instead of "read"/"post".
Shush! That's not recommended!
(We really need to add more-powerful parameters for approval and
newnews so that access: is not needed so often. It would be nice
to have "allow_approval: <wildmat>" instead of a global yes/no
setting anyway.)
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Wed, 09 Apr 2008 22:52
Date: Wed, 09 Apr 2008 22:52
26 lines
2141 bytes
2141 bytes
In article <indqv3lan958qdct9sbbqhfplt41o80v8m@4ax.com>, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >Yes, I thought this was probably the case, but the man page wasn't all >that clear as to exactly how the scanning of readers.conf was handled. >It sort of implied that if the auth failed, it would still match on >the block but set the user to default:, in my case <LOCAL>. If authentication is attempted and is unsuccessful, the connection is closed (with an error message). So no identity is assigned at all in that case. >Thanks! I think I understand what you're doing here - but why doesn't >your access "users-ssl" block match all users and thus allow all users >to read and post? That block does not have a default identity, so no identity can be assigned and I would expect that any connection that matched (i.e. all connections) to receive only "480 authentication required" to any attempts at access. I think... -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: D. Stussy
Date: Thu, 10 Apr 2008 04:33
Date: Thu, 10 Apr 2008 04:33
19 lines
1958 bytes
1958 bytes
"Tim Fardell" <tim.fardell.all-your-clothes@virgin.net> wrote in message news:qo9qv39vq5i1i0bp6binua9f610b2rm6mh@4ax.com... > Hello again all! > > I'm trying to configure INN in such a way that everyone can read all > groups as soon as they connect, but can only post after successfully > authenticating (via ckpasswd). > ... You already got your answer and what looks like a solution that may work. My comment is: Do you really want to grant posting access to ALL groups - including the pseudo-groups such as "junk" and "control"? Personally, I give myself read-only access to them on my own server but see no reason to have direct posting access. I don't even bother with "control.cancel" and "control.cmsg" (the latter to handle all those malformed control messages from TW - what's up with that anyway?).
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 10 Apr 2008 12:24
Date: Thu, 10 Apr 2008 12:24
63 lines
3249 bytes
3249 bytes
Hi Jeffrey,
>>auth everyone {
>> hosts: "*"
>> auth: "ckpasswd"
>> default: <LOCAL>
>>}
>>
>>if someone is not authenticated, this auth block will fail and he
>>will not have access to your news server.
>
> Actually, I don't think that's the case. I'm pretty sure that
> the above block will work as intended (matching unauthenticated
> connections as well and assigning the default identity).
You're right: unauthenticated connections are matched by this block.
>>auth "users" {
>> hosts: "*"
>> default: "<all>"
>>}
>>
>>auth "users-ssl" {
>> hosts: "*"
>> auth: "ckpasswd -f /home/news/etc/users-ssl"
>>}
>
> Hmm does this actually work as desired if you connect without
> authenticating? I'm surprised if it does.
In fact, I also use
key: "users"
and
key: "users-ssl"
in the corresponding blocks so it works. But the sample I pasted
here does not work (I removed too many parameters, trying to be
more straightforward, and finally I was wrong).
>>I sometimes like to put "key" parameters. And I am accustomed to using
>>"access" instead of "read"/"post".
>
> Shush! That's not recommended!
All right. Thanks for the piece of advice.
> (We really need to add more-powerful parameters for approval and
> newnews so that access: is not needed so often. It would be nice
> to have "allow_approval: <wildmat>" instead of a global yes/no
> setting anyway.)
"allow_newnews: <wildmat>" too? And "allow_local", "allow_ihave"
with wildmats?
--
Julien ÉLIE
« Cent années d'expérimentation ont démontré
que le golf était un moment de folie pratiqué
sur un bout de gazon. » (Dave Kinred)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 10 Apr 2008 12:45
Date: Thu, 10 Apr 2008 12:45
28 lines
2315 bytes
2315 bytes
Hi Jeffrey,
>>Yes, I thought this was probably the case, but the man page wasn't all
>>that clear as to exactly how the scanning of readers.conf was handled.
>>It sort of implied that if the auth failed, it would still match on
>>the block but set the user to default:, in my case <LOCAL>.
>
> If authentication is attempted and is unsuccessful, the
> connection is closed (with an error message). So no identity is
> assigned at all in that case.
With the example Tim gave:
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
the <LOCAL> identity is assigned when authentication is unsuccessful
because there is a default: parameter.
If not present, nnrpd goes on asking for authentication.
--
Julien ÉLIE
« Je viens de rencontrer Isocèle : il a une idée pour un nouveau triangle. » (Woody Allen)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 10 Apr 2008 12:55
Date: Thu, 10 Apr 2008 12:55
58 lines
2677 bytes
2677 bytes
Hi Tim,
> Thanks! I think I understand what you're doing here - but why doesn't
> your access "users-ssl" block match all users and thus allow all users
> to read and post?
An error of myself. A "better" sample in the same idea of what I suggested
would be with the key: parameter.
auth "users" {
hosts: "*"
default: "<all>"
key: "users"
}
auth "users-ssl" {
hosts: "*"
auth: "ckpasswd -f /home/news/etc/users-ssl"
}
access "users" {
users: "<all>"
key: "users"
newsgroups: "*"
access: R
}
access "users-ssl" {
newsgroups: "*"
strippath: "true"
access: RPA
}
You can also add
key: "users-ssl"
to the other blocks but it is not necessary.
Perhaps the use of the key: parameter is the easiest way to
understand the matching auth/access groups (at least, we know
exactly where the user will be linked).
> I guess my question is: why don't you need:
>
> access "users-ssl" {
> users: "*, !<all>"
> ...
> }
Yes, it is also a solution.
--
Julien ÉLIE
« -- Je ne comprends pas comment quelques gouttes de pluie peuvent...
-- Évidemment, tu ne te mouilles pas beaucoup dans cette affaire. » (Astérix)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 10 Apr 2008 13:12
Date: Thu, 10 Apr 2008 13:12
14 lines
1837 bytes
1837 bytes
> An error of myself. A "better" sample in the same idea of what I suggested You should obviously read: An error of mine. A "better" sample in the same idea as what I suggested Sorry for my Frenglish from time to time... -- Julien ÉLIE « Tous les matins, j'apporte à ma femme le café au lit. Elle n'a plus qu'à le moudre. » (Coluche)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Thu, 10 Apr 2008 16:02
Date: Thu, 10 Apr 2008 16:02
59 lines
3021 bytes
3021 bytes
On Thu, 10 Apr 2008 15:12:54 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:
>> An error of myself. A "better" sample in the same idea of what I suggested
>
>You should obviously read:
> An error of mine. A "better" sample in the same idea as what I suggested
>
>
>Sorry for my Frenglish from time to time...
Don't apologise! Votre Anglais est bien mieux que mon Français!
I have tested the following on a "spare" Linux box, and it seems to
have the desired effect. In fact, I think it is pretty much the same
as the example I posted originally!
auth everyone {
hosts: "*"
auth: "ckpasswd"
default: <LOCAL>
}
access not-authenticated {
users: "<LOCAL>*"
read: "*"
post: "!*"
}
access authenticated {
users: "*, !<LOCAL>*"
newsgroups: "*"
}
This does the following:
1. If a user connects without any authentication, they get assigned
the default name of <LOCAL>.
2. This then fails to match on "access authenticated" but matches on
"access not-authenticated" and gives them read-only access. Attempting
to post generates an "authentication required" error.
3. If the user connects and attempts to authenticate but fails, then
they also get the assigned <LOCAL>, and achieve read-only access in
the same way.
4. If the user authenticates successfully, then are assigned a name
based on the username provided in AUTHINFO.
5. Since the name is not <LOCAL>, this matches on "access
authenticated" and allows full read and post access.
I think :-)
It seems to work anyway :-)
Thanks to everyone for your input!
Now I just have to get pam_ldap working :-(
Tim.
--
Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 10 Apr 2008 17:27
Date: Thu, 10 Apr 2008 17:27
40 lines
2685 bytes
2685 bytes
Hi Tim, >> Sorry for my Frenglish from time to time... > > Don't apologise! Votre Anglais est bien mieux que mon Français! Merci ! J'essaie en tout cas de faire de mon mieux. [Thanks! Anyway, I try to do my best.] > I have tested the following on a "spare" Linux box, and it seems to > have the desired effect. In fact, I think it is pretty much the same > as the example I posted originally! Very well then. It does exactly what you describe. > Now I just have to get pam_ldap working :-( Just in case it might help you, I have in /etc/pam_ldap.conf: base dc=ecp,dc=fr uri ldap://auth.ldap.ecp.fr ldap://auth1.ldap.ecp.fr ldap://auth2.ldap.ecp.fr ldap_version 3 binddn cn=pam_ldap,ou=applications,dc=ecp,dc=fr bindpw the_associated_password bind_timelimit 5 pam_login_attribute supannAliasLogin pam_password cryptssl start_tls tls_checkpeer no tls_cacertfile /etc/ssl/certs/ldap_roots.pem -- Julien ÉLIE « -- Du potage : c'est tout ce que le cuisinier a pu faire ! -- Ce blocus devient très horripilant ! -- Blocus, c'est ton cuisinier ? » (Astérix)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Fri, 11 Apr 2008 01:12
Date: Fri, 11 Apr 2008 01:12
44 lines
2659 bytes
2659 bytes
In article <ftl0u5$5ni$1@news.trigofacile.com>, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > >In fact, I also use > key: "users" >and > key: "users-ssl" >in the corresponding blocks so it works. But the sample I pasted >here does not work (I removed too many parameters, trying to be >more straightforward, and finally I was wrong). Yeah...I think you can probably achieve the same result without needing to use key:, but if it works then whatever. >> (We really need to add more-powerful parameters for approval and >> newnews so that access: is not needed so often. It would be nice >> to have "allow_approval: <wildmat>" instead of a global yes/no >> setting anyway.) > >"allow_newnews: <wildmat>" too? And "allow_local", "allow_ihave" >with wildmats? Oh interesting. I hadn't thought about that, but actually it would be really nice to have at least some of those (depending on how difficult it is to code -- I don't remember how the ihave support in nnrpd is implemented, but I can imagine it might be difficult to add allow_ihave). Incidentally, if you're actually thinking of doing this, we may want to reconsider the names. We have read: and post: rather than allow_read: and allow_post:, after all. I think I like newnews:, ihave:, and approve:, but I'm not sure what to do with "access: L" since the concept isn't easily summarized in a single word. Maybe localpost: or something? -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Fri, 11 Apr 2008 01:17
Date: Fri, 11 Apr 2008 01:17
42 lines
2329 bytes
2329 bytes
In article <ftl26j$7bg$1@news.trigofacile.com>,
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>
>With the example Tim gave:
>
>auth everyone {
> hosts: "*"
> auth: "ckpasswd"
> default: <LOCAL>
>}
>
>the <LOCAL> identity is assigned when authentication is unsuccessful
>because there is a default: parameter.
>If not present, nnrpd goes on asking for authentication.
Have you confirmed that behavior? I just tested with a block like this:
auth "internalnet" {
hosts: "localhost"
res: "ident -t"
auth: "ckpasswd"
auth: "ckpasswd -f /usr/local/news/db/newsusers"
#default: "<FAIL>"
default-domain: "litech.org"
}
and if I authenticate unsuccessfully there is absolutely no
opportunity to access news or authenticate again (if I uncomment
the default line, I get the same behavior):
200 news.litech.org InterNetNews NNRP server INN 2.5.0 (20080204 prerelease) ready (posting ok).
authinfo user sjdfla
381 PASS required
authinfo pass iesflajf
502 Authentication error
Connection closed by foreign host.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Fri, 11 Apr 2008 06:07
Date: Fri, 11 Apr 2008 06:07
52 lines
3145 bytes
3145 bytes
Hi Jeffrey,
>>With the example Tim gave:
>>
>>auth everyone {
>> hosts: "*"
>> auth: "ckpasswd"
>> default: <LOCAL>
>>}
>>
>>the <LOCAL> identity is assigned when authentication is unsuccessful
>>because there is a default: parameter.
>>If not present, nnrpd goes on asking for authentication.
>
> Have you confirmed that behavior? I just tested with a block like this:
Oh, I realize we were not speaking about the same thing.
I was in fact testing Tim's behaviour:
"It sort of implied that if the auth failed, it would still match on
the block but set the user to default:, in my case <LOCAL>. "
And I interpreted the "auth failed" as though there were no attempts
to authenticate (that is to say auth: is not called and the auth block
sets the user to <LOCAL>). And similarly "auth unsuccessful" as though
the auth block did not use the result of auth:.
I missed the "if authentication is *attempted* and is unsuccessful" of
your part when you answered. Sorry.
> and if I authenticate unsuccessfully there is absolutely no
> opportunity to access news or authenticate again (if I uncomment
> the default line, I get the same behavior):
>
> 200 news.litech.org InterNetNews NNRP server INN 2.5.0 (20080204 prerelease) ready (posting ok).
> authinfo user sjdfla
> 381 PASS required
> authinfo pass iesflajf
> 502 Authentication error
>
> Connection closed by foreign host.
Yes, I totally agree with you. When there is an attempt to authenticate
and if it fails, the connection is closed.
--
Julien ÉLIE
« Le travail est l'opium du peuple et
je ne veux pas mourir drogué. » (Boris Vian)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Fri, 11 Apr 2008 21:30
Date: Fri, 11 Apr 2008 21:30
12 lines
1866 bytes
1866 bytes
On Thu, 10 Apr 2008 17:02:47 +0100, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: >3. If the user connects and attempts to authenticate but fails, then >they also get the assigned <LOCAL>, and achieve read-only access in >the same way. Actually I was wrong here. As others have said, if the user attempts to authenticate but fails, the connection is closed. They only get assigned <LOCAL> if they do not attempt to authenticate. -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Fri, 11 Apr 2008 21:37
Date: Fri, 11 Apr 2008 21:37
20 lines
1961 bytes
1961 bytes
On Thu, 10 Apr 2008 19:27:22 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Just in case it might help you, I have in /etc/pam_ldap.conf: > <snip ldap.conf dump> Thanks for this! I think I've got this configured right, but I don't manage the LDAP server and I think there is a problem that end because it is rejecting my binddn request, even though it is being sent correctly (as shown by a tcpdump of the ldap conversation). Anyway, that's off-topic for this group I guess :-) Thanks Julien, and also everyone else for your help! Tim. -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Mon, 14 Apr 2008 19:56
Date: Mon, 14 Apr 2008 19:56
42 lines
2551 bytes
2551 bytes
On Thu, 10 Apr 2008 19:27:22 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> Now I just have to get pam_ldap working :-( > >Just in case it might help you, I have in /etc/pam_ldap.conf: I'm struggling to make this work :-( Could I ask what you've got in your /etc/pam.d/nnrpd file? I've just got #%PAM-1.0 auth required pam_ldap.so When the NNTP user tries to authenticate, it asks the LDAP server about the user, and then attempts a Bind operation using the username/password supplied in AUTHINFO. The LDAP server then says "success" but pam says: pam_acct_mgmt failed: Authentication failure Even though the LDAP server seems to be saying the user is valid. If I enter a wrong password for the username, I get a different message from pam: pam_authenticate failed: Authentication failure so it seems to know the difference between the right password and the wrong password! If I enter a wrong username, I get: pam_authenticate failed: User not known to the underlying authentication module which is the only one that makes any sense! I'm stuck :-( -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Mon, 14 Apr 2008 20:17
Date: Mon, 14 Apr 2008 20:17
44 lines
2825 bytes
2825 bytes
Hi Tim, > Could I ask what you've got in your /etc/pam.d/nnrpd file? > > I've just got > > #%PAM-1.0 > auth required pam_ldap.so guepard:/home/eliej# cat /etc/pam.d/nnrpd # Seul root peut se logguer si /etc/nologin existe. # (Only root can login if /etc/nologin exists.) auth requisite pam_nologin.so auth required pam_ldap.so account required pam_ldap.so > When the NNTP user tries to authenticate, it asks the LDAP server > about the user, and then attempts a Bind operation using the > username/password supplied in AUTHINFO. The LDAP server then says > "success" but pam says: > > pam_acct_mgmt failed: Authentication failure It sounds like "account". > Even though the LDAP server seems to be saying the user is valid. > > If I enter a wrong password for the username, I get a different > message from pam: > > pam_authenticate failed: Authentication failure You can indeed test it with ckpasswd: 14/04 22:12 news@guepard ~% ckpasswd -u eliej -p badpassword ckpasswd: pam_authenticate failed: Authentication failure -- Julien ÉLIE « La grève au fourneau, le glaive au fourreau. » (Astérix)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Tue, 15 Apr 2008 17:31
Date: Tue, 15 Apr 2008 17:31
27 lines
2411 bytes
2411 bytes
On Mon, 14 Apr 2008 22:17:11 +0200, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Tim, > >> Could I ask what you've got in your /etc/pam.d/nnrpd file? ># Seul root peut se logguer si /etc/nologin existe. ># (Only root can login if /etc/nologin exists.) >auth requisite pam_nologin.so >auth required pam_ldap.so >account required pam_ldap.so Thanks again, Julien! It works if I add "account required pam_ldap.so" but I do not understand why! According to to the man page for ldap.conf, "account" has nothing to do with authentication. Anyway, it's now working :-) I'm now wondering if I even need "auth required pam_ldap.so". Incidentally, I see that INN supports SASL for secure authentication, but the documentation on this feature is very scarce. Most news clients now seem to support something called "Secure Password Authentication" - is this the same as SASL? -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Tue, 15 Apr 2008 23:51
Date: Tue, 15 Apr 2008 23:51
16 lines
1654 bytes
1654 bytes
In article <0ro904d1h7p8noeo3m01pq5p4blppi1v0t@4ax.com>, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >Most news clients now seem to support something called "Secure >Password Authentication" - is this the same as SASL? I seriously doubt it. It depends on the newsreader, but I expect that refers to standard plaintext authentication over a TLS-encrypted connection (probably to port 563 instead of 119). -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Wed, 16 Apr 2008 12:15
Date: Wed, 16 Apr 2008 12:15
25 lines
2260 bytes
2260 bytes
On Tue, 15 Apr 2008, Jeffrey M. Vinocur wrote: > In article <0ro904d1h7p8noeo3m01pq5p4blppi1v0t@4ax.com>, > Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > > > >Most news clients now seem to support something called "Secure > >Password Authentication" - is this the same as SASL? > > I seriously doubt it. > > It depends on the newsreader, but I expect that refers to > standard plaintext authentication over a TLS-encrypted > connection (probably to port 563 instead of 119). Yes, after a bit more Googling, I think you are right - this just refers to NNTP over SSL/TLS. I am using the standard Fedora binaries - how can I tell if they have compiled with SSL support? Nothing is listening on port 563, but this could just be because I have not configured or enabled SASL? (The documentation does not explain how to enable this feature!) Tim.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Wed, 16 Apr 2008 14:15
Date: Wed, 16 Apr 2008 14:15
23 lines
2489 bytes
2489 bytes
Hi Tim,
> I am using the standard Fedora binaries - how can I tell if they have
> compiled with SSL support? Nothing is listening on port 563, but this
> could just be because I have not configured or enabled SASL? (The
> documentation does not explain how to enable this feature!)
http://www.eyrie.org/~eagle/software/inn/docs/install.html
--with-sasl SASL 2.x or higher
See also --with-openssl.
You have to start "nnrpd -S" on port 563. You will then find whether it has
SSL support.
su news -c '/usr/local/news/bin/nnrpd -D -c /usr/local/news/etc/readers-ssl.conf -p 563 -S'
--
Julien ÉLIE
« Dans un mois, dans un an, comment souffrirons-nous ? » (Jean Racine)
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Thu, 17 Apr 2008 00:19
Date: Thu, 17 Apr 2008 00:19
27 lines
2034 bytes
2034 bytes
In article <Pine.LNX.4.44.0804161311410.28096-100000@menace.crumblenet.co.uk>, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >I am using the standard Fedora binaries - how can I tell if they have >compiled with SSL support? Probably the easiest way is to telnet to port 119 of your news server, send MODE READER, and then send STARTTLS and see if you get an error or a successful reply. >Nothing is listening on port 563, You can run nnrpd in daemon mode (as Julien suggests downthread), or alternatively you can use inetd / xinetd to spawn nnrpd. I prefer this option, honestly. It's always seemed a little more robust to me. >could just be because I have not configured or enabled SASL? Note that SASL is a very different thing than SSL (aka TLS). -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Mon, 21 Apr 2008 17:48
Date: Mon, 21 Apr 2008 17:48
26 lines
2295 bytes
2295 bytes
On Thu, 17 Apr 2008 00:19:36 +0000 (UTC), jeff@litech.org (Jeffrey M. Vinocur) wrote: >Note that SASL is a very different thing than SSL (aka TLS). Thanks Jeff. Secure Password Authentication (SPA) is not the same thing as NNTP over SSL - these are two separate options in the newsreader. So, I now have two questions: 1. Where do you configure SSL in INN? There is only sasl.conf, which presumably is for SASL and not SSL? They are "very different" right? 2. to go back to the original question, what is the "Secure Password Authentication" option in some newsreaders? Is this SASL? Or is this something different again that INN does not support? The SPA option is present in Outlook Express, Forte Agent, Netscape Messenger, and probably other clients as well, and is entirely separate from the SSL/TLS option, which changes the default port from 119 to 563. TIA! -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Tue, 22 Apr 2008 02:35
Date: Tue, 22 Apr 2008 02:35
33 lines
2339 bytes
2339 bytes
In article <hrjp04hbbvc2oa27s0od57oo3v79vahvrq@4ax.com>, Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >1. Where do you configure SSL in INN? There is only sasl.conf, which >presumably is for SASL and not SSL? They are "very different" right? Uh oh, you caught me. You're right, in current releases of INN, it actually is sasl.conf that you need to set up SSL. (This will likely change in the future, when we implement actual SASL support.) For those attempting to follow along at home, RFC 4642 describes TLS (SSL) support in NNTP, and is implemented in INN with sasl.conf for historical reasons. RFC 4643 describes SASL support in NNTP, and is not yet implemented in INN. >2. to go back to the original question, what is the "Secure Password >Authentication" option in some newsreaders? Is this SASL? Or is this >something different again that INN does not support? Hrrrrmmmm... Okay, looking around a bit, it seems that this is some proprietary Microsoft thing that is not based on a proper standard (and not supported in INN). -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Russ Allbery
Date: Tue, 22 Apr 2008 02:42
Date: Tue, 22 Apr 2008 02:42
20 lines
1967 bytes
1967 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:
> Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote:
>> 2. to go back to the original question, what is the "Secure Password
>> Authentication" option in some newsreaders? Is this SASL? Or is this
>> something different again that INN does not support?
> Hrrrrmmmm...
> Okay, looking around a bit, it seems that this is some proprietary
> Microsoft thing that is not based on a proper standard (and not
> supported in INN).
Is it doing NTLM or something?
--
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: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Jeffrey M. Vinocur
Date: Tue, 22 Apr 2008 10:50
Date: Tue, 22 Apr 2008 10:50
20 lines
1816 bytes
1816 bytes
In article <87bq426265.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >jeff@litech.org (Jeffrey M. Vinocur) writes: >> Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: > >>> 2. to go back to the original question, what is the "Secure Password >>> Authentication" option in some newsreaders? > >> Okay, looking around a bit, it seems that this is some proprietary >> Microsoft thing that is not based on a proper standard (and not >> supported in INN). > >Is it doing NTLM or something? Yeah, NTLMv1 according to some random webpage I found. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Ken Murchison
Date: Tue, 22 Apr 2008 12:08
Date: Tue, 22 Apr 2008 12:08
15 lines
1860 bytes
1860 bytes
Jeffrey M. Vinocur wrote: > In article <87bq426265.fsf@windlord.stanford.edu>, > Russ Allbery <rra@stanford.edu> wrote: >> jeff@litech.org (Jeffrey M. Vinocur) writes: >>> Tim Fardell <tim.fardell.all-your-clothes@virgin.net> wrote: >>>> 2. to go back to the original question, what is the "Secure Password >>>> Authentication" option in some newsreaders? >>> Okay, looking around a bit, it seems that this is some proprietary >>> Microsoft thing that is not based on a proper standard (and not >>> supported in INN). >> Is it doing NTLM or something? > > Yeah, NTLMv1 according to some random webpage I found. Cyrus SASL (used by INN) has a plugin which will do NTLMv1 authentication.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Russ Allbery
Date: Tue, 22 Apr 2008 18:52
Date: Tue, 22 Apr 2008 18:52
20 lines
1950 bytes
1950 bytes
Ken Murchison <murch@andrew.cmu.edu> writes:
> Jeffrey M. Vinocur wrote:
>> Russ Allbery <rra@stanford.edu> wrote:
>>> jeff@litech.org (Jeffrey M. Vinocur) writes:
>>> Is it doing NTLM or something?
>> Yeah, NTLMv1 according to some random webpage I found.
> Cyrus SASL (used by INN) has a plugin which will do NTLMv1
> authentication.
I wonder what protocol it's using to wrap the NTLM negotiation. If they
were really smart, they tied into AUTHINFO GENERIC....
--
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: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Tim Fardell
Date: Wed, 23 Apr 2008 15:59
Date: Wed, 23 Apr 2008 15:59
12 lines
1796 bytes
1796 bytes
On Tue, 22 Apr 2008, Russ Allbery wrote: > I wonder what protocol it's using to wrap the NTLM negotiation. If they > were really smart, they tied into AUTHINFO GENERIC.... Well, Agent 2.0 sends "AUTHINFO GENERIC" when I enable SPA, so presumably they were really smart - a first for Microsoft?? ;-) -- Please remove all-your-clothes before replying.
Re: INN 2.4.3 Question on Authentication (AUTHINFO)
Author: Julien ÉLIE
Date: Thu, 01 Jan 2009 15:00
Date: Thu, 01 Jan 2009 15:00
60 lines
4068 bytes
4068 bytes
Hi Russ, >>>> Is it doing NTLM or something? > >>> Yeah, NTLMv1 according to some random webpage I found. > >> Cyrus SASL (used by INN) has a plugin which will do NTLMv1 >> authentication. > > I wonder what protocol it's using to wrap the NTLM negotiation. If they > were really smart, they tied into AUTHINFO GENERIC.... It is what they are doing! But not in an RFC 2980 compliant way... I have just tried with Windows Mail: Microsoft Internet Messaging API Resources 6.0.6001.18049 (vistasp1_gdr.080409-1644) NNTP Log started at 12/31/2008 19:23:02 NNTP: 19:23:02 [db] Connexion à 'news.trigofacile.com' sur le port 563. NNTP: 19:23:02 [db] Négociation d'une connexion sécurisée à 'Microsoft Unified Security Protocol Provider'. NNTP: 19:23:03 [rx] 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20081224 prerelease) ready (no posting) NNTP: 19:23:03 [tx] MODE READER NNTP: 19:23:03 [rx] 200 news.trigofacile.com InterNetNews NNRP server INN 2.5.0 (20081224 prerelease) ready (no posting) NNTP: 19:23:03 [tx] AUTHINFO GENERIC NNTP: 19:23:03 [rx] 501 Syntax is: AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...] NNTP: 19:23:03 [tx] AUTHINFO TRANSACT TWINKIE NNTP: 19:23:03 [rx] 501 Bad AUTHINFO param NNTP: 19:23:03 [db] Connexion à 'news.trigofacile.com' fermée. Hmm... Pretty bad... AUTHINFO GENERIC alone is not RFC 2980 compliant. Has anyone heard of AUTHINFO TRANSACT TWINKIE? I wonder how it is supposed to work. Let's see on msnews.microsoft.com! Microsoft Internet Messaging API Resources 6.0.6001.18049 (vistasp1_gdr.080409-1644) NNTP Log started at 01/01/2009 15:53:12 NNTP: 15:53:12 [db] Connexion à 'msnews.microsoft.com' sur le port 119. NNTP: 15:53:13 [rx] 200 NNTP Service 6.0.3790.1830 Version: 6.0.3790.1830 Posting Allowed NNTP: 15:53:13 [tx] MODE READER NNTP: 15:53:13 [rx] 200 NNTP Service 6.0.3790.1830 Version: 6.0.3790.1830 Posting Allowed NNTP: 15:53:13 [tx] AUTHINFO GENERIC NNTP: 15:53:13 [rx] 281 Packages Follow NNTP: 15:53:13 [rx] NTLM NNTP: 15:53:13 [rx] . NNTP: 15:53:13 [tx] AUTHINFO GENERIC NTLM NNTP: 15:53:13 [rx] 502 Permission denied NNTP: 15:53:13 [db] Connexion à 'msnews.microsoft.com' fermée. They send NTLM as an answer to AUTHINFO GENERIC! -- Julien ÉLIE « Je ne cherche pas à connaître les réponses, je cherche à comprendre les questions. »
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