aspose file tools*
The moose likes JBoss/WildFly and the fly likes how to add username , role , password to jboss the way we do in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "how to add username , role , password to jboss the way we do in tomcat " Watch "how to add username , role , password to jboss the way we do in tomcat " New topic
Author

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

vijendra singh
Greenhorn

Joined: Oct 31, 2006
Posts: 17
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


Vijendra
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9318
    
109

Have you specified the <security-domain> in the jboss-web.xml of the applications? Here's an example:

SecureAWebApplicationInJBoss


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add username , role , password to jboss the way we do in tomcat
 
Similar Threads
how to add username , role , password to jboss the way we do in tomcat
unable to add web-console user/password authentication
error on jboss start up
cannot perform access control without an authenticated principal
Unable to login to the jboss console