<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setup your own Tomcat security realm</title>
	<atom:link href="http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/</link>
	<description>Writing about my experiences with technology and all different kinds of projects and experiments</description>
	<lastBuildDate>Thu, 26 Aug 2010 12:13:54 +0200</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-17359</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Wed, 28 Jul 2010 12:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-17359</guid>
		<description>Hi Kris,
the documentation says:
&lt;blockquote&gt;Administering the information in the users and user roles  table is the responsibility of your own applications. Tomcat does not provide any built-in capabilities to maintain users and roles.&lt;/blockquote&gt;
I guess you&#039;ve got an implementation that handles the registration process. During this process you should insert the new user into the corresponding database table that&#039;s being used by the realm. Then have a look at the realm&#039;s implementation and I&#039;m pretty sure that it just places something in the session to authenticate the user - just do this after you registration process and the user should be logged in automatically.</description>
		<content:encoded><![CDATA[<p>Hi Kris,<br />
the documentation says:</p>
<blockquote><p>Administering the information in the users and user roles  table is the responsibility of your own applications. Tomcat does not provide any built-in capabilities to maintain users and roles.</p></blockquote>
<p>I guess you&#8217;ve got an implementation that handles the registration process. During this process you should insert the new user into the corresponding database table that&#8217;s being used by the realm. Then have a look at the realm&#8217;s implementation and I&#8217;m pretty sure that it just places something in the session to authenticate the user &#8211; just do this after you registration process and the user should be logged in automatically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris Reid</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-17356</link>
		<dc:creator>Kris Reid</dc:creator>
		<pubDate>Wed, 28 Jul 2010 12:42:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-17356</guid>
		<description>Hi

I&#039;m using a database realm and the login/security works great but I have one issue.

After the user registers, I want the user to be automatically logged into the application. Any idea how can you automatically populate the Realm?

If you want to see what I mean you can register free here for my &lt;a href=&quot;http://www.autobacklinkservice.com/login.html&quot; rel=&quot;nofollow&quot;&gt;Backlink Service&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I&#8217;m using a database realm and the login/security works great but I have one issue.</p>
<p>After the user registers, I want the user to be automatically logged into the application. Any idea how can you automatically populate the Realm?</p>
<p>If you want to see what I mean you can register free here for my <a href="http://www.autobacklinkservice.com/login.html">Backlink Service</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasitha</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-7774</link>
		<dc:creator>Yasitha</dc:creator>
		<pubDate>Sat, 09 May 2009 11:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-7774</guid>
		<description>Wow really useful article, thanks buddy..</description>
		<content:encoded><![CDATA[<p>Wow really useful article, thanks buddy..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-4491</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Fri, 02 Jan 2009 17:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-4491</guid>
		<description>Hi jeremy,
as far as I know you&#039;ll have to do HTTP-Authentication yourself, i.e. you&#039;ll have to send the appropriate HTTP headers (e.g. &lt;em&gt;WWW-Authenticate&lt;/em&gt;) yourself in a servlet and then investigate the response headers. This way you can store the username in the session.
But since this isn&#039;t very easy most people use Form-Based Authentication instead; &lt;a href=&quot;http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt; is a good starting point. &lt;a href=&quot;http://www.artima.com/weblogs/viewpost.jsp?thread=155252&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt; are some pros and cons about HTTP-Authentication.</description>
		<content:encoded><![CDATA[<p>Hi jeremy,<br />
as far as I know you&#8217;ll have to do HTTP-Authentication yourself, i.e. you&#8217;ll have to send the appropriate HTTP headers (e.g. <em>WWW-Authenticate</em>) yourself in a servlet and then investigate the response headers. This way you can store the username in the session.<br />
But since this isn&#8217;t very easy most people use Form-Based Authentication instead; <a href="http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Security5.html">this page</a> is a good starting point. <a href="http://www.artima.com/weblogs/viewpost.jsp?thread=155252">Here</a> are some pros and cons about HTTP-Authentication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeremy</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-4487</link>
		<dc:creator>jeremy</dc:creator>
		<pubDate>Fri, 02 Jan 2009 13:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-4487</guid>
		<description>Once authenticated in the application, how do you access information about the user that is logged on? Is the Principal object stored as a session attribute or how else can you access it? Simple example, how would you get hold of the username on a JSP to do a DB query that uses that username as a parameter?</description>
		<content:encoded><![CDATA[<p>Once authenticated in the application, how do you access information about the user that is logged on? Is the Principal object stored as a session attribute or how else can you access it? Simple example, how would you get hold of the username on a JSP to do a DB query that uses that username as a parameter?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrei</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-3959</link>
		<dc:creator>andrei</dc:creator>
		<pubDate>Sat, 06 Dec 2008 15:22:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-3959</guid>
		<description>very good mate!

keep up the good momentum... :)</description>
		<content:encoded><![CDATA[<p>very good mate!</p>
<p>keep up the good momentum&#8230; <img src='http://www.christianschenk.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lawrence</title>
		<link>http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/comment-page-1/#comment-2700</link>
		<dc:creator>Lawrence</dc:creator>
		<pubDate>Tue, 07 Oct 2008 13:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/setup-your-own-tomcat-security-realm/#comment-2700</guid>
		<description>Christian,

I was looking for alternatives to Lambda Probe, and as yet have not found one, but I saw that in Jan you reccommended this to someone. For some reason the site is completely down and off air, but I was wondering and hoping that you might know a little about the datasource configuration. Is it possible to direct the data source config to the MySQL deamon instead of the Tomcat Instance ?

If you cannot answer this, I will keep searching. Just that they seem to have dropped off the face of the earth without cause.

Thanks in advance
Lawrence

PS: I have the latest probe.war file if that person still needs it.</description>
		<content:encoded><![CDATA[<p>Christian,</p>
<p>I was looking for alternatives to Lambda Probe, and as yet have not found one, but I saw that in Jan you reccommended this to someone. For some reason the site is completely down and off air, but I was wondering and hoping that you might know a little about the datasource configuration. Is it possible to direct the data source config to the MySQL deamon instead of the Tomcat Instance ?</p>
<p>If you cannot answer this, I will keep searching. Just that they seem to have dropped off the face of the earth without cause.</p>
<p>Thanks in advance<br />
Lawrence</p>
<p>PS: I have the latest probe.war file if that person still needs it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
