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
|
* 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)
|
private void assignGroupsBasedOnLdapDn(String dn, Context context)
|
||||||
{
|
{
|
||||||
@@ -644,7 +644,7 @@ public class LDAPAuthentication
|
|||||||
// The group does not exist
|
// The group does not exist
|
||||||
log.warn(LogManager.getHeader(context,
|
log.warn(LogManager.getHeader(context,
|
||||||
"ldap_assignGroupsBasedOnLdapDn",
|
"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)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,8 +45,8 @@ public class LDAPServlet extends DSpaceServlet
|
|||||||
HttpServletResponse response)
|
HttpServletResponse response)
|
||||||
throws ServletException, IOException, SQLException, AuthorizeException
|
throws ServletException, IOException, SQLException, AuthorizeException
|
||||||
{
|
{
|
||||||
// check if ldap is enables and forward to the correct login form
|
// 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)
|
if (ldap_enabled)
|
||||||
{
|
{
|
||||||
JSPManager.showJSP(request, response, "/login/ldap.jsp");
|
JSPManager.showJSP(request, response, "/login/ldap.jsp");
|
||||||
@@ -104,4 +104,4 @@ public class LDAPServlet extends DSpaceServlet
|
|||||||
"netid=" + netid + ", result=" + String.valueOf(status)));
|
"netid=" + netid + ", result=" + String.valueOf(status)));
|
||||||
JSPManager.showJSP(request, response, jsp);
|
JSPManager.showJSP(request, response, jsp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user