Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

single sign-on

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


fernando at cmartins

Mar 30, 2006, 11:16 AM

Post #1 of 20 (7719 views)
Permalink
single sign-on

Hi,

I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is
deprecated, is there any alternative?

TIA,
Fernando Martins

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


lists at zopyx

Mar 30, 2006, 11:23 AM

Post #2 of 20 (7596 views)
Permalink
Re: single sign-on [In reply to]

--On 30. März 2006 21:16:09 +0200 Fernando Martins
<fernando [at] cmartins> wrote:

> Hi,
>
> I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is
> deprecated, is there any alternative?
>

As documented: Zope as standalone server + an optional reverse proxy
(Squid/Apache). But no idea how this would solve a SSO issue.

-aj

-----------------------------------------------------------------------
- Andreas Jung ZOPYX Ltd. & Co KG -
- E-mail: info [at] zopyx Web: www.zopyx.com, www.zopyx.de -
-----------------------------------------------------------------------


fernando at cmartins

Mar 30, 2006, 12:08 PM

Post #3 of 20 (7577 views)
Permalink
RE: single sign-on [In reply to]

> > Hi,
> >
> > I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since
> the last is
> > deprecated, is there any alternative?
> >
>
> As documented: Zope as standalone server + an optional reverse proxy
> (Squid/Apache). But no idea how this would solve a SSO issue.
>
> -aj
>

Yes, I understand the alternative to FastCGI, but mod_proxy doesn't pass the required environmental variable REMOTE_USER to zope. I was asking about single sign-on alternatives for Zope.

Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


regebro at gmail

Mar 30, 2006, 2:04 PM

Post #4 of 20 (7584 views)
Permalink
Re: single sign-on [In reply to]

On 3/30/06, Fernando Martins <fernando [at] cmartins> wrote:
> Yes, I understand the alternative to FastCGI, but mod_proxy doesn't pass the required environmental variable REMOTE_USER to zope. I was asking about single sign-on alternatives for Zope.

Yale made a system called CAS, that workes fine for SSO. It's simple
and secure and easy to implement.

My PAS plugin is available at http://www.zope.org/Members/regebro . I
have a CookieCrumbler type thingy somewhere too.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


fernando at cmartins

Mar 30, 2006, 11:03 PM

Post #5 of 20 (7571 views)
Permalink
RE: single sign-on [In reply to]

Lennart Regebro wrote:
> On 3/30/06, Fernando Martins <fernando [at] cmartins> wrote:
> > Yes, I understand the alternative to FastCGI, but mod_proxy
> doesn't pass the required environmental variable REMOTE_USER to
> zope. I was asking about single sign-on alternatives for Zope.
>
> Yale made a system called CAS, that workes fine for SSO. It's simple
> and secure and easy to implement.
>
> My PAS plugin is available at http://www.zope.org/Members/regebro . I
> have a CookieCrumbler type thingy somewhere too.
>

Interesting to know about, but it seems to be restricted to web sso, whereas
I had in mind sso including the workstation login. It seems to be a full
authentication mechanism on its own and it doesn't integrate with existing
authentication systems, right? (no NTLM and it uses kerberos but on it's
own)

Thanks,
Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


regebro at gmail

Mar 30, 2006, 11:11 PM

Post #6 of 20 (7582 views)
Permalink
Re: single sign-on [In reply to]

On 3/31/06, Fernando Martins <fernando [at] cmartins> wrote:
> Interesting to know about, but it seems to be restricted to web sso, whereas
> I had in mind sso including the workstation login.

Ah. I dont know how (or if) you do that with CAS.

> It seems to be a full
> authentication mechanism on its own and it doesn't integrate with existing
> authentication systems, right? (no NTLM and it uses kerberos but on it's
> own)

It can use NTML as well, it's just a question of how you validate the
username and password. But it still means dual logins.



--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


stefan at epy

Mar 31, 2006, 2:47 AM

Post #7 of 20 (7593 views)
Permalink
Re: single sign-on [In reply to]

