mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
DS-1576 fix names of LDAP configuration properties
This commit is contained in:
@@ -612,7 +612,7 @@ public class LDAPAuthentication
|
||||
|
||||
/*
|
||||
* Add authenticated users to the group defined in dspace.cfg by
|
||||
* the ldap.login.groupmap.* key.
|
||||
* the authentication-ldap.login.groupmap.* key.
|
||||
*/
|
||||
private void assignGroupsBasedOnLdapDn(String dn, Context context)
|
||||
{
|
||||
@@ -644,7 +644,7 @@ public class LDAPAuthentication
|
||||
// The group does not exist
|
||||
log.warn(LogManager.getHeader(context,
|
||||
"ldap_assignGroupsBasedOnLdapDn",
|
||||
"Group defined in ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
|
||||
"Group defined in authentication-ldap.login.groupmap." + i + " does not exist :: " + dspaceGroupName));
|
||||
}
|
||||
}
|
||||
catch (AuthorizeException ae)
|
||||
@@ -657,7 +657,7 @@ public class LDAPAuthentication
|
||||
}
|
||||
}
|
||||
|
||||
groupMap = ConfigurationManager.getProperty("ldap.login.groupmap." + ++i);
|
||||
groupMap = ConfigurationManager.getProperty("authentication-ldap", "login.groupmap." + ++i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ public class LDAPServlet extends DSpaceServlet
|
||||
throws ServletException, IOException, SQLException, AuthorizeException
|
||||
{
|
||||
// check if ldap is enables and forward to the correct login form
|
||||
boolean ldap_enabled = ConfigurationManager.getBooleanProperty("ldap.enable");
|
||||
boolean ldap_enabled = ConfigurationManager.getBooleanProperty("authentication-ldap", "enable");
|
||||
if (ldap_enabled)
|
||||
{
|
||||
JSPManager.showJSP(request, response, "/login/ldap.jsp");
|
||||
|
Reference in New Issue
Block a user