5 Replies Latest reply on Jun 15, 2014 1:01 PM by anishtg

    Add user in KIE-WB

    love-dev.1988

      Hello,

       

      I'm  working with KIE-WB.

      I created my own repositories, and projects (I logged in using the usernames and passwords mentioned in the jBPM-6.0.1  guide ).

      And it's OK.

      I want to logIn  using  my own username and password.

      I used  those helpful links,

      * http://docs.jboss.org/jbpm/v6.0/userguide/wb.Workbench.html#wb.UserManagement

      * http://salaboy.com/2013/10/22/kie-wb-jbpm-console-ng-configurations/    (Users/Roles/Groups)

      but I didn't succeed to logIn within the user that I added ?!

      I didn't know what's missing ?

       

      Thanks.

        • 1. Re: Add user in KIE-WB
          anishtg

          Hi Rosa,

           

          What type of user did you add - Mgmt/Application ?

           

          Also, can you post the contents of standalone.xml (or standalone-full).

           

          Regards,

          Anish

          • 2. Re: Add user in KIE-WB
            love-dev.1988

            Hello;

            Thanks for your attention.

            I'd like to create an  application user .

            Below is the file standalone.xml

            • 3. Re: Add user in KIE-WB
              anishtg

              Try changing login-module UsersRoles to the following:

              <module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>

               

              <module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>


              Restart. After this, your existing login IDs (admin, krisv, etc) might stop working. You need to recreate them. Also better to assign admin role to at least one application user.


              Let me know how it goes.


              A

              • 4. Re: Add user in KIE-WB
                love-dev.1988

                Hello,

                 

                • I applied the modification as you described :

                 

                1. <security-domain name="other" cache-type="default">
                2.       <authentication>
                3.             <login-module code="UsersRoles" flag="required">
                4.                    <module-option name="usersProperties"value="${jboss.server.config.dir}/application-users.properties"/>
                5.                    <module-option name="rolesProperties"value="${jboss.server.config.dir}/application-roles.properties"/>
                6.             </login-module>
                7.      </authentication>
                8. </security-domain>

                 

                        ----> It worked as previously: I logged in using the usernames and passwords mentioned in jBPM-Guide.

                                It seems that nothing changed !.

                 

                Thanks.

                • 5. Re: Add user in KIE-WB
                  anishtg

                  Hey sorry, got busy.

                   

                  For testing, did you try to directly add the new user to users.properties (not using add-user.bat), give the user roles in roles.properties and check?

                  Example: camel=camel in users.properties, camel=admin in roles.properties?

                   

                  Regards,

                  A