<?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: Implicit Groups in WebLogic</title>
	<atom:link href="http://monduke.com/2007/03/29/implicit-groups-in-weblogic/feed/" rel="self" type="application/rss+xml" />
	<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/</link>
	<description>Covering J2EE Security and WebLogic Topics</description>
	<lastBuildDate>Tue, 13 Apr 2010 01:53:49 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-10321</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Wed, 17 Oct 2007 23:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-10321</guid>
		<description>Chetan,

The message you emailed me contained the following event which didn&#039;t come out in your comment above:

&lt;code&gt;#### Audit Record Begin &lt;Oct 17, 2007 5:21:41 PM&gt;

 &lt;Severity =FAILURE&gt;  &lt;&lt;&lt;Event Type = Authentication Audit Event&gt;&lt;crc&gt;&lt;AUTHENTICATE&gt;&gt;&gt; 

&lt;FailureException =javax.security.auth.login.FailedLoginException:

   [Security:090304]Authentication Failed: User crc javax.security.auth.login.FailedLoginException:

      [Security:090302]Authentication Failed: User crc denied&gt; Audit Record End ####&lt;/code&gt;

I&#039;m just re-posting this here to see why some comments have trouble with code-like things and to potentially help future readers.

Anyway, my email response was this:

&quot;That message is very helpful.

