Can I change the authentication realm programmatically?
Hi all, I need to interface with some systems that have their own authentication systems (.htaccess of all things - they can't get mod_perl to work properly, sigh). Unfortunately, the realm that they've chosen is not 'Zope' :) What I'd like to do is authenticate against the realm that they've chosen by using the UserDB product. Then just jump to their pages and (hopefully) because I'm using the correct realm, I'll be let into their system. Trouble is, I can't figure out where to fill in the gap realm='SST Tutor', it seems that 'Zope' is hard-coded in to the source. Anyone got any ideas? tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
On Wed, Jul 07, 1999 at 04:41:53PM +0100, Tony McDonald wrote:
What I'd like to do is authenticate against the realm that they've chosen by using the UserDB product. Then just jump to their pages and (hopefully) because I'm using the correct realm, I'll be let into their system.
Trouble is, I can't figure out where to fill in the gap realm='SST Tutor', it seems that 'Zope' is hard-coded in to the source.
I've just been digging through the source. Looks like the realm get's set in the ZPublisher component. It's not hardcoded, though. Here's a snippet: elif os.environ.has_key('Z_REALM'): realm=os.environ['Z_REALM']
Anyone got any ideas?
So, if you can put up with changing the realm for your entire Zope install, just set an environment variable Z_REALM='SST Tutor' Ross -- Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005
Trouble is, I can't figure out where to fill in the gap realm='SST Tutor', it seems that 'Zope' is hard-coded in to the source.
I've just been digging through the source. Looks like the realm get's set in the ZPublisher component. It's not hardcoded, though. Here's a snippet:
elif os.environ.has_key('Z_REALM'): realm=os.environ['Z_REALM']
cheers for the reply Ross,
Anyone got any ideas?
So, if you can put up with changing the realm for your entire Zope install, just set an environment variable Z_REALM='SST Tutor'
Ross
trouble is, I need to do this almost on a 'per-folder' level as I'll be authenticating against several realms (SST Tutor is just one of them). tone. ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
participants (2)
-
Ross J. Reedstrom -
Tony McDonald