[jboss-dev-forums] [JBoss AS 7 Development] - Re: remote ejb client username is encrypted at the server(JBOSS7.1 CR1)

Ganesh Saithala do-not-reply at jboss.com
Fri Feb 17 17:41:30 EST 2012


Ganesh Saithala [https://community.jboss.org/people/ganeshment] created the discussion

"Re: remote ejb client username is encrypted at the server(JBOSS7.1 CR1)"

To view the discussion, visit: https://community.jboss.org/message/717606#717606

--------------------------------------------------------------
With JBOSS7.1 Fianl version also Iam getting encrypted username at the server and database login is failing. 

standalone.xml file contents :

 <security-realm name="ApplicationRealm">
                <authentication>
                    <properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
                </authentication>
            </security-realm>

<subsystem xmlns="urn:jboss:domain:remoting:1.1">
            <connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm">
                <sasl>
                    <policy>
                        <no-anonymous value="true"/>
                        <no-plain-text value="false"/>
                        <pass-credentials value="true"/>
                    </policy>
                </sasl>
            </connector>
        </subsystem>


<security-domain name="MYLogin" cache-type="default">
                    <authentication>
                        <login-module code="Remoting" flag="optional">
                            <module-option name="password-stacking" value="useFirstPass"/>
                        </login-module>
                        <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="sufficient">
                            <module-option name="dsJndiName" value="java:/jdbc/example"/>
                            <module-option name="principalsQuery" value="select password from sessionuser where name=?"/>
                            <module-option name="rolesQuery" value="select role, 'Roles' from sessionrole where name=?"/>
                            <module-option name="hashAlgorithm" value="SHA-256"/>
                            <module-option name="hashEncoding" value="base64"/>
                        </login-module>
                    </authentication>
                </security-domain>
...

EJB is using Security Domain annotation at SecurityDomain


(value = "MYLogin")
 
Can you please suggest how to configure standalone.xml for remote ejb authentication to work properly using database login module.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/717606#717606]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120217/f7673bd8/attachment.html 


More information about the jboss-dev-forums mailing list