<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Issues with PortalLDAP classes</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114182424" />
  <subtitle>Issues with PortalLDAP classes</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114182424</id>
  <updated>2026-04-06T20:20:43Z</updated>
  <dc:date>2026-04-06T20:20:43Z</dc:date>
  <entry>
    <title>RE: Issues with PortalLDAP classes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118047620" />
    <author>
      <name>Daniel G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118047620</id>
    <updated>2019-12-11T10:08:09Z</updated>
    <published>2019-12-11T10:08:09Z</published>
    <summary type="html">Hi David.&lt;br /&gt;I am trying to use the PortalLDAP reference in a class but it is always null, but I don&amp;#39;t really know what can be causing this issue? Regarding this:Is your class where you have the @Reference declared as an @Component? If it is not a component, the @Reference will never be injected.&lt;br /&gt;I am not sure how to do this. Could you help me?&lt;br /&gt;Thanks in advance.&lt;br /&gt;Regards.</summary>
    <dc:creator>Daniel G</dc:creator>
    <dc:date>2019-12-11T10:08:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issues with PortalLDAP classes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114255493" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114255493</id>
    <updated>2019-07-11T15:46:44Z</updated>
    <published>2019-07-11T15:46:44Z</published>
    <summary type="html">I don&amp;#39;t normally add the volatile modifier in the declaration.&lt;br /&gt;&lt;br /&gt;Is your class where you have the @Reference declared as an @Component? If it is not a component, the @Reference will never be injected.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-07-11T15:46:44Z</dc:date>
  </entry>
  <entry>
    <title>Issues with PortalLDAP classes</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114182423" />
    <author>
      <name>Daniel G</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114182423</id>
    <updated>2019-07-02T14:03:21Z</updated>
    <published>2019-07-02T14:03:21Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi everyone.&lt;br&gt;I am facing issues when trying to use&amp;nbsp;PortalLDAP. I am going to try to explain myself.&lt;br&gt;I wanted to use PortalLDAPUtil as it was used in Liferay 7.0, but it was moved in&amp;nbsp;7.1 to an internal package. So I was told to use this instead:&lt;br&gt;&lt;pre&gt;&lt;code&gt;@Reference( &amp;amp;nbsp; policy = ReferencePolicy.DYNAMIC, &amp;amp;nbsp; policyOption = ReferencePolicyOption.GREEDY &amp;amp;nbsp;) 
&amp;amp;nbsp;private volatile PortalLDAP _portalLDAP;
&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;My problem is that if I try to use in the doview method of a portlet, portlet does not appear in portal so I cannot use it. And if I use in other classes, _portalLDAP is always null.&lt;br&gt;I am very lost with this new implementation of classes, so any help or orientations would be very appreciated.&lt;br&gt;Kind regards.&amp;nbsp;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Daniel G</dc:creator>
    <dc:date>2019-07-02T14:03:21Z</dc:date>
  </entry>
</feed>
