Re: [CentOS] Re: INN Python support in Centos 5.1

2008-06-04 Thread Ralph Angenendt
David Hláčik wrote:
 This is so far  i have in readers.conf :
 
 auth pdg {
 hosts: *
 python-auth: /opt/pdg/nnrpd_auth.py

readers.conf(5) tells me that it's python_auth.

Cheers,

Ralph


pgp9bsInMV90W.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: INN Python support in Centos 5.1

2008-06-04 Thread David Hláčik
Hello, this is what i am getting when i am trying to authenticate from news
client :

Jun  4 11:49:01 sx2 nnrpd[8251]: python interpreter initialized OK
Jun  4 11:49:01 sx2 nnrpd[8251]: python auth object is not defined

This is what i have in readers.conf :

auth localhost {
#hosts: localhost, 127.0.0.1, stdin
#hosts: 10.123.*
#default: localhost
python_auth: /opt/pdg/nnrpd_auth.py
}

# Grant that specific identity access to read and post to any newsgroup
# and allow it to post articles with Approved: headers to moderated
# groups.

access localhost {
users: localhost
newsgroups: *
access: RPA
}

Thanks in advance!


On Wed, Jun 4, 2008 at 10:36 AM, Ralph Angenendt
[EMAIL PROTECTED][EMAIL PROTECTED]
wrote:

 David Hláčik wrote:
  This is so far  i have in readers.conf :
 
  auth pdg {
  hosts: *
  python-auth: /opt/pdg/nnrpd_auth.py

 readers.conf(5) tells me that it's python_auth.

 Cheers,

 Ralph

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Re: INN Python support in Centos 5.1

2008-06-04 Thread Ralph Angenendt
David Hláčik wrote:
 Jun  4 11:49:01 sx2 nnrpd[8251]: python interpreter initialized OK
 Jun  4 11:49:01 sx2 nnrpd[8251]: python auth object is not defined
 
 This is what i have in readers.conf :
 
 auth localhost {
 #hosts: localhost, 127.0.0.1, stdin
 #hosts: 10.123.*
 #default: localhost
 python_auth: /opt/pdg/nnrpd_auth.py
 }

Sorry, I have never used that for inn before.

Maybe the file hook-python in the INN docs (if that is in the package)
helps a bit? It describes everything needed for authentication with
python.

One thing you could try first is moving nnrpd_auth.py to the filter path
(which is defined in inn.conf, search for pathfilter).

Cheers,

Ralph


pgpB04NZn7eXB.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Re: INN Python support in Centos 5.1

2008-06-03 Thread David Hláčik
This is so far  i have in readers.conf :

auth pdg {
hosts: *
python-auth: /opt/pdg/nnrpd_auth.py
}

access pdg {
newsgroups: hlacik.*
access: RPA
}

And this is what i am getting from log :

 syntax error in /etc/news/readers.conf(140), Unexpected token:
/opt/pdg/nnrpd_auth.py

On Tue, Jun 3, 2008 at 11:33 PM, David Hláčik [EMAIL PROTECTED] wrote:

 Hello . i want to ask several questions :

 1) Is INN on Centos5.1 compiled with python auth hooks support?
 2) If i want my messages on news server to keep forever (history) , should
 i change expire.ctl?
What i need to set

 3) Is there some configuration which i need to set to be able to use python
 auth hooks? Or can i simple proceed with adding them to readers.conf ( I
 allready tested my nnrpd_auth.py with nnrpd.py, which is working (nnrpd
 module is imported ).

 Thanks in advance!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos