Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.2
-
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
- duplicates
-
XWIKI-1079 LDAP Authentication
- Closed