[Zope] Z2.log has "Anonymous" users
Dieter Maurer
dieter at handshake.de
Fri Jul 4 00:53:33 EDT 2008
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
More information about the Zope
mailing list