[mod_python] Authentification with publisher handler

Nik Barron Nik.Barron at pennantplc.co.uk
Mon Apr 29 08:58:25 EST 2002

> What I get is a "None", i.e. req.connection.user is None. 
> What could be the problem?

I had a similar problem -- do you get a login box when accessing the page?
If not, try adding the following to the authentication handler instead of
the return 0:

		req.headers_out.add("WWW-Authenticate", 'Basic
		return apache.HTTP_UNAUTHORIZED

Nick Barron
Manager, E-Services Division
Pennant Software Services Ltd -- Registered in England No. 3772667
PGP: A94C 4190 026E 3E02 6D50  C8FA 8620 3091 FF34 533D

More information about the Mod_python mailing list