Z2.log has "Anonymous" users
Hello, My plone instance doesn't log user names into the Z2.log access log file. Instead I always get user names as "Anonymous". Is there any setting that I need to change to get the user name correctly? I am on the following versions of Plone/Zope: * Plone 3.0.5 * CMF-2.1.0 * Zope (Zope 2.10.5-final, python 2.4.4, linux2) * Python 2.4.4 (#1, Jun 30 2008, 14:50:35) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] * PIL 1.1.6 Any help is appreciated. Thanks, Ravi
--On 1. Juli 2008 11:51:02 +0530 "Benkal, Ravindra " <Ravindra_Benkal@stercomm.com> wrote:
Hello,
My plone instance doesn't log user names into the Z2.log access log file. Instead I always get user names as "Anonymous". Is there any setting that I need to change to get the user name correctly?
I am on the following versions of Plone/Zope:
* Plone 3.0.5 * CMF-2.1.0 * Zope (Zope 2.10.5-final, python 2.4.4, linux2) * Python 2.4.4 (#1, Jun 30 2008, 14:50:35) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] * PIL 1.1.6
Credentials are only logged inside the Z2.log for basic authentication. However Zope and Plone use cookie-based authentication. That's why you see 'Anonymous'. -aj
Andreas Jung wrote at 2008-7-1 08:31 +0200:
...
My plone instance doesn't log user names into the Z2.log access log file. Instead I always get user names as "Anonymous". Is there any setting that I need to change to get the user name correctly?
I am on the following versions of Plone/Zope:
* Plone 3.0.5 * CMF-2.1.0 * Zope (Zope 2.10.5-final, python 2.4.4, linux2) * Python 2.4.4 (#1, Jun 30 2008, 14:50:35) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] * PIL 1.1.6
Credentials are only logged inside the Z2.log for basic authentication. However Zope and Plone use cookie-based authentication. That's why you see 'Anonymous'.
When I remember right, there is a ZServer patch ("ZServer" writes "Z2.log") to make correct user logging available even for non HTTP-authentication: It's very easy: instead of emulating its own authentication method, "ZServer" should use the Zope API to determine the current user. -- Dieter
participants (3)
-
Andreas Jung -
Benkal, Ravindra -
Dieter Maurer