🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Terry Davis Tue, 18 Sep 2001 23:56
pamckpasswd/ldap - help with readers.conf
#54264
Author: Terry Davis
Date: Tue, 18 Sep 2001 23:56
22 lines
1219 bytes
auth "birddog.com" {
        hosts: "birddog.com, *.birddog.com"
        auth: "pamckpasswd"
}
 
 
access "birddog.com" {
        users: "*@birddog.com"
        newsgroups: "*"
        access: "RP"
}

Here is my nnrpd file in /etc/pam.d:

auth            requisite       pam_nologin.so
auth            required        pam_unix.so

It is simply giving me authentication errors.

Thank you for any help here.
Terry
Re: pamckpasswd/ldap - help with readers.conf
#54257
Author: Terry Davis
Date: Wed, 19 Sep 2001 00:11
30 lines
1666 bytes
Hello, a part of my post was removed by me accidentally,

Below you see my readers.conf file.
I am trying to use pamckpasswd to auth my news users against pam.  
First I am simply trying to get it to auth agains shadow file then 
will eventually move to ldap but I am having trouble getting pam/shadow 
to work.

>auth "birddog.com" {
>        hosts: "birddog.com, *.birddog.com"
>        auth: "pamckpasswd"
>}
> 
> 
>access "birddog.com" {
>        users: "*@birddog.com"
>        newsgroups: "*"
>        access: "RP"
>}
>
>Here is my nnrpd file in /etc/pam.d:
>
>auth            requisite       pam_nologin.so
>auth            required        pam_unix.so
>
>It is simply giving me authentication errors.
>
>Thank you for any help here.
>Terry
Re: pamckpasswd/ldap - help with readers.conf
#54261
Author: Jeffrey M. Vinocur
Date: Wed, 19 Sep 2001 02:25
22 lines
1533 bytes
In article <slrn9qfomf.imc.td@scooby.egoindustries.org>,
Terry Davis <td@scooby.egoindustries.org> wrote:
>
>>auth "birddog.com" {
>>        hosts: "birddog.com, *.birddog.com"
>>        auth: "pamckpasswd"
>>}
>> 
>>access "birddog.com" {
>>        users: "*@birddog.com"
>>        newsgroups: "*"
>>        access: "RP"
>>}

If you want to match on *@birddog.com, you need to have a 
"default-domain: birddog.com" in your auth block.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: pamckpasswd/ldap - help with readers.conf
#54266
Author: Terry Davis
Date: Wed, 19 Sep 2001 04:02
67 lines
2955 bytes
Thanks for the response.  This still did not help me.
Here are the errors I am seeing:

Sep 18 22:49:45 atlas nnrpd[24916]: SERVER perl filtering enabled
Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com connect
Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com auth_err ckpasswd:
user td password doesn't match.
Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com auth_err Failed:
Authentication failure.
Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com bad_auth
Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com times user 0.010
system 0.000 elapsed 0.188


Here is my revised readers.conf:

auth "birddog.com" {
        hosts: "birddog.com, *.birddog.com"
        default-domain: "birddog.com"
        auth: "pamckpasswd"
}


access "birddog.com" {
        users: "*@birddog.com"
        newsgroups: "*"
        access: "RP"
}

Again, here is my nnrpd for pam:
auth            requisite       pam_nologin.so
auth            required        pam_unix.so

This is being attempted on redhat 7.1 with inn 2.3.1

Thank you all!
Terry




"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:9o8vmj$fgi$4@marduk.litech.org...
> In article <slrn9qfomf.imc.td@scooby.egoindustries.org>,
> Terry Davis <td@scooby.egoindustries.org> wrote:
> >
> >>auth "birddog.com" {
> >>        hosts: "birddog.com, *.birddog.com"
> >>        auth: "pamckpasswd"
> >>}
> >>
> >>access "birddog.com" {
> >>        users: "*@birddog.com"
> >>        newsgroups: "*"
> >>        access: "RP"
> >>}
>
> If you want to match on *@birddog.com, you need to have a
> "default-domain: birddog.com" in your auth block.
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org


