<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [opencms-dev] OpenCMS loginUser does help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hello Thomas,</FONT>
</P>

<P><FONT SIZE=2>Thank you for this tip. I solved it with your help.</FONT>
<BR><FONT SIZE=2>I saved Username & Password in a separate session if first time login succeeds.</FONT>
<BR><FONT SIZE=2>Then I changed CmsLoginNew</FONT>
<BR><FONT SIZE=2>getting the session values for login (again) into the http-auth protected area.</FONT>
</P>

<P><FONT SIZE=2>So it works now - thank you very much!</FONT>
</P>

<P><FONT SIZE=2>Have a successful week,</FONT>
</P>

<P><FONT SIZE=2>Nico</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Thomas Maerz [<A HREF="mailto:thomasmaerz@gmx.de">mailto:thomasmaerz@gmx.de</A>] </FONT>
<BR><FONT SIZE=2>Sent: Donnerstag, 28. November 2002 15:58</FONT>
<BR><FONT SIZE=2>To: opencms-dev@www.opencms.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [opencms-dev] OpenCMS loginUser does help</FONT>
</P>

<P><FONT SIZE=2>Hello Nico,</FONT>
</P>

<P><FONT SIZE=2>> Thanks for this tip. I guess also that this will lead to my required</FONT>
<BR><FONT SIZE=2>> solution. But I think the /authenticate.html</FONT>
<BR><FONT SIZE=2>> Should have also a kind of logon mechanism. </FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Do you have any idea how the JAVA Code for this template have to look like?</FONT>
</P>

<P><FONT SIZE=2>Take the two files:</FONT>
<BR><FONT SIZE=2>                          copy</FONT>
<BR><FONT SIZE=2>/system/login/index       --->  /authenticate</FONT>
<BR><FONT SIZE=2>/system/login/index.html  --->  /authenticate.html</FONT>
</P>

<P><FONT SIZE=2>,----[ index.html ]</FONT>
<BR><FONT SIZE=2>| <?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2>| <PAGE></FONT>
<BR><FONT SIZE=2>|       <CLASS>com.opencms.workplace.CmsLoginNew</CLASS></FONT>
<BR><FONT SIZE=2>|       <MASTERTEMPLATE>index</MASTERTEMPLATE></FONT>
<BR><FONT SIZE=2>| </PAGE></FONT>
<BR><FONT SIZE=2>`----</FONT>
</P>

<P><FONT SIZE=2>,----[ authenticate.html ]</FONT>
<BR><FONT SIZE=2>| <?xml version="1.0" encoding="ISO-8859-1"?></FONT>
<BR><FONT SIZE=2>| <PAGE></FONT>
<BR><FONT SIZE=2>|       <CLASS>YourNewLoginClass</CLASS></FONT>
<BR><FONT SIZE=2>|       <MASTERTEMPLATE>index</MASTERTEMPLATE></FONT>
<BR><FONT SIZE=2>| </PAGE></FONT>
<BR><FONT SIZE=2>`----</FONT>
</P>

<P><FONT SIZE=2>Now write your own Login.class. Just take the code from</FONT>
<BR><FONT SIZE=2>com.opencms.workplace.CmsLoginNew and replace everything you don't need.</FONT>
</P>

<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Thomas</FONT>
</P>

</BODY>
</HTML>