3 Replies Latest reply on May 30, 2006 3:12 AM by riadh mnasri

    How to create new users (login,password) of Duke Bank (under

    riadh mnasri Newbie

      Hi all,
      I have deployed successfully the Duke Bank J2ee application under Jboss-4.0.2, But the problem is that, I want to add new users to access the application apart from the default one (login= 200, password = j2ee).
      Is there any admin console to use (the url) !!! or any other mean to create new logins!
      Any help will be greatly appreciated!
      Thanks a lot
      Kind regards
      Riadh

        • 1. Re: How to create new users (login,password) of Duke Bank (u
          Abdullah Sindhu Newbie

          what you need to do exactly is to login into the database and insert into the user and roles table the ones you want, but obviously they are linked with the account table so, you might get the problems of referential integrity. are you using the property files or are you using the databaseserver login module, I have configured dukes bank application successfully but I am currently experiencing the problems with database server login module. The errors I am getting at the moment are


          -------------------------------Browser------------------------------------
          type Status report

          message Access to the requested resource has been denied

          description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
          ----------------------------------------------------------------------------

          ---------------------------------log file------------------------------------
          WARN [org.jboss.resource.security.ConfiguredIdentityLoginModule] Creating LoginModule with no configured password!

          -----------------------------------------------------------------------------

          The trouble is that I have already inserted into the database the required password username and roles and I have also updated my login-config file
          with the following information as stated on the tutorial.



          ------------------------------------login-config.xml--------------------------

          <application-policy name="dukesbank">

          <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
          flag="required">
          <module-option name="dsJndiName">java:/DefaultDS</module-option>
          <module-option name="principalsQuery">
          select passwd from Users where username=?
          </module-option>
          <module-option name="rolesQuery">
          select userRoles,'Roles' from UserRoles where username=?
          </module-option>
          </login-module>

          </application-policy>

          ----------------------------------------------------------------------------------


          Any body any thoughts about it, I have followed the tutorial with every bit possible. The jaas was working if i commented the above stated part of login-config.xml file and let there the one which is using the properties file.

          Any help will be greatly appreciated as long as it will come back within a reasonable amount of time.


          thanks in advance jboss-pauls,
          Regards, Abdullah sindhu

          • 2. Re: How to create new users (login,password) of Duke Bank (u
            VisolveGroup Novice

            Hello,

            I hope this will be the answer for following question.

            ***********
            Hi all,
            I have deployed successfully the Duke Bank J2ee application under Jboss-4.0.2, But the problem is that, I want to add new users to access the application apart from the default one (login= 200, password = j2ee).
            Is there any admin console to use (the url) !!! or any other mean to create new logins!
            Any help will be greatly appreciated!
            Thanks a lot
            Kind regards
            Riadh

            ************


            For this question, The answer is, after populating the database,

            You can change or add new users by modifying the following files.
            The file will be in the following location.

            Location: /j2eetutorial14/examples/bank/src

            1.roles.properties
            2.users.properties file.

            The users.properties is used to add the users and after that,
            You have to populate the database again for new entries you added in those to files by using GUI.
            This GUI is for administrators to manage bank transactions, Customer accounts and for Creating new Accounts/Customers.

            After these process is over, make the JBossDukesBank.ear file and deploy it.

            Now, u can access the newly created login instead of default login.(200, j2ee).

            Thanks,
            -Visolve JBoss Team.

            • 3. Re: How to create new users (login,password) of Duke Bank (u
              riadh mnasri Newbie

              Hi all,

              Now it is OK.
              Thank you very much all for your precious help!

              Best regards

              Riadh