New modules/authentication-ip.cfg

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6569 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Stuart Lewis
2011-08-19 04:21:03 +00:00
parent ebc67a4ae8
commit 7ebaabca4f
3 changed files with 31 additions and 4 deletions

View File

@@ -78,19 +78,18 @@ public class IPAuthentication implements AuthenticationMethod
ipMatcherGroupIDs = new HashMap<IPMatcher, Integer>();
ipMatcherGroupNames = new HashMap<IPMatcher, String>();
Enumeration e = ConfigurationManager.propertyNames();
Enumeration e = ConfigurationManager.propertyNames("authentication-ip");
while (e.hasMoreElements())
{
String propName = (String) e.nextElement();
if (propName.startsWith("authentication.ip."))
if (propName.startsWith("ip."))
{
String[] nameParts = propName.split("\\.");
if (nameParts.length == 3)
{
addMatchers(nameParts[2], ConfigurationManager
.getProperty(propName));
addMatchers(nameParts[2], ConfigurationManager.getProperty("authentication-ip", propName));
}
else
{