[Zope] Re: Z2.log question

Tres Seaver tseaver at palladion.com
Mon Nov 7 14:15:08 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David wrote:

> What environment or REQUEST variable is used for the Z2.log as the 
> username?
> 
> We are using Zope 2.7 and since we have switched to XUF (w cookies), 
> the Z2.log does not record the username for a request any longer. Or 
> more precise, it displays any user logged in via a XUF user folder as 
> "Anonymous". How can I tell Zope my user's name, so that it gets into 
> the Z2.log?

Cookie-based auth schemes "hide" the authenticated user from the
publisher.  Here is the patch, for instance, which modified the
CookieCrumbler product (an auth helper) to force the publisher to
recognize the cookie-based user:


http://cvs.zope.org/CMF/CMFCore/Attic/CookieCrumbler.py.diff?r1=1.18.10.5&r2=1.18.10.5.2.1

XUF likely needs a similar patch (look at the '_setAuthHeader' method
added by the patch for details).


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDb6e8+gerLs4ltQ4RArUsAKCv26xik5soCxBPXkUBTC93ixvUWACdGkNt
KoqJ++ajbwgbz7GnV1P4zOw=
=6BpR
-----END PGP SIGNATURE-----



More information about the Zope mailing list