3 Replies Latest reply on Jul 7, 2006 11:17 AM by Ronald van Kuijk

    Replacing std login with custom login module

    May AbdelRazik Newbie

      Hi,
      I am currently using jBPM 3.1 with PostgreSQL 8.1. I have some questions regarding user login. I know that users are placed in the table JBPM_ID_USER.
      1)I need to change the way users login to be authenticated through and LDAP, is this possible and how, which module do i need to replace.
      2) During a user's session, I need to find out the user id / login name in order to fetch relevant database information that decides how my flow will go, how do I do that

      One last thing not user-related, is there any way that I can customize the current JSPs/user interface and automatically generated forms?

      Any help is greatly appreciated

      May

        • 1. Re: Replacing std login with custom login module
          Ronald van Kuijk Master

          1: The login module is a JBoss AS thing. Look the AS forum/docs/wiki etc to replace it. But watch out, the identity module is not the same as the loginmodule. If you need to retrieve roles etc, you must implement your own assignment handlers!!
          2: Search the api, the docs etcthere must be a way to retrieve the current actor ;-)

          3: Not yet, in 3.2 there will be something for this. Look at cvs for this. (btw, already answered lots of times in the forum!!!!!)

          • 2. Re: Replacing std login with custom login module
            May AbdelRazik Newbie

            Thanks for the prompt response. I found out how to get the current logged in user; from the execution context you can get the actorId
            executionContext.getJbpmContext().getActorId()

            I am still facing problems though with the users authentication replacement. I tried checking the JBoss AS forums, as you said but all the Login customization are about the JBoss Portal.

            I don't see what am i looking for under JBoss AS in terms of logging in. I am not familiar with JBoss but when u run the server I don't see a default web app with login that i want to replace.
            I saw the forums of the portal but i don't see how this relates to what I want to do as I don't have the portal modules at all.

            I would appreciate any help as where to start if I want to authenticate users on the JBPM from some other source (basically an LDAP) than what is currently happening from the table JBPM_ID_USER and contiue to use the same jBPM interface.

            thanks

            • 3. Re: Replacing std login with custom login module
              Ronald van Kuijk Master

              Sorry, one omission on my side. The use of the jboss loginmodule is in 3.2. In 3.1 it is a bean in the webapp that just 'sets' the user. There is no real login module