Assuming you only have one authenticator and that the user &quot;crc&quot;
exists, the only possibility is that the password is wrong.
Double-check your code.&quot;</description>
		<content:encoded><![CDATA[<p>Chetan,</p>
<p>The message you emailed me contained the following event which didn&#8217;t come out in your comment above:</p>
<p><code>#### Audit Record Begin &lt;Oct 17, 2007 5:21:41 PM&gt;</p>
<p> &lt;Severity =FAILURE&gt;  &lt;&lt;&lt;Event Type = Authentication Audit Event&gt;&lt;crc&gt;&lt;AUTHENTICATE&gt;&gt;&gt; </p>
<p>&lt;FailureException =javax.security.auth.login.FailedLoginException:</p>
<p>   [Security:090304]Authentication Failed: User crc javax.security.auth.login.FailedLoginException:</p>
<p>      [Security:090302]Authentication Failed: User crc denied&gt; Audit Record End ####</code></p>
<p>I&#8217;m just re-posting this here to see why some comments have trouble with code-like things and to potentially help future readers.</p>
<p>Anyway, my email response was this:</p>
<p>&#8220;That message is very helpful.</p>
<p>Assuming you only have one authenticator and that the user &#8220;crc&#8221;<br />
exists, the only possibility is that the password is wrong.<br />
Double-check your code.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-10313</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Wed, 17 Oct 2007 13:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-10313</guid>
		<description>hi 
i tried the weblogic auditing. In the auditor log when my created user is going to login that time in audit log the entry is like follows : 

#### Audit Record Begin  
   &gt;&gt;  
 Audit Record End ####

I couldn&#039;t understood from this exactly where is the problem . Help me .</description>
		<content:encoded><![CDATA[<p>hi<br />
i tried the weblogic auditing. In the auditor log when my created user is going to login that time in audit log the entry is like follows : </p>
<p>#### Audit Record Begin<br />
   &gt;&gt;<br />
 Audit Record End ####</p>
<p>I couldn&#8217;t understood from this exactly where is the problem . Help me .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-10189</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Tue, 09 Oct 2007 01:01:19 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-10189</guid>
		<description>Chetan,

Have you tried the advice given in &lt;a href=&quot;http://monduke.com/2006/09/16/troubleshooting-authentication-issues-with-audit-logs/&quot; rel=&quot;nofollow&quot;&gt;Troubleshooting Authentication Issues with Audit Logs&lt;/a&gt;? You really need to know if this is an authentication failure or an authorization failure. The audit log will tell you. 

Also, you can send me your code at mike @ monduke dot com and I&#039;ll have a look at it if you&#039;d like.

Mike</description>
		<content:encoded><![CDATA[<p>Chetan,</p>
<p>Have you tried the advice given in <a href="http://monduke.com/2006/09/16/troubleshooting-authentication-issues-with-audit-logs/" rel="nofollow">Troubleshooting Authentication Issues with Audit Logs</a>? You really need to know if this is an authentication failure or an authorization failure. The audit log will tell you. </p>
<p>Also, you can send me your code at mike @ monduke dot com and I&#8217;ll have a look at it if you&#8217;d like.</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-10184</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Mon, 08 Oct 2007 09:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-10184</guid>
		<description>hi 
Still i am stucked with the same problem . I have one other application which is having clustered environment and they have used the MBeanHome deprecated APIs to create user their code is running fine and there created user can also log in through application . but in my code i have used MBeanServerConnection to create user but it is not able to log in . Help me .</description>
		<content:encoded><![CDATA[<p>hi<br />
Still i am stucked with the same problem . I have one other application which is having clustered environment and they have used the MBeanHome deprecated APIs to create user their code is running fine and there created user can also log in through application . but in my code i have used MBeanServerConnection to create user but it is not able to log in . Help me .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-9996</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Thu, 27 Sep 2007 04:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-9996</guid>
		<description>Mike ,

thx a lot for ur response . 

yes it works when i create user manually through weblogic console. then why the programatically created user is not able to get connection ?</description>
		<content:encoded><![CDATA[<p>Mike ,</p>
<p>thx a lot for ur response . </p>
<p>yes it works when i create user manually through weblogic console. then why the programatically created user is not able to get connection ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-9991</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Thu, 27 Sep 2007 00:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-9991</guid>
		<description>Chetan,

Unfortunately, your code didn&#039;t come through. However, I saw your posts on the BEA forums indicating that you are doing EJB lookups.

Does your client work with a user you manually created in WebLogic console?

Mike</description>
		<content:encoded><![CDATA[<p>Chetan,</p>
<p>Unfortunately, your code didn&#8217;t come through. However, I saw your posts on the BEA forums indicating that you are doing EJB lookups.</p>
<p>Does your client work with a user you manually created in WebLogic console?</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-9982</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Wed, 26 Sep 2007 08:41:39 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-9982</guid>
		<description>In the last post i have sent the code i used to create user in realm . Please suggest me why my created user is not getting authenticated I am not using Role Policy i mean to say i am not using authorization part of weblogic only i am using authentication part . Help me .</description>
		<content:encoded><![CDATA[<p>In the last post i have sent the code i used to create user in realm . Please suggest me why my created user is not getting authenticated I am not using Role Policy i mean to say i am not using authorization part of weblogic only i am using authentication part . Help me .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-9944</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Tue, 25 Sep 2007 01:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-9944</guid>
		<description>Chetan,

The implicit groups don&#039;t need to be created (or have users added to them) because they already exist and users are &quot;in&quot; the groups under certain conditions which are handled automatically by the server. For example, a user is automatically in the &quot;users&quot; group after a successful authentication.

As mentioned in the post, if you want to use one of these groups, just create a role for your application that maps to the implicit group you want.

Since your user is probably not authorized to access your application, check the security constraints to make sure the role you used maps to the appropriate group.

You might find &lt;a href=&quot;http://monduke.com/2006/09/16/troubleshooting-authentication-issues-with-audit-logs/&quot;&gt;Troubleshooting Authentication Issues with Audit Logs&lt;/a&gt; useful...</description>
		<content:encoded><![CDATA[<p>Chetan,</p>
<p>The implicit groups don&#8217;t need to be created (or have users added to them) because they already exist and users are &#8220;in&#8221; the groups under certain conditions which are handled automatically by the server. For example, a user is automatically in the &#8220;users&#8221; group after a successful authentication.</p>
<p>As mentioned in the post, if you want to use one of these groups, just create a role for your application that maps to the implicit group you want.</p>
<p>Since your user is probably not authorized to access your application, check the security constraints to make sure the role you used maps to the appropriate group.</p>
<p>You might find <a href="http://monduke.com/2006/09/16/troubleshooting-authentication-issues-with-audit-logs/">Troubleshooting Authentication Issues with Audit Logs</a> useful&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chetan</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-9919</link>
		<dc:creator>Chetan</dc:creator>
		<pubDate>Mon, 24 Sep 2007 11:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-9919</guid>
		<description>I am creating user in realm through API using MBeanServerConnection object and invoking createUser method . But that created user is not getting authenticated to weblogic it is giving AuthenticationException . Where this user created by createUser API is created means in which group or in implicit group coz it is shown in user list of realm and there is no group as such for that user created through API .</description>
		<content:encoded><![CDATA[<p>I am creating user in realm through API using MBeanServerConnection object and invoking createUser method . But that created user is not getting authenticated to weblogic it is giving AuthenticationException . Where this user created by createUser API is created means in which group or in implicit group coz it is shown in user list of realm and there is no group as such for that user created through API .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-3075</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Sat, 31 Mar 2007 12:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-3075</guid>
		<description>Good point.

The solution to that might be to add a configuration setting and change the link condition to something like:

(isUserInRole(â€AuthorRoleâ€) &#124;&#124; isFreeForAll())</description>
		<content:encoded><![CDATA[<p>Good point.</p>
<p>The solution to that might be to add a configuration setting and change the link condition to something like:</p>
<p>(isUserInRole(â€AuthorRoleâ€) || isFreeForAll())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Harremoes</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-3071</link>
		<dc:creator>Niels Harremoes</dc:creator>
		<pubDate>Sat, 31 Mar 2007 08:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-3071</guid>
		<description>You are right. I hadn&#039;t thought about the everyone group requiring login. 
But just removing security constraints and role mappings will probably not work, since the application is likely to use isUserInRole(&quot;AuthorRole&quot;) to determine whether to show the &quot;Add new post&quot; link.</description>
		<content:encoded><![CDATA[<p>You are right. I hadn&#8217;t thought about the everyone group requiring login.<br />
But just removing security constraints and role mappings will probably not work, since the application is likely to use isUserInRole(&#8220;AuthorRole&#8221;) to determine whether to show the &#8220;Add new post&#8221; link.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Fleming</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-3066</link>
		<dc:creator>Mike Fleming</dc:creator>
		<pubDate>Sat, 31 Mar 2007 01:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-3066</guid>
		<description>Niels,

Thanks for the comment.

If I understand your scenario correctly, you&#039;re mapping AuthorRole to the AuthorGroup for the first instance so that you can identify the specific users you mentioned. Correct me if I made a bad assumption especially since I read in some extra detail.

For the second instance you&#039;re mapping AuthorRole to the everyone group in the hopes of allowing anonymous users to have the AuthorRole.

But from what I&#039;ve seen, &lt;strong&gt;any&lt;/strong&gt; security constraint in web.xml requires authentication even if the role ultimately maps to the everyone group. In that case, your second instance would still require authentication but the user would be otherwise unprivileged.

To answer your question, I would implement the free-for-all instance by removing the security constraints.

Here&#039;s the &lt;a href=&quot;http://monduke.com/ImplicitGroups.war&quot; rel=&quot;nofollow&quot;&gt;sample app&lt;/a&gt; I used when writing the post. Perhaps if I&#039;m configuring it incorrectly it will jump out at you.

Do you have a working example?

Thanks again.</description>
		<content:encoded><![CDATA[<p>Niels,</p>
<p>Thanks for the comment.</p>
<p>If I understand your scenario correctly, you&#8217;re mapping AuthorRole to the AuthorGroup for the first instance so that you can identify the specific users you mentioned. Correct me if I made a bad assumption especially since I read in some extra detail.</p>
<p>For the second instance you&#8217;re mapping AuthorRole to the everyone group in the hopes of allowing anonymous users to have the AuthorRole.</p>
<p>But from what I&#8217;ve seen, <strong>any</strong> security constraint in web.xml requires authentication even if the role ultimately maps to the everyone group. In that case, your second instance would still require authentication but the user would be otherwise unprivileged.</p>
<p>To answer your question, I would implement the free-for-all instance by removing the security constraints.</p>
<p>Here&#8217;s the <a href="http://monduke.com/ImplicitGroups.war" rel="nofollow">sample app</a> I used when writing the post. Perhaps if I&#8217;m configuring it incorrectly it will jump out at you.</p>
<p>Do you have a working example?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Harremoes</title>
		<link>http://monduke.com/2007/03/29/implicit-groups-in-weblogic/comment-page-1/#comment-3055</link>
		<dc:creator>Niels Harremoes</dc:creator>
		<pubDate>Fri, 30 Mar 2007 07:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://monduke.com/?p=45#comment-3055</guid>
		<description>Assume you have a discussion forum application which defines an AuthorRole. Now, you want to deploy two instances of the application, one where only specific authenticated users are authors and one free-for-all, which doesn&#039;t require authentication. How would you set up the latter without the everyone group?</description>
		<content:encoded><![CDATA[<p>Assume you have a discussion forum application which defines an AuthorRole. Now, you want to deploy two instances of the application, one where only specific authenticated users are authors and one free-for-all, which doesn&#8217;t require authentication. How would you set up the latter without the everyone group?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
