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!
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 :
- Is INN on Centos5.1 compiled with python auth hooks support?
- If i want my messages on news server to keep forever (history) , should
i change expire.ctl? What i need to set
- 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!
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.dera%2Bcentos@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
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
David Hláčik wrote:
Hello . i want to ask several questions :
- 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).
- 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
On Wed, Jun 4, 2008 at 10:41 AM, Ralph Angenendt <ra+centos@br-online.dera%2Bcentos@br-online.de> wrote:
David Hláčik wrote:
Hello . i want to ask several questions :
- 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.
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
Ralph Angenendt wrote:
David Hlác(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.
Yes of course, thanks!, that worked.
D.
On Wed, Jun 4, 2008 at 11:29 AM, Ralph Angenendt <ra+centos@br-online.dera%2Bcentos@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