readers.conf with python_access and python_auth
David Hláčik
david at hlacik.eu
Sat Jun 7 14:05:46 UTC 2008
Hello, what to put in readers.conf, in order to be able to log in
using python_auth hook and get access to groups using python_auth hook
When i have readers.conf :
access "pdg" {
users: "*"
newsgroups: "*"
access: RPA
}
auth "pdg" {
python_auth: "nnrpd_auth.py"
}
Python authentification (authenticate(atributes) method) works fine
for me , and i am able to login.
But when i comment access "pdg" and add to auth line python_access to
have in readers.conf just:
auth "pdg" {
python_access: "nnrpd_auth.py"
python_auth: "nnrpd_auth.py"
}
i will get in logs :
Jun 7 16:03:32 dev01 nnrpd[2303]: david-nb.net.hlacik.eu group
polarion.research 0
Jun 7 16:03:32 dev01 nnrpd[2303]: david-nb.net.hlacik.eu times user
0.012 system 0.012 idle 0.000 elapsed 232.738
Jun 7 16:03:32 dev01 nnrpd[2396]: ? reverse lookup for 10.10.10.183
failed: reverse lookup validation failed -- using IP address for
access
Which looks like python_access is working , but i did not get auth
from python_auth so my client (Outlook Express) will response TCP/IP
connection was unexpectly terminated by server.
Where is the problem? :)
Thanks!
More information about the inn-workers
mailing list