You may want to contact Netsight(.co.uk), they have a working NTLM
auth system for Zope/Plone. It's not gratis though, AFAIK. It's also
possible to use ActiveDirectory for both Windows and Zope (via
LDAPUserFolder).

Stefan


On 31. Mär 2006, at 09:03, Fernando Martins wrote:

> Interesting to know about, but it seems to be restricted to web
> sso, whereas
> I had in mind sso including the workstation login. It seems to be a
> full
> authentication mechanism on its own and it doesn't integrate with
> existing
> authentication systems, right? (no NTLM and it uses kerberos but on
> it's
> own)
>
> Thanks,
> Fernando
>

--
Anything that happens, happens. --Douglas Adams


_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


robert.h.boyd at gmail

Mar 31, 2006, 11:08 AM

Post #8 of 20 (7560 views)
Permalink
Re: single sign-on [In reply to]

On 3/30/06, Fernando Martins <fernando [at] cmartins> wrote:
> Hi,
>
> I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is
> deprecated, is there any alternative?


FastCGI is deprecated, but it still can be used, correct? I also use
it to pass REMOTE_USER from Apache to Zope (in a Shibboleth set-up),
and nobody has given me an alternative using rewrite and proxy.


fernando at cmartins

Mar 31, 2006, 10:47 PM

Post #9 of 20 (7584 views)
Permalink
RE: single sign-on [In reply to]

Robert Boyd wrote:
> FastCGI is deprecated, but it still can be used, correct? I also use
> it to pass REMOTE_USER from Apache to Zope (in a Shibboleth set-up),
> and nobody has given me an alternative using rewrite and proxy.
>

Well, you'll get a warning of the deprecation at start time. That's all, I believe. But since it is deprecated, bug fixing/improvements will not be done, like this one: "filestream_iterator handling is not implemented for FastCGI protocol", see http://www.zope.org/Collectors/Zope/1647

Furthermore, I have another annoying problem with the current setup. I provide some files from the file system, through LocalFS, but it doesn't work with Apache+NTLM+FastCGI. Rather than getting the file I get the description of the object, like

<open file '/work/docs/MyFile.PDF', mode 'rb' at 0x42310974>

Regards,
Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


dieter at handshake

Apr 1, 2006, 1:32 AM

Post #10 of 20 (7566 views)
Permalink
RE: single sign-on [In reply to]

Fernando Martins wrote at 2006-3-30 22:08 +0200:
>> > I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since
>> the last is
>> > deprecated, is there any alternative?
>> >
>>
>> As documented: Zope as standalone server + an optional reverse proxy
>> (Squid/Apache). But no idea how this would solve a SSO issue.
>>
>> -aj
>>
>
>Yes, I understand the alternative to FastCGI, but mod_proxy doesn't pass the required environmental variable REMOTE_USER to zope. I was asking about single sign-on alternatives for Zope.

In principle, the rewrite rules allow to specify environment extensions.
When I remember right, you use an "E=..." in the "[P, ...]" to call
for such an extension.


--
Dieter
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


fernando at cmartins

Apr 1, 2006, 5:03 AM

Post #11 of 20 (7589 views)
Permalink
RE: single sign-on [In reply to]

Dieter Maurer wrote:
> >Yes, I understand the alternative to FastCGI, but mod_proxy
> doesn't pass the required environmental variable REMOTE_USER to
> zope. I was asking about single sign-on alternatives for Zope.
>
> In principle, the rewrite rules allow to specify environment extensions.
> When I remember right, you use an "E=..." in the "[P, ...]" to call
> for such an extension.
>

