3 Replies Latest reply on Apr 10, 2007 2:45 PM by Ian Ouzounov

    dashboard unavailable when going trough LDAP

    Ian Ouzounov Newbie

      I'm using jboss 4.0.5 with portal 2.6, and an external custom ldap login module.
      I force the validatePassword() to return true, since I don't need to check it with my ldap. I know that getRoleSets() returns the correct roleSet.
      The problem:
      after I login I can not get to dashboard.
      error - This request requires HTTP authentication ().

        • 1. Re: dashboard unavailable when going trough LDAP
          Ian Ouzounov Newbie

          if someone can help, here is some more info on the same problem:
          I discovered that if a user is not registered with the database can not login even if the ldap module authentication passes. I'm using ldap->required and IdentityLoginModule -> sufficient

          • 2. Re: dashboard unavailable when going trough LDAP
            Anette Engel Newbie


            I had a similar problem a while ago (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103675). Your users needs to have the role 'Authenticated'.

            I am using LDAP authentication as well. All my users have the role 'Authenticated'. Furthermore I have added all the roles I use in my LDAP server to the Portal database in order to be able to use these roles to define the access to my portal pages and portlets.

            Hope that helps,

            Anette

            • 3. Re: dashboard unavailable when going trough LDAP
              Ian Ouzounov Newbie

              Problem solved. It works fine.
              dashboard is there for every user.
              Also for the problem where users info from ldap should match the info stored in the local db all you have to do is:
              in login-config.xml uncomment this code, and ldap will synchronize the db every time there is a new user.

               <login-module code="org.jboss.portal.identity.auth.SynchronizingLoginModule" flag="optional">
               <module-option name="synchronizeIdentity">true</module-option>
               <module-option name="synchronizeRoles">true</module-option>
               <module-option name="additionalRole">Authenticated</module-option>
               <module-option name="defaultAssignedRole">User</module-option>
               <module-option name="userModuleJNDIName">java:/portal/UserModule</module-option>
               <module-option name="roleModuleJNDIName">java:/portal/RoleModule</module-option>
               <module-option name="membershipModuleJNDIName">java:/portal/MembershipModule</module-option>
               <module-option name="userProfileModuleJNDIName">java:/portal/UserProfileModule</module-option>
               </login-module>