Re: pamckpasswd/ldap - help with readers.conf
#54267
Author: Jeffrey M. Vinocur
Date: Wed, 19 Sep 2001 04:10
22 lines
1713 bytes
In article <KNUp7.9082$kf1.4641875@news1.rdc1.ne.home.com>,
Terry Davis <tdavis@birddog.com> wrote:
>
>Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com auth_err ckpasswd:
>user td password doesn't match.
>
>auth "birddog.com" {
>        hosts: "birddog.com, *.birddog.com"
>        default-domain: "birddog.com"
>        auth: "pamckpasswd"
>}

Something's not right -- that error message shouldn't be saying
ckpasswd.  Are you sure you saved readers.conf with pamckpasswd
and there aren't any other blocks uncommented?



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: pamckpasswd/ldap - help with readers.conf
#54268
Author: Terry Davis
Date: Wed, 19 Sep 2001 04:20
48 lines
2478 bytes
I am sorry, I did not include that line in my config.
Try this:

auth "birddog.com" {
        hosts: "birddog.com, *.birddog.com"
        default-domain: "birddog.com"
        auth: "ckpasswd -s"
        auth: "pamckpasswd"
}
access "birddog.com" {
        users: "*@birddog.com"
        newsgroups: "*"
        access: "RP"
}

I had the ckpasswd in there for testing but it looks pretty worthless to me.
:)

Thanks again!



"Jeffrey M. Vinocur" <jeff@litech.org> wrote in message
news:9o95qt$fgi$11@marduk.litech.org...
> In article <KNUp7.9082$kf1.4641875@news1.rdc1.ne.home.com>,
> Terry Davis <tdavis@birddog.com> wrote:
> >
> >Sep 18 22:49:45 atlas nnrpd[24916]: bdsi41.birddog.com auth_err ckpasswd:
> >user td password doesn't match.
> >
> >auth "birddog.com" {
> >        hosts: "birddog.com, *.birddog.com"
> >        default-domain: "birddog.com"
> >        auth: "pamckpasswd"
> >}
>
> Something's not right -- that error message shouldn't be saying
> ckpasswd.  Are you sure you saved readers.conf with pamckpasswd
> and there aren't any other blocks uncommented?
>
>
>
> --
> Jeffrey M. Vinocur
> jeff@litech.org


Re: pamckpasswd/ldap - help with readers.conf
#54281
Author: Graeme Mathieson
Date: Wed, 19 Sep 2001 13:42
20 lines
1838 bytes
Hrm.  Is pamckpasswd suid root?

Try running pamckpasswd from a shell:

graeme@homer:/usr/lib/news/bin/auth/passwd$ sudo -u news ./pamckpasswd
ClientAuthname: td
ClientPassword: <your password>
^D

It should return:

User: td

If pamckpasswd itself is working correctly.  If it's not working, let
me know and I'll mail you a version with more trace in it.

-- 
graeme+sig@mathie.cx                          http://www.mathie.cx/~graeme/
Re: pamckpasswd/ldap - help with readers.conf
#54299
Author: Terry Davis
Date: Wed, 19 Sep 2001 22:39
36 lines
1974 bytes
I am not sure but this message ight get duplicated because I tried using a 
stupid news client and wasnt sure if the post worked (it has been 10 mins 
and still dont see it)
Anyways, you are correct.  If I type what you stated below, I get no 
feedback and pamckpasswd just sits there.  I am assuming something is not 
right there.

The perms are news:news 555.

Thank you!

Graeme Mathieson wrote:

> 
> Hrm.  Is pamckpasswd suid root?
> 
> Try running pamckpasswd from a shell:
> 
> graeme@homer:/usr/lib/news/bin/auth/passwd$ sudo -u news ./pamckpasswd
> ClientAuthname: td
> ClientPassword: <your password>
> ^D
> 
> It should return:
> 
> User: td
> 
> If pamckpasswd itself is working correctly.  If it's not working, let
> me know and I'll mail you a version with more trace in it.
> 

