• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to add username , role , password to jboss the way we do in tomcat

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to add username , role , password to jboss the way we do in tomcat conf/tomcat-users.xml

i need to add <tomcat-users>
<role rolename="licensing"/>
<user username="licensing" password="admin" roles="licensing"/>
</tomcat-users>

to jboss
what i did is
in login-config.xml having content as
<application-policy name = "jmx-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/jmx-console-users.properties</module-option>
<module-option name="rolesProperties">props/jmx-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>

<application-policy name = "web-console">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag = "required">
<module-option name="usersProperties">props/web-console-users.properties</module-option>
<module-option name="rolesProperties">props/web-console-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>

now i added in jmx-console-roles.properties
admin=admin
licensing=licensing,admin

and in jmx-console-users.properties
admin=admin
licensing=admin

same as this in web-console-roles.properties
admin=admin
licensing=licensing,admin

and in web-console-users.properties
admin=admin
licensing=admin

but not getting desired results with application which works well with tomcat.

any suggestions please.

vijendra
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you specified the <security-domain> in the jboss-web.xml of the applications? Here's an example:

SecureAWebApplicationInJBoss
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic