Problem with login when running Silva 2.3.1 with mod_wsgi

"Luthiger Stoll Benno" <[email protected]> Wed, 6 Jul 2011 16:46:47 +0000
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
--===============5810969242314992138==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_5C4D6DA22034ED4EB438FECECB1485691F67CCMBX21dethzch_"

--_000_5C4D6DA22034ED4EB438FECECB1485691F67CCMBX21dethzch_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello all



I've achieved to run my Silva 2.3.1 installation with mod_wsgi.

I've added rewrite rules to my Apache conf that redirect the calls to https=
 as soon as a url with suffix '*/edit' or '*/manage' is called.



I expected to see a basic authentication window displayed for that I can in=
put my username/password when that happens.

However, a nice login form embedded in the web page is displayed, because, =
by some magic, the call is forwarded to acl_users/cookie_auth/login.

Unfortunately, every attempt to login entering my username/password into th=
is form results in an error message 'You need to provide a login and a pass=
word.'

No chance to login L



Any ideas?



Regards,

Benno

______________________________________

ETH Zurich

Benno Luthiger

IT-Services

WEC E 17, Weinbergstrasse 11

8092 Zurich, Switzerland

Tel: +41 44 632 57 65

______________________________________




--_000_5C4D6DA22034ED4EB438FECECB1485691F67CCMBX21dethzch_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"DE-CH" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hello all<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I&#8217;ve achieved to run my S=
ilva 2.3.1 installation with mod_wsgi.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I&#8217;ve added rewrite rules =
to my Apache conf that redirect the calls to https as soon as a url with su=
ffix &#8216;*/edit&#8217; or &#8216;*/manage&#8217; is called.<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I expected to see a basic authe=
ntication window displayed for that I can input my username/password when t=
hat happens.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">However, a nice login form embe=
dded in the web page is displayed, because, by some magic, the call is forw=
arded to acl_users/cookie_auth/login.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Unfortunately, every attempt to=
 login entering my username/password into this form results in an error mes=
sage &#8216;You need to provide a login and a password.&#8217;<o:p></o:p></=
span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">No chance to login </span><span=
 lang=3D"EN-US" style=3D"font-family:Wingdings">L</span><span lang=3D"EN-US=
"><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Any ideas?<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal">Regards,<o:p></o:p></p>
<p class=3D"MsoNormal">Benno <o:p></o:p></p>
<p class=3D"MsoNormal">______________________________________<o:p></o:p></p=
>
<p class=3D"MsoNormal">ETH Zurich<o:p></o:p></p>
<p class=3D"MsoNormal">Benno Luthiger<o:p></o:p></p>
<p class=3D"MsoNormal">IT-Services<o:p></o:p></p>
<p class=3D"MsoNormal">WEC E 17, Weinbergstrasse 11<o:p></o:p></p>
<p class=3D"MsoNormal">8092 Zurich, Switzerland<o:p></o:p></p>
<p class=3D"MsoNormal">Tel: &#43;41 44 632 57 65<o:p></o:p></p>
<p class=3D"MsoNormal">______________________________________<o:p></o:p></p=
>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>

--_000_5C4D6DA22034ED4EB438FECECB1485691F67CCMBX21dethzch_--

--===============5810969242314992138==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
silva-dev mailing list
silva-dev-IAPFreCvJWM6s/[email protected]
https://lists.infrae.com/mailman/listinfo/silva-dev

--===============5810969242314992138==--