-- 
Terry Davis
Systems Administrator
BirdDog Solutions
Re: pamckpasswd/ldap - help with readers.conf
#54300
Author: Terry Davis
Date: Wed, 19 Sep 2001 22:48
39 lines
2009 bytes
Ok, i am a moron......
after reading your post twice I figured out that 
ClientAuthname and ClientPassword  not going to be prompted for but have to 
be typed in.  heh

I typed those in as instructed and still got authentication failure.....I 
have tried different things in my nnrpd file but no luck. 

Ya, some debug info would be cool

Thank you!!


Graeme Mathieson wrote:

> 
> Hrm.  Is pamckpasswd suid root?
> 
> Try running pamckpasswd from a shell:
> 
> graeme@homer:/usr/lib/news/bin/auth/passwd$ sudo -u news ./pamckpasswd
> ClientAuthname: td
> ClientPassword: <your password>
> ^D
> 
> It should return:
> 
> User: td
> 
> If pamckpasswd itself is working correctly.  If it's not working, let
> me know and I'll mail you a version with more trace in it.
> 


-- 
Terry Davis
Systems Administrator
BirdDog Solutions
Re: pamckpasswd/ldap - help with readers.conf
#54302
Author: Terry Davis
Date: Wed, 19 Sep 2001 22:52
37 lines
1891 bytes
Excuse me for all the posts but if I run it as root it works fine.
I ran chmod +s pamckpasswd and now news can run it.

I get 'User:td' returned, does that mean that auth worked?

I at least know it is working.  Let me start working on inn auth now.   
Will post here with results.


Thanks for the patience.
Terry

Graeme Mathieson wrote:

> 
> Hrm.  Is pamckpasswd suid root?
> 
> Try running pamckpasswd from a shell:
> 
> graeme@homer:/usr/lib/news/bin/auth/passwd$ sudo -u news ./pamckpasswd
> ClientAuthname: td
> ClientPassword: <your password>
> ^D
> 
> It should return:
> 
> User: td
> 
> If pamckpasswd itself is working correctly.  If it's not working, let
> me know and I'll mail you a version with more trace in it.
> 

-- 
Terry Davis
Systems Administrator
BirdDog Solutions
Re: pamckpasswd/ldap - help with readers.conf
#54301
Author: Jeffrey M. Vinocur
Date: Thu, 20 Sep 2001 00:16
16 lines
1368 bytes
In article <389q7.1122$N_4.338492@news.uswest.net>,
Terry Davis  <tdavis@birddog.com> wrote:
>
>pamckpasswd 
>
>The perms are news:news 555.

chown root.news pamckpasswd
chmod 4554 pamckpasswd



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: pamckpasswd/ldap - help with readers.conf
#54307
Author: Terry Davis
Date: Thu, 20 Sep 2001 02:15
48 lines
2472 bytes
Inn is now authenticating to both the local shadow file and to my ldap.   :)

It has been a long day dealing with stupid Microsoft'isms (virus).

Thank you!


"Terry Davis" <tdavis@birddog.com> wrote in message
news:zj9q7.1150$N_4.343318@news.uswest.net...
> Excuse me for all the posts but if I run it as root it works fine.
> I ran chmod +s pamckpasswd and now news can run it.
>
> I get 'User:td' returned, does that mean that auth worked?
>
> I at least know it is working.  Let me start working on inn auth now.
> Will post here with results.
>
>
> Thanks for the patience.
> Terry
>
> Graeme Mathieson wrote:
>
> >
> > Hrm.  Is pamckpasswd suid root?
> >
> > Try running pamckpasswd from a shell:
> >
> > graeme@homer:/usr/lib/news/bin/auth/passwd$ sudo -u news ./pamckpasswd
> > ClientAuthname: td
> > ClientPassword: <your password>
> > ^D
> >
> > It should return:
> >
> > User: td
> >
> > If pamckpasswd itself is working correctly.  If it's not working, let
> > me know and I'll mail you a version with more trace in it.
> >
>
> --
> Terry Davis
> Systems Administrator
> BirdDog Solutions


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