FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 06-03-2008, 09:33 PM
"David Hláčik"
 
Default INN Python support in Centos 5.1

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
 
Old 06-03-2008, 10:15 PM
"David Hláčik"
 
Default INN Python support in Centos 5.1

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 <david@hlacik.eu> 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
 
Old 06-04-2008, 08:36 AM
Ralph Angenendt
 
Default INN Python support in Centos 5.1

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
 
Old 06-04-2008, 08:41 AM
Ralph Angenendt
 
Default INN Python support in Centos 5.1

David Hláčik wrote:
> Hello . i want to ask several questions :
>
> 1) Is INN on Centos5.1 compiled with python auth hooks support?

Look in the spec file in the src.rpm. No idea. But ldd /path/to/innd
should also be able to tell you if it is linked against python:

libpython2.4.so.1.0 => /usr/lib/libpython2.4.so.1.0 (0xb7d4d000)

(That's on a debian box, so it might differ on yours).

> 2) If i want my messages on news server to keep forever (history) , should i
> change expire.ctl?
> What i need to set

hlacik.*:A:never:never:never

(last match is used, so if you have some other matching entry *below*
that, this will not work. Just put it as the last line).

Cheers,

Ralph
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 09:25 AM
"David Hláčik"
 
Default INN Python support in Centos 5.1

On Wed, Jun 4, 2008 at 10:41 AM, Ralph Angenendt <ra+centos@br-online.de> wrote:

David Hláčik wrote:

> Hello . i want to ask several questions :

>

> 1) Is INN on Centos5.1 compiled with python auth hooks support?



Look in the spec file in the src.rpm. No idea. But ldd /path/to/innd

should also be able to tell you if it is linked against python:



* * * *libpython2.4.so.1.0 => /usr/lib/libpython2.4.so.1.0 (0xb7d4d000)



(That's on a debian box, so it might differ on yours).


Well actually it is not build --with-python (as found in srpms).

So i tried to compile it by myself from source rpm for centos5.1
First i tried compilation on 32bit Centos, result without errors, rpm were builded. Then i edited spec file added --with-python line, again compilation done OK.


But if i am trying same scenario on x86_64 :

i got during building phase error :

Processing files: inn-devel-2.4.3-12
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Requires: inn = 2.4.3
Processing files: inews-2.4.3-12
Provides: config(inews) = 2.4.3-12
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(inews) = 2.4.3-12 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) rtld(GNU_HASH)



RPM build errors:
*** File not found by glob: /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyc
*** File not found by glob: /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyo
[root@sx2 SPECS]#


which is not nice,

When i build INN from source downloaded on official site, i have no problem, but i want to have rpm

Thanks for help!

D.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 09:29 AM
Ralph Angenendt
 
Default INN Python support in Centos 5.1

David Hláčik wrote:
> RPM build errors:
> File not found by glob:
> /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyc
> File not found by glob:
> /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyo
> [root@sx2 SPECS]#

Take out *.pyc and *.pyo from the files section, these should be
automagically created once the corresponding .py gets called.

Cheers,

Ralph
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 09:50 AM
Johnny Hughes
 
Default INN Python support in Centos 5.1

Ralph Angenendt wrote:

David Hlc(ik wrote:

RPM build errors:
File not found by glob:
/var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyc
File not found by glob:
/var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyo
[root@sx2 SPECS]#


Take out *.pyc and *.pyo from the files section, these should be
automagically created once the corresponding .py gets called.


Are the files maybe in lib64 instead of lib ???

Also, did you compile in a 64bit only chroot or on a machine with mixed
32bit/64bit packages ... a mixed environment can cause linking issues.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 06-04-2008, 09:52 AM
"David Hláčik"
 
Default INN Python support in Centos 5.1

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 <ra+centos@br-online.de> 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
 
Old 06-04-2008, 10:38 AM
"David Hláčik"
 
Default INN Python support in Centos 5.1

Yes of course, thanks!, that worked.

D.

On Wed, Jun 4, 2008 at 11:29 AM, Ralph Angenendt <ra+centos@br-online.de> wrote:

David Hláčik wrote:

> RPM build errors:

> * * File not found by glob:

> /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyc

> * * File not found by glob:

> /var/tmp/inn-2.4.3-12-I31464/usr/lib/news/bin/filter/*.pyo

> [root@sx2 SPECS]#



Take out *.pyc and *.pyo from the files section, these should be

automagically created once the corresponding .py gets called.



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
 
Old 06-04-2008, 10:46 AM
Ralph Angenendt
 
Default INN Python support in Centos 5.1

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 12:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org