Uploaded image for project: 'Opencast'
  1. MH-13021

Ldap authentication engage frontend incorrectly return authentication failed

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 5.0
    • Fix versions: None
    • Components: Engage User Interface
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1.Visit the engage front-end and click on login ( directly visiting https://.../engage/ui/index.html and clicking top right login.
      2.Fill in ldap credentials
      3.engage displays dialog that login failed for that user
       
       Actual Results:
       Login was correct and succeeded but engage front end returns this incorrectly. No media is visible.
       
       Expected Results:
       Successful login and you see the media that's available for the current user
       
       Workaround (if any):
       Refresh the page after receiving the login failed message. The login box at the top correctly shows the current username and the engage page is populated with the media available for this user.


      Logs return the following after login :
      2018-07-31 13:07:16,547 | DEBUG | (LdapUserProviderInstance:289) - LdapUserProvider is loading user *******
      2018-07-31 13:07:16,675 | WARN | (JpaGroupRoleProvider:239) - Group **** not found
      2018-07-31 13:07:16,675 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****"
      2018-07-31 13:07:16,676 | WARN | (JpaGroupRoleProvider:239) - Group **** not found
      2018-07-31 13:07:16,676 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****"
      2018-07-31 13:07:16,677 | WARN | (JpaGroupRoleProvider:239) - Group **** not found
      2018-07-31 13:07:16,677 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****"
      2018-07-31 13:07:16,678 | WARN | (JpaGroupRoleProvider:239) - Group **** not found
      2018-07-31 13:07:16,678 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****"
      2018-07-31 13:07:16,678 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) (****) Could not find any attribute named '****' in user '{}'
      2018-07-31 13:07:16,679 | WARN | (JpaGroupRoleProvider:239) - Group UGENT not found
      2018-07-31 13:07:16,679 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "UGENT" to role "ROLE_UGENT"
      2018-07-31 13:07:16,680 | WARN | (JpaGroupRoleProvider:239) - Group ANONYMOUS not found
      2018-07-31 13:07:16,680 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "ANONYMOUS" to role "ROLE_ANONYMOUS"
      2018-07-31 13:07:16,680 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Returning user **** with authorities:
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_****
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_****
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_****
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_UGENT
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_****
      2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_ANONYMOUS

      When visiting the engage application via https://presentation.****/ and using the login dialog found there everything works as intented. I get redirected to the ***/engage/ui/index.html correctly logged in and see the media available for that user.
      Show
      Steps to reproduce: 1.Visit the engage front-end and click on login ( directly visiting https://.../engage/ui/index.html and clicking top right login. 2.Fill in ldap credentials 3.engage displays dialog that login failed for that user    Actual Results:  Login was correct and succeeded but engage front end returns this incorrectly. No media is visible.    Expected Results:  Successful login and you see the media that's available for the current user    Workaround (if any):  Refresh the page after receiving the login failed message. The login box at the top correctly shows the current username and the engage page is populated with the media available for this user. Logs return the following after login : 2018-07-31 13:07:16,547 | DEBUG | (LdapUserProviderInstance:289) - LdapUserProvider is loading user ******* 2018-07-31 13:07:16,675 | WARN | (JpaGroupRoleProvider:239) - Group **** not found 2018-07-31 13:07:16,675 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****" 2018-07-31 13:07:16,676 | WARN | (JpaGroupRoleProvider:239) - Group **** not found 2018-07-31 13:07:16,676 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****" 2018-07-31 13:07:16,677 | WARN | (JpaGroupRoleProvider:239) - Group **** not found 2018-07-31 13:07:16,677 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****" 2018-07-31 13:07:16,678 | WARN | (JpaGroupRoleProvider:239) - Group **** not found 2018-07-31 13:07:16,678 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "****" to role "ROLE_****" 2018-07-31 13:07:16,678 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) (****) Could not find any attribute named '****' in user '{}' 2018-07-31 13:07:16,679 | WARN | (JpaGroupRoleProvider:239) - Group UGENT not found 2018-07-31 13:07:16,679 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "UGENT" to role "ROLE_UGENT" 2018-07-31 13:07:16,680 | WARN | (JpaGroupRoleProvider:239) - Group ANONYMOUS not found 2018-07-31 13:07:16,680 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Parsed LDAP role "ANONYMOUS" to role "ROLE_ANONYMOUS" 2018-07-31 13:07:16,680 | DEBUG | (OpencastLdapAuthoritiesPopulator:329) - (2039490865) Returning user **** with authorities: 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_**** 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_**** 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_**** 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_UGENT 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_**** 2018-07-31 13:07:16,681 | ERROR | (OpencastLdapAuthoritiesPopulator:172) - ROLE_ANONYMOUS When visiting the engage application via https://presentation.****/ and using the login dialog found there everything works as intented. I get redirected to the ***/engage/ui/index.html correctly logged in and see the media available for that user.
    • Tags (folksonomy):

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kkeppens Kristof Keppens
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                TestRail: Cases