3 Replies Latest reply on May 28, 2013 5:32 AM by Sathish Kumar

    Basic authentication without LDAP

    Sathish Kumar Newbie

      Hi Guys,

       

      Could you please help me to do basic authentication using Realm or may using by properties file. Is there any possibilities to do the authentication without LDAP?? 

       

      Thanks,

      Satz.

        • 2. Re: Basic authentication without LDAP
          erasmo2 marciano2 Master

          Hi

          You can do an secuity-domain in different way.

           

          Are you interested in a mode specific?

           

          You can use also Datasource Security

          • 3. Re: Basic authentication without LDAP
            Sathish Kumar Newbie

            Could you please help me to do the 'FORM' based authentication?? This what I've in my application..

             

            web.xml:

             

            <login-config>

            <auth-method>FORM</auth-method>

            <form-login-config>

            <form-login-page>/login</form-login-page>

            <form-error-page>/loginerror.jsp</form-error-page>

            </form-login-config>

            </login-config>

             

            standalone.xml :

            <security-domains>
                            <security-domain name="mysecuritydomain">
                                <authentication>
                                    <login-module code="Remoting" flag="optional">
                                        <module-option name="password-stacking" value="useFirstPass"/>
                                    </login-module>
                                    <login-module code="RealmUsersRoles" flag="required">
                                        <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
                                        <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
                                        <module-option name="realm" value="ApplicationRealm"/>
                                        <module-option name="password-stacking" value="useFirstPass"/>
                                    </login-module>
                                </authentication>
                            </security-domain>

             

             

             

            Jboss-web.xml :

            <jboss-web>

            <security-domain>mysecuritydomain</security-domain>

            <context-root>/BMS</context-root>

            <resource-ref>

            <res-ref-name>jdbc/OracleBMSDS</res-ref-name >

            <res-type>javax.sql.DataSource</res-type >

            <jndi-name>java:/jdbc/OracleBMSDS</jndi-name>

            <res-auth>Container</res-auth>

            </resource-ref>

             

             

            </ jboss-web>

             

            Jboss-app.xml:

             

            <

            jboss-app>

             

            <module id="WebModule_1357879656070"

            >

             

            <web

            >

             

            <web-uri>BMS.war</web-uri

            >

             

            <context-root>/BMS</context-root

            >

             

            </web

            >

             

            </module

            >

             

            <security-role

            >

             

            <description>All authorized users of the application</description

            >

             

            <principal-name>G-Sec-BMS-User</principal-name

            >

             

             

             

            <role-name>ADMINISTRATOR</role-name

            >

             

            </security-role

            >

            </

             

            jboss-app

            >

             

             

             

             

            Thanks in advance,

             

            Satz.