<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"
downloadurl="http://www.microsoft.com"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal;
font-family:Arial;
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:884097832;
mso-list-template-ids:-812771672;
mso-list-style-name:"Style Bulleted1";}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:14.2pt;
mso-level-number-position:left;
margin-left:14.2pt;
text-indent:-14.2pt;
font-family:Wingdings;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
margin-left:54.0pt;
text-indent:-18.0pt;
mso-ascii-font-family:"Courier New";
mso-hansi-font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</HEAD>
<BODY lang=EN-GB link=blue vlink=purple>
<DIV>
<DIV>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Ok after much head scratching I’ve
ascertained that I was using the wrong login method to accomplish this and I
need to use the loginWebUser method from the CmsObject class instead to
authenticate web users, but I still can’t get it to work as desired.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I know that it’s almost right
because if I log in as the admin user then I am redirected to the correct page,
but as before if I log in as a web user then it just keeps loading the login
page, which makes me think that this is a problem with access permissions
rather than the login code itself. Does anyone have any idea where I might be
going wrong? I’m pretty sure that the access permissions are set
correctly for the resource…<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Could it be something to do with the fact
that I’m using the login-form property for the resource? Is this
restricted to workplace users or will it work fine for webusers as well?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Jon Mayes <br>
<b><span style='font-weight:bold'>Sent:</span></b> 06 December 2005 12:28<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">The
OpenCms mailing list</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [opencms-dev] login form
with redirect[Scanned]</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi all,<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’ve been trying to find an answer to this problem in
the old threads but am not having any success!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I’m trying to protect an area of the site with a login
form & the opencms permissions. I have a folder called
“directors” which is restricted to a webuser group named
“Director”.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The form seems to log in ok (although when I was using the
browser based auth before it wouldn’t accept any uname/pass I supplied),
but then it just shows a blank page and doesn’t seem to redirect to the
requested resource.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I was originally trying this with the welcome template login
element, with no success, and am now using code from here <a
href="http://article.gmane.org/gmane.comp.cms.opencms.devel/16388/match=login+form+redirect">http://article.gmane.org/gmane.comp.cms.opencms.devel/16388/match=login+form+redirect</a>
which I found in the archives, and am just getting the blank page.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The URL in the address bar seems correct <a
href="http://localhost:8080/opencms/opencms/system/modules/uk.co.pegasushomes.intranet/elements/login.jsp?__loginform=true&requestedResource=%2Ftest2%2Fdirector%2F">http://localhost:8080/opencms/opencms/system/modules/uk.co.pegasushomes.intranet/elements/login.jsp?__loginform=true&requestedResource=%2Ftest2%2Fdirector%2F</a>
so I’m a bit baffled why it doesn’t want to play ball!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Any help much appreciated,<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards,<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jon<u1:p></u1:p></span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Jon Mayes</span></font> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Marketing & Business Systems</span></font> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Pegasus Retirement Homes plc</span></font> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Tel: </span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Fax: </span></font><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Email: jon.mayes@pegasus-homes.co.uk</span></font><font
size=1><span style='font-size:7.5pt'> </span></font> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>For more information on Pegasus please
visit our web site at </span></font><font color=navy><span style='color:navy'><a
href="http://www.pegasus-homes.co.uk/"><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>www.pegasus-homes.co.uk</span></font></a></span></font>
<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=1 color=navy face=Arial><span style='font-size:
7.5pt;font-family:Arial;color:navy'>Privileged/Confidential information may be
contained in this message. If you are not the addressee indicated in this
message (or responsible for delivery of the message to such person), you may
not copy or deliver this message to anyone. In such case, you should
destroy this message and kindly notify the sender by reply email. Please
advise immediately if you or your employer does not consent to Internet email
for messages of this kind. Opinions, conclusions and other information in this
message that do not relate to the official business of my firm shall be
understood as neither given nor endorsed by it. </span></font><o:p></o:p></p>
</div>
</div>
</div>
</div>
</DIV>
<DIV> </DIV>
<DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Jon Mayes</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Marketing & Business Systems</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Pegasus Retirement Homes plc</FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Tel: </FONT>
</DIV>
<DIV>
<FONT FACE="Arial" SIZE="1">Fax: </FONT>
</DIV>
<DIV>
<FONT SIZE="1">
<FONT FACE="Arial">Email: jon.mayes@pegasus-homes.co.uk</FONT> </FONT>
</DIV>
<DIV> </DIV>
<DIV><BODY lang=EN-GB link=blue vlink=purple>
<P CLASS="MsoNormal" >
<FONT FACE="Arial" COLOR="navy" SIZE="2"><SPAN STYLE="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial;">For more information on Pegasus please visit our web site at </SPAN></FONT>
<FONT COLOR="navy"><SPAN STYLE="COLOR: navy;"><A HREF="http://www.pegasus-homes.co.uk/"><FONT FACE="Arial" SIZE="2"><SPAN STYLE="FONT-SIZE: 10pt; FONT-FAMILY: Arial">www.pegasus-homes.co.uk</SPAN></FONT></A></SPAN></FONT>
</P>
</BODY></DIV>
<DIV> </DIV>
<DIV><BODY lang=EN-GB link=blue vlink=purple><SPAN STYLE="FONT-SIZE: 7.5pt; COLOR: navy; FONT-FAMILY: Arial;">Privileged/Confidential information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. </SPAN></BODY></DIV>
</DIV>
</DIV></BODY></HTML>