<div dir="ltr"><div><div><div><div><div>Could someone please send full standalone.xml for eap 6.2, or it's vital parts.<br><br></div>I want to configure basic web.xml auth with database realm, but I always finish with error.<br>
</div>Is there a difference in configuration between jboss 7.1 and jboss 7.3 and eap 6.2 ?<br><br></div>In <subsystem xmlns="urn:jboss:domain:security:1.2"><br><br></div>I added <br><br> <security-domain name="mysqldomain" cache-type="default"><br>
<authentication><br> <login-module code="Database" flag="required"><br> <module-option name="dsJndiName" value="java:jboss/datasources/petclinicDS"/><br>
<module-option name="principalsQuery" value="select passwd from USERS where login=?"/><br> <module-option name="rolesQuery" value="select role 'Roles' from USER_ROLES where login=?"/><br>
</login-module><br> </authentication><br> </security-domain><br><br>database java:jboss/datasources/petclinicDS is ok, it is used in petclinic app and works.<br>
<br></div><div>and in jboss-web.xml:<br><br><jboss-web><br><security-domain>java:/jaas/mysqldomain</security-domain><br>also tried with <security-domain>mysqldomain</security-domain><br></jboss-web><br>
<br></div><div>and in web.xml:<br><p><?xml version="1.0" encoding="UTF-8"?></p><p><web-app xmlns="<a class="" href="http://java.sun.com/xml/ns/javaee" rel="nofollow">http://java.sun.com/xml/ns/javaee</a>" xmlns:xsi="<a class="" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"</p>
<p> xsi:schemaLocation="<a class="" href="http://java.sun.com/xml/ns/javaee" rel="nofollow">http://java.sun.com/xml/ns/javaee</a> <a class="" href="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" rel="nofollow">http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd</a>"</p>
<p> version="2.5"></p><p><security-constraint></p><p> <web-resource-collection></p><p> <url-pattern>/*</url-pattern></p><p> </web-resource-collection></p><p> <auth-constraint></p>
<p> <role-name>Manager</role-name></p><p> </auth-constraint></p><p></security-constraint></p><p><login-config></p><p> <auth-method>BASIC</auth-method></p><p> <realm-name>Sample Realm</realm-name></p>
<p></login-config></p><p><security-role></p><p> <role-name>Manager</role-name></p><p></security-role></p><p></web-app></p>BR<br></div><div>Jakub<br></div></div>