Skip to content
Snippets Groups Projects
Commit e555ad41 authored by brinn's avatar brinn
Browse files

[LMS-1816] Enable login with email address

SVN: 18216
parent a4480668
No related branches found
No related tags found
No related merge requests found
...@@ -60,6 +60,8 @@ ldap.attributenames.email = ...@@ -60,6 +60,8 @@ ldap.attributenames.email =
ldap.attributenames.first.name = ldap.attributenames.first.name =
# The attribute name for the last name, defaults to "sn" # The attribute name for the last name, defaults to "sn"
ldap.attributenames.last.name = ldap.attributenames.last.name =
# Set to true to also query for email aliases
ldap.queryEmailForAliases = true
# The database instance local unique identifier. Used when the new database is created. # The database instance local unique identifier. Used when the new database is created.
database-instance = TEST database-instance = TEST
......
...@@ -253,7 +253,7 @@ public abstract class AbstractServer<T> extends AbstractServiceWithLogger<T> imp ...@@ -253,7 +253,7 @@ public abstract class AbstractServer<T> extends AbstractServiceWithLogger<T> imp
assert persons.size() > 0 : "At least system user should be in the database"; assert persons.size() > 0 : "At least system user should be in the database";
// If only one user (system user), then this is the first logged user. // If only one user (system user), then this is the first logged user.
final boolean isFirstLoggedUser = (persons.size() == 1); final boolean isFirstLoggedUser = (persons.size() == 1);
PersonPE person = daoFactory.getPersonDAO().tryFindPersonByUserId(user); PersonPE person = daoFactory.getPersonDAO().tryFindPersonByUserId(session.getUserName());
if (person == null) if (person == null)
{ {
final PersonPE systemUser = getSystemUser(persons); final PersonPE systemUser = getSystemUser(persons);
......
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
</constructor-arg> </constructor-arg>
<!-- The time after which an inactive session is expired by the service (in minutes). --> <!-- The time after which an inactive session is expired by the service (in minutes). -->
<constructor-arg value="${session-timeout}" /> <constructor-arg value="${session-timeout}" />
<!-- Enable login with email addresses -->
<constructor-arg value="true" />
</bean> </bean>
<bean id="remote-host-validator" class="ch.systemsx.cisd.openbis.generic.server.WhiteListBasedRemoteHostValidator"> <bean id="remote-host-validator" class="ch.systemsx.cisd.openbis.generic.server.WhiteListBasedRemoteHostValidator">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment