Skip to content

Commit

Permalink
Replaced UserImporter with LDAPUserImporter to fix unresolved runtime…
Browse files Browse the repository at this point in the history
… references
  • Loading branch information
kgolebiowski committed Dec 15, 2023
1 parent 8a63a98 commit 922a96f
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,18 @@
import com.liferay.portal.kernel.util.PrefsPropsUtil;
import com.liferay.portal.kernel.util.PropsKeys;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.security.exportimport.UserImporter;
import com.liferay.portal.security.ldap.exportimport.LDAPUserImporter;
import com.liferay.portal.security.sso.cas.configuration.CASConfiguration;
import com.liferay.portal.security.sso.cas.constants.CASConstants;
import com.liferay.portal.security.sso.cas.internal.constants.CASWebKeys;
import com.liferay.portal.util.PropsValues;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferencePolicy;
import org.osgi.service.component.annotations.ReferencePolicyOption;

/**
* Participates in every unauthenticated HTTP request to Liferay Portal.
*
Expand Down Expand Up @@ -200,11 +197,8 @@ protected void setUserLocalService(UserLocalService userLocalService) {
@Reference
private Portal _portal;

@Reference(
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY
)
private volatile UserImporter _userImporter;
@Reference
private LDAPUserImporter _userImporter;

private UserLocalService _userLocalService;

Expand Down

0 comments on commit 922a96f

Please sign in to comment.