Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2113

Unable to login into xwiki while using LDAP authentication together with "xwiki registration"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.2
    • {Unused} Core
    • None
    • xwiki 1.2 default installation with default xwiki-enterprise-1.2.xar
    • LDAP, registration

    Description

      prerequisities:
      user exists in LDAP
      xwiki uses LDAP authorization

      bug description:
      If a user exists in LDAP, log in into xwiki is successfull. If a new user is registered into xwiki throught registration link, user is created in xwiki, but is unable to log in into xwiki. I found this bug in class com.xpn.xwiki.user.impl.LDAP.LDAPAuthServiceImpl. in method protected boolean checkUserPassword(String username, String password, HashMap attributes, XWikiContext context)
      throws XWikiException. Fix is easy but I never commited into SVN so I will just try to descripe the fix:

      after the condition "if (result && (checkLevel > 0)) {" we need to add "else" with code: notinLDAP = true;

      please see attached LDAPAuthServiceImpl.java class at line 356.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              kvas marek knaze
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: