<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=976440114-06052009>You may also want to change "brms" to "drools-guvnor" 
not "brms-*.properties to drools-guvnor-*.properties.&nbsp; I have found the 
making sure I specify drools-guvnor instead of brms or drools-brms whenever 
possible avoids a lot of not so obvious problems at least if you are using 5.0.0 
CR1, don't know about the the M* releases.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV class=Section1>
<P class=MsoNormal><I><SPAN style="FONT-SIZE: 7.5pt; COLOR: gray">| Jonathan 
Ingold | &nbsp;<A 
href="mailto:jonathan.ingold@jackson.com">jonathan.ingold@jackson.com</A>&nbsp; 
| PH: &amp; FAX: 517-367-3827 | Business Rules Developer | Jackson National | 
&nbsp;<A href="http://www.jackson.com/">http://www.jackson.com</A> &nbsp;| 
</SPAN></I><I><SPAN style="FONT-SIZE: 7.5pt; COLOR: #ff6600">Please note that 
all Jackson e-mail addresses have changed from @jnli.com to 
@jackson.com</SPAN></I><I><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: gray">.</SPAN></I></P></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV><EM><FONT 
color=#808080></FONT></EM><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=gmail_quote>2009/5/6 Darrin Mison <SPAN dir=ltr>&lt;<A 
href="mailto:dmison@redhat.com">dmison@redhat.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>The Drools 5 guvnor guide states that you can specify the admin role for 
  a user in your JAAS login configuration.
  <DIV><BR></DIV>
  <DIV>"It is also possible (thanks to JAAS) to&nbsp;define what users have the 
  "admin" role for Guvnor"</DIV>
  <DIV><BR></DIV>
  <DIV>This is also stated here: <A 
  href="http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/#password" 
  target=_blank>http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-part-1/#password</A></DIV>
  <DIV><BR></DIV>
  <DIV>I can't get this to work, the only way I can assign roles to users is 
  using the web UI. &nbsp;</DIV>
  <DIV><BR></DIV>
  <DIV>Is this a bug or are the docs out of date ? &nbsp;Or am I missing 
  something ?</DIV>
  <DIV><BR></DIV>
  <DIV><B>server/default/deploy/jboss-brms.war/WEB-INF/components.xml</B></DIV>
  <DIV>&lt;security:identity authenticate-method="#{authenticator.authenticate}" 
  jaas-config-name="brms"/&gt;</DIV>
  <DIV>&lt;security:role-based-permission-resolver 
  enable-role-based-authorization="true"/&gt;</DIV>
  <DIV><BR></DIV>
  <DIV><B>server/default/conf/login-config.xml:</B></DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp;&lt;application-policy name="brms"&gt;</DIV>
  <DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &lt;authentication&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;login-module 
  code="org.jboss.security.auth.spi.UsersRolesLoginModule" 
  flag="required"&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;module-option 
  name="usersProperties"&gt;props/brms-users.properties&lt;/module-option&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;module-option 
  name="rolesProperties"&gt;props/brms-roles.properties&lt;/module-option&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;&lt;/login-module&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &lt;/authentication&gt;</DIV>
  <DIV>&nbsp;&nbsp; &nbsp; &nbsp;&lt;/application-policy&gt;</DIV>
  <DIV><BR></DIV>
  <DIV><B>server/default/conf/props/brms-users.properties</B></DIV>
  <DIV>admin=admin123</DIV>
  <DIV><BR></DIV>
  <DIV>
  <DIV><B>server/default/conf/props/brms-roles.properties</B></DIV>
  <DIV>admin=admin</DIV></DIV>
  <DIV><BR></DIV></DIV></DIV><BR>_______________________________________________<BR>rules-users 
  mailing list<BR><A 
  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR><A 
  href="https://lists.jboss.org/mailman/listinfo/rules-users" 
  target=_blank>https://lists.jboss.org/mailman/listinfo/rules-users</A><BR><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>