(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:
Stuart Lewis
2008-09-22 09:57:38 +00:00
parent 2e31496215
commit 8eb186cf98
2 changed files with 2 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ public class LDAPAuthentication
String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup"); String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup");
if ((groupName != null) && (!groupName.trim().equals(""))) if ((groupName != null) && (!groupName.trim().equals("")))
{ {
ldapGroup = Group.findByName(context, groupName); Group ldapGroup = Group.findByName(context, groupName);
if (ldapGroup == null) if (ldapGroup == null)
{ {
// Oops - the group isn't there. // Oops - the group isn't there.

View File

@@ -72,9 +72,6 @@ public class LDAPHierarchicalAuthentication
/** log4j category */ /** log4j category */
private static Logger log = Logger.getLogger(LDAPHierarchicalAuthentication.class); 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. * Let a real auth method return true if it wants.
*/ */
@@ -133,7 +130,7 @@ public class LDAPHierarchicalAuthentication
String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup"); String groupName = ConfigurationManager.getProperty("ldap.login.specialgroup");
if ((groupName != null) && (!groupName.trim().equals(""))) if ((groupName != null) && (!groupName.trim().equals("")))
{ {
ldapGroup = Group.findByName(context, groupName); Group ldapGroup = Group.findByName(context, groupName);
if (ldapGroup == null) if (ldapGroup == null)
{ {
// Oops - the group isn't there. // Oops - the group isn't there.