Ross Patterson <[EMAIL PROTECTED]> writes:

> It seems like ZServer/medusa/ is responsible for logging
> requests to the access log/Z2.log and it only extracts the user from the
> HTTP basic auth header.
> I'd like to have the Z2.log reflect my PAS users so I started a branch at
> that
> hacks some request data.  You can see the meat of it in the following
> changeset:
> I'm sure this is just about the worst way to do this.  :)  I just wanted
> to get the discussion started.
> I suspect that ZServer/medusa/ is only invoved for certain
> Zope setups and that other Zope setups (twisted, etc.?) might log
> differently.
> So what would be a better way to approach this?  Does anyone else have a
> solution to this problem?

I forgot to mention that one of my goals is to have this behavior be PAS
pluggable.  In particular, it seems obvious that user.getUserName()
should be the default that's used, but I have a need to use something
else, so I'd like to be able to write a plugin that does this.


Zope-PAS mailing list

Reply via email to