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

                 Key: XWIKI-2113
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2113
             Project: XWiki Core
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2
         Environment: xwiki 1.2 default installation with default 
xwiki-enterprise-1.2.xar
            Reporter: marek knaze
         Attachments: LDAPAuthServiceImpl.java

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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to