mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
(Stuart Lewis) - Changed scope of ldapGroup variable as it didn't need to be a class variable.
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@3147 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -134,7 +134,7 @@ public class LDAPAuthentication
|
||||
String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup");
|
||||
if ((groupName != null) && (!groupName.trim().equals("")))
|
||||
{
|
||||
ldapGroup = Group.findByName(context, groupName);
|
||||
Group ldapGroup = Group.findByName(context, groupName);
|
||||
if (ldapGroup == null)
|
||||
{
|
||||
// Oops - the group isn't there.
|
||||
|
@@ -72,9 +72,6 @@ public class LDAPHierarchicalAuthentication
|
||||
/** log4j category */
|
||||
private static Logger log = Logger.getLogger(LDAPHierarchicalAuthentication.class);
|
||||
|
||||
/** LDAP all members group */
|
||||
private Group ldapGroup;
|
||||
|
||||
/**
|
||||
* Let a real auth method return true if it wants.
|
||||
*/
|
||||
@@ -133,7 +130,7 @@ public class LDAPHierarchicalAuthentication
|
||||
String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup");
|
||||
if ((groupName != null) && (!groupName.trim().equals("")))
|
||||
{
|
||||
ldapGroup = Group.findByName(context, groupName);
|
||||
Group ldapGroup = Group.findByName(context, groupName);
|
||||
if (ldapGroup == null)
|
||||
{
|
||||
// Oops - the group isn't there.
|
||||
|
Reference in New Issue
Block a user