You may also want to change "brms" to "drools-guvnor" not
"brms-*.properties to drools-guvnor-*.properties.  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.
 

| Jonathan Ingold |  [email protected]  | PH: & FAX:
517-367-3827 | Business Rules Developer | Jackson National |
http://www.jackson.com <http://www.jackson.com/>   | Please note that
all Jackson e-mail addresses have changed from @jnli.com to
@jackson.com.

 


________________________________

2009/5/6 Darrin Mison <[email protected]>


        The Drools 5 guvnor guide states that you can specify the admin
role for a user in your JAAS login configuration. 

        "It is also possible (thanks to JAAS) to define what users have
the "admin" role for Guvnor"

        This is also stated here:
http://magazine.redhat.com/2008/08/12/jboss-drools-how-to-tuning-guvnor-
part-1/#password

        I can't get this to work, the only way I can assign roles to
users is using the web UI.  

        Is this a bug or are the docs out of date ?  Or am I missing
something ?

        server/default/deploy/jboss-brms.war/WEB-INF/components.xml
        <security:identity
authenticate-method="#{authenticator.authenticate}"
jaas-config-name="brms"/>
        <security:role-based-permission-resolver
enable-role-based-authorization="true"/>

        server/default/conf/login-config.xml:
              <application-policy name="brms">
                 <authentication>
                    <login-module
code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag="required">
                       <module-option
name="usersProperties">props/brms-users.properties</module-option>
                       <module-option
name="rolesProperties">props/brms-roles.properties</module-option>
                    </login-module>
                 </authentication>
              </application-policy>

        server/default/conf/props/brms-users.properties
        admin=admin123

        server/default/conf/props/brms-roles.properties
        admin=admin


        _______________________________________________
        rules-users mailing list
        [email protected]
        https://lists.jboss.org/mailman/listinfo/rules-users
        
        


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to