mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
(Stuart Lewis) Fix for SF bug #2055941 LDAP authentication fails for new users in SWORD and Manakin
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3051 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -62,14 +62,10 @@ import org.dspace.core.LogManager;
|
||||
import org.dspace.eperson.EPerson;
|
||||
|
||||
/**
|
||||
* This is UNTESTED, since I do not have LDAP servers available.
|
||||
* It was adpated from LDAPServlet and should replace it.
|
||||
* See the <code>AuthenticationMethod</code> interface for more details.
|
||||
* Authentication module to authenticate against a flat LDAP tree where
|
||||
* all users are in the same unit.
|
||||
*
|
||||
* As of August 2005 we need a volunteer to complete and test this
|
||||
* implementation. They should add themselves to the author tag below.
|
||||
*
|
||||
* @author Larry Stone
|
||||
* @author Larry Stone, Stuart Lewis
|
||||
* @version $Revision$
|
||||
*/
|
||||
public class LDAPAuthentication
|
||||
@@ -228,6 +224,7 @@ public class LDAPAuthentication
|
||||
AuthenticationManager.initEPerson(context, request, eperson);
|
||||
eperson.update();
|
||||
context.commit();
|
||||
context.setCurrentUser(eperson);
|
||||
}
|
||||
catch (AuthorizeException e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user