<!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>Thanks for this tip. I guess also that this will lead to my required solution. But I think the /authenticate.html</FONT>
<BR><FONT SIZE=2>Should have also a kind of logon mechanism. </FONT>
</P>
<P><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>Thank you very much for this time!</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: Mittwoch, 27. November 2002 17:31</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>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>> I login a user with cms.loginuser(username,password) the login works. I can</FONT>
<BR><FONT SIZE=2>> check the logged inUsers with OpenCMS API. </FONT>
<BR><FONT SIZE=2>> But If I want to enter a protected area - a HTTP-AUTH pops up. So the user</FONT>
<BR><FONT SIZE=2>> have authenticate a second time. </FONT>
<BR><FONT SIZE=2>> The area where the login form - there is no authentication required.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> What can I do - for also setting the HTTP-AUTH at the same time? Or</FONT>
<BR><FONT SIZE=2>> disabling the HTTP-AUTH for this user session - after login </FONT>
<BR><FONT SIZE=2>> with cms.loginuser ? </FONT>
</P>
<P><FONT SIZE=2>Guess this helps:</FONT>
</P>
<P><FONT SIZE=2>,----[ opencms.properties ]</FONT>
<BR><FONT SIZE=2>| # Select authentication mode:</FONT>
<BR><FONT SIZE=2>| # true = HTTP basic authentication</FONT>
<BR><FONT SIZE=2>| # false = form based authentication</FONT>
<BR><FONT SIZE=2>| # Give the URI in the system where the auth.form resides.</FONT>
<BR><FONT SIZE=2>| ##########################################################</FONT>
<BR><FONT SIZE=2>| auth.basic=false</FONT>
<BR><FONT SIZE=2>| auth.form_uri=/path/to/login/index.html</FONT>
<BR><FONT SIZE=2>`----</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Thomas</FONT>
</P>
</BODY>
</HTML>