Indeed, I also looked into mod_rewrite (which I'm using anyway) and I
realised I could put the user id into the URL with %{LA-U:REMOTE_USER}.
That's a special case of %{ NAME_OF_VARIABLE }, required because "this
variable is set by the authorization phases which come after the URL
translation phase where mod_rewrite operates".

The problem is that I have no knowledge of zope internals, including VHM.
And not much time (or money) to fix it. Any idea if it would be a simple
matter of patching RemotUserFolder or would it require additional patching
to VHM, etc?

If feasible, this could indeed be a nice solution, only with positive impact
(get rid of FastCGI).

Regards,
Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


fernando at cmartins

Apr 1, 2006, 5:20 AM

Post #12 of 20 (7576 views)
Permalink
RE: single sign-on [In reply to]

Dieter Maurer wrote:
> >Yes, I understand the alternative to FastCGI, but mod_proxy
> doesn't pass the required environmental variable REMOTE_USER to
> zope. I was asking about single sign-on alternatives for Zope.
>
> In principle, the rewrite rules allow to specify environment extensions.
> When I remember right, you use an "E=..." in the "[P, ...]" to call
> for such an extension.

Actually, I see now you are referring to the substitution flags. This is
indeed env|E=VAR:VAL but the idea is to set an environmental variable which
"can be later dereferenced in many situations, but usually from within XSSI
(via <!--#echo var="VAR"-->) or CGI (e.g. $ENV{'VAR'})." But, unless I'm
missing something, this solution hits the problem that environment variables
are not passed into zope (except through FastCGI).

Regards,
Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


pw_lists at slinkp

Apr 1, 2006, 10:26 AM

Post #13 of 20 (7577 views)
Permalink
Re: single sign-on [In reply to]

On Sat, Apr 01, 2006 at 03:20:22PM +0200, Fernando Martins wrote:
> Dieter Maurer wrote:
> > >Yes, I understand the alternative to FastCGI, but mod_proxy
> > doesn't pass the required environmental variable REMOTE_USER to
> > zope. I was asking about single sign-on alternatives for Zope.
> >
> > In principle, the rewrite rules allow to specify environment extensions.
> > When I remember right, you use an "E=..." in the "[P, ...]" to call
> > for such an extension.
>
> Actually, I see now you are referring to the substitution flags. This is
> indeed env|E=VAR:VAL but the idea is to set an environmental variable which
> "can be later dereferenced in many situations, but usually from within XSSI
> (via <!--#echo var="VAR"-->) or CGI (e.g. $ENV{'VAR'})." But, unless I'm
> missing something, this solution hits the problem that environment variables
> are not passed into zope (except through FastCGI).

I've never tried those apache flags; but you might have a look
in zope's REQUEST.environ mapping ... maybe it Just Works?
*shrug*

--

Paul Winkler
http://www.slinkp.com
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


robert at redcor

Apr 1, 2006, 11:46 PM

Post #14 of 20 (7591 views)
Permalink
Re: single sign-on [In reply to]

Fernando Martins wrote:
> Hi,
>
> I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the last is
> deprecated, is there any alternative?
>
> TIA,
> Fernando Martins
>
> _______________________________________________
> Zope maillist - Zope [at] zope
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
Fernando,
during the next 4 weeks we will be prototyping a site.
One of the request we have to meet is SSO using
Active Directory to manage the users. One of the request
we *should* meet (I declined to commit ourselfs for this feature)
is that a user when logged into Windows she is automaticaly logged into
Plone. The server is running on a Linux box (SuSE 9.3 or later)
No idea yet whether this is possible yet, and I have read all related
info with interest.
If you like we can try to join forces.

Robert
Attachments: robert.vcf (0.20 KB)


bluepaul at earthlink

Apr 2, 2006, 3:19 AM

Post #15 of 20 (7561 views)
Permalink
Re: single sign-on [In reply to]

robert rottermann wrote:

> Fernando Martins wrote:
>
>> Hi,
>>
>> I'm doing single sign-on using Apache+mod_ntlm+FastCGI. Since the
>> last is
>> deprecated, is there any alternative?
>>
>> TIA,
>> Fernando Martins
>>
>> _______________________________________________
>> Zope maillist - Zope [at] zope
>> http://mail.zope.org/mailman/listinfo/zope
>> ** No cross posts or HTML encoding! **
>> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
>> http://mail.zope.org/mailman/listinfo/zope-dev )
>>
>>
>
> Fernando,
> during the next 4 weeks we will be prototyping a site.
> One of the request we have to meet is SSO using
> Active Directory to manage the users. One of the request
> we *should* meet (I declined to commit ourselfs for this feature)
> is that a user when logged into Windows she is automaticaly logged into
> Plone. The server is running on a Linux box (SuSE 9.3 or later)
> No idea yet whether this is possible yet, and I have read all related
> info with interest.
> If you like we can try to join forces.
>
> Robert
>
>
> _
>
>
>
Robert,

You can python + COM your way to a browser startup zope/plone login
screen. I cannot see how you automate the authentication of a given
browser instance that is then handed to your users.

Maybe someone will correct this. If so everyone's happy.

Of course, you could make your plone site anonymous if you feel your
secure by the time they get there.

David


_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


maciej.wisniowski at coig

Apr 2, 2006, 2:09 PM

Post #16 of 20 (7578 views)
Permalink
Re: single sign-on [In reply to]

>> during the next 4 weeks we will be prototyping a site.
>> One of the request we have to meet is SSO using
>> Active Directory to manage the users. One of the request
>> we *should* meet (I declined to commit ourselfs for this feature)
>> is that a user when logged into Windows she is automaticaly logged into
>> Plone. The server is running on a Linux box (SuSE 9.3 or later)
>> No idea yet whether this is possible yet, and I have read all related
>> info with interest.
>> If you like we can try to join forces.
>
Hi!

I think you should take a loot at CAS (Central Authentication Service),
there are
few user folders for Zope that can use this. The idea of automatic logon
to plone
may be possibly done with CAS and ActiveDirectory or maybe with X509
certificates, tokens or such things.

--
Maciej Wisniowski
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


chris at simplistix

Apr 3, 2006, 12:55 AM

Post #17 of 20 (7559 views)
Permalink
Re: single sign-on [In reply to]

Stefan H. Holek wrote:
> You may want to contact Netsight(.co.uk), they have a working NTLM auth
> system for Zope/Plone. It's not gratis though, AFAIK. It's also possible
> to use ActiveDirectory for both Windows and Zope (via LDAPUserFolder).

*mumble* *mumble* It works about 95% of the time. NTLM is the devils own
faeces, avoid like the plague unless you're gonna get IIS to do the
actual authentication...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


fernando at cmartins

Apr 3, 2006, 1:55 PM

Post #18 of 20 (7552 views)
Permalink
RE: single sign-on [In reply to]

David H wrote:
> Robert,
>
> You can python + COM your way to a browser startup zope/plone login
> screen. I cannot see how you automate the authentication of a given
> browser instance that is then handed to your users.
>

Hmm, that's not automation in this sense. The user logins into the
workstation (Windows, don't know about unix), the user opens the browser and
accesses an INTRANET page. The browser (IE or Firefox with NTLM setup) will
then send authentication information to the Intranet server using the NTLM
protocol. The web server (Apache with NTLM module) checks with some internal
Domain server and sets the environmental variable REMOTE_USER. This is then
sent to a CGI or FastCGI app (zope with FastCGI).

> Maybe someone will correct this. If so everyone's happy.

Yes, local Intranet users love this, one less login, automatic recognition,
personalisation, instant gratification,... ;-)

Cheers,
Fernando

_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


luca at wetron

Apr 7, 2006, 2:07 AM

Post #19 of 20 (7610 views)
Permalink
Re: single sign-on [In reply to]

En/na Fernando Martins ha escrit:
> David H wrote:
>> Robert,
>>
>> You can python + COM your way to a browser startup zope/plone login
>> screen. I cannot see how you automate the authentication of a given
>> browser instance that is then handed to your users.
>>
>
> Hmm, that's not automation in this sense. The user logins into the
> workstation (Windows, don't know about unix), the user opens the browser and
> accesses an INTRANET page. The browser (IE or Firefox with NTLM setup) will
> then send authentication information to the Intranet server using the NTLM
> protocol. The web server (Apache with NTLM module) checks with some internal
> Domain server and sets the environmental variable REMOTE_USER. This is then
> sent to a CGI or FastCGI app (zope with FastCGI).
>
>> Maybe someone will correct this. If so everyone's happy.
>
> Yes, local Intranet users love this, one less login, automatic recognition,
> personalisation, instant gratification,... ;-)

It seems it is possible but a little convoluted.
WARNING this has only had very limited testing and it's *not* in
production (and I'm not sure it will ever be).

The first hurdle is that with the proxying configuration (RewriteRule
with the P flag) ntlm_mod sends "Proxy-Authenticate" instead of
"WWW-Authenticate" and it didn't work, so the first thing I needed to do
was to modify ntlm_mod.c to always request "WWW-Authenticate" (easy to
do, just find any instance of "r->proxyreq" and change it to
"r->proxyreq && 0". I didn't see this reported anywhere, so it could
just be my local setup with apache 2.

Then in Apache I used the RequestHeader directive to add the remote user
to the request *and* the E option in the RewriteRule to put the remote
user in the environment (so that RequestHeader works),
i.e. (zope is served here under the test directory "t"):


<Location /t/>
AuthName "A Protected Place"
AuthType NTLM
NTLMAuth On
NTLMAuthoritative on
NTLMDomain YOURDOMAIN
NTLMServer yourhost
NTLMBasicAuth on
NTLMBasicRealm YOURREALM
require valid-user

RequestHeader set REMOTE_USER %{REMOTE_USER}e
</Location>

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !443$
RewriteRule ^/t/(.*)
http://localhost:10080/VirtualHostBase/https/%{HTTP_HOST}:443/VirtualHostRoot/_vh_t/$1
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} 443$
RewriteRule ^/t/(.*)
http://localhost:10080/VirtualHostBase/https/%{HTTP_HOST}/VirtualHostRoot/_vh_t/$1
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/t/(.*)
http://localhost:10080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/_vh_t/$1
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]


(note that this contortion with ssl may be due, again, to my setup. Note
also that I didn't manage to make ntlm+ssl work with internet explorer,
it works fine with firefox).

At this point zope should see an additional header REMOTE_USER (with the
consequent security risk: you should make sure that nobody can directly
access zope otherwise they can fake this header and pose as any user)
which is available in request.environ as HTTP_REMOTE_USER.

Then it's just a matter of using PAS with the SharkbyteSSOPlugin
(http://dev.plone.org/collective/browser/SharkbyteSSOPlugin) configured
to use HTTP_REMOTE_USER.

I'd suggest to change

userid = request.get(self.uservar)

to

userid = request.environ.get(self.uservar)

for a little more security - not that this setup seems really secure to
me anyway, but I'm not a security expert ;-)

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


luca at wetron

Apr 7, 2006, 6:18 AM

Post #20 of 20 (7514 views)
Permalink
Re: single sign-on [In reply to]

En/na Luca Olivetti ha escrit:

> At this point zope should see an additional header REMOTE_USER (with the
> consequent security risk: you should make sure that nobody can directly
> access zope otherwise they can fake this header and pose as any user)
> which is available in request.environ as HTTP_REMOTE_USER.
>
> Then it's just a matter of using PAS with the SharkbyteSSOPlugin
> (http://dev.plone.org/collective/browser/SharkbyteSSOPlugin) configured
> to use HTTP_REMOTE_USER.
>
> I'd suggest to change
>
> userid = request.get(self.uservar)
>
> to
>
> userid = request.environ.get(self.uservar)
>
> for a little more security - not that this setup seems really secure to
> me anyway, but I'm not a security expert ;-)

Ok, useless suggestion, since Zope request does "the right thing":
1)it will search in the environment before searching in the form and
2)it'll strip any form variable that starts with 'HTTP_'

Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 Fax +34 93 5883007
_______________________________________________
Zope maillist - Zope [at] zope
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.