3 Replies Latest reply on Mar 26, 2008 6:00 AM by antoine_h

    How I configute a custom IdentityLoginModule

    ameo

      Hello,

      I try to use a own implementation of a custom IdentityLoginModule. Can you tell me how to make the configuration for using it ?

      The only thing I've done is that I changed the class in jboss-portal.sar\conf\login-config.xml, but with no luck.

       <login-module code="com.test.CUSTOMIdentityLoginModule" flag="required">
       <module-option name="unauthenticatedIdentity">guest</module-option>
       <module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
       <module-option name="roleModuleJNDIName">java:/portal/RoleModule</module-option>
       <module-option name="userProfileModuleJNDIName">java:/portal/UserProfileModule</module-option>
       <module-option name="membershipModuleJNDIName">java:/portal/MembershipModule</module-option>
       <module-option name="additionalRole">Authenticated</module-option>
       <module-option name="password-stacking">useFirstPass</module-option>
       </login-module>
      


        • 1. Re: How I configute a custom IdentityLoginModule
          antoine_h

          This should give you this result : the CUSTOMIdentityLoginModule is loaded and used as the login module, for the portal side.

          did you restart the jboss server ?
          I guess so.

          did you put some logs in the CUSTOMIdentityLoginModule ?
          you should see them when the portal starts and when you try to log.

          by the way : read the doc about this, and SSO etc...
          may be there is something else necessary (that I may not see...)


          • 2. Re: How I configute a custom IdentityLoginModule
            ameo

            Thanks for reply!

            I think I don't know where to place the CUSTOMIdentityLoginModule.class. I put the class in a WAR-File and deployed it. That's wrong, right ?

            I've read the referencequide twice :-(


            • 3. Re: How I configute a custom IdentityLoginModule
              antoine_h

              I don't have time to make a long answer now.

              but : you need then to read the doc of :
              - jboss and the security processing and settings
              - tomcat and the security processing and settings
              - JAAS ...
              - SSO (single sign on), etc... on jboss...

              read things, understand the minimum that will allow you to set your configuration properly...

              think of one thing : this is security... so it is worthwhile to know quite well what you are doing...

              even if you can't learn everything in so little time...
              but at least global things and how to properly configure you login module...

              hope it helps...