<?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>Issue with importing LDAPServerConfiguration</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121245085" />
  <subtitle>Issue with importing LDAPServerConfiguration</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121245085</id>
  <updated>2026-04-04T22:30:48Z</updated>
  <dc:date>2026-04-04T22:30:48Z</dc:date>
  <entry>
    <title>RE: Issue with importing LDAPServerConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251592" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251592</id>
    <updated>2021-11-16T14:07:04Z</updated>
    <published>2021-11-16T14:07:03Z</published>
    <summary type="html">&lt;p&gt;Hi Rafał,&lt;/p&gt;
&lt;p&gt;The .config files are managed by
  the &lt;em&gt;org.apache.felix.cm.impl.ConfigurationManager&lt;/em&gt; class. I
  would start debugging to see if the process goes to there at all. Just
  to identify if this is a deployment or other kind of problem. &lt;/p&gt;
&lt;p&gt;By the way, have you tried to copy the .config file to the deploy
  folder instead of the osgi/config?&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2021-11-16T14:07:03Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with importing LDAPServerConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251341" />
    <author>
      <name>Rafał Pydyniak</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121251341</id>
    <updated>2021-11-16T11:59:41Z</updated>
    <published>2021-11-16T11:59:40Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks for the response.&lt;/p&gt;
&lt;p&gt;I saw that article. I think it's a little bit outdated though as now
  hashes are not generated for all configs. Anyway I tried manually
  adding them (using the same hash as for server config) and it still fails.&lt;/p&gt;
&lt;p&gt;I tried to do some debugging in Liferay code but I couldn't exactly
  find out how the files are read in this particular case. I was hoping
  someone had the same issue :) If not then I might try to do some more
  debugging but I'm afraid a lot of time might be lost on that.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rafał&lt;/p&gt;</summary>
    <dc:creator>Rafał Pydyniak</dc:creator>
    <dc:date>2021-11-16T11:59:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Issue with importing LDAPServerConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121249812" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121249812</id>
    <updated>2021-11-15T15:40:09Z</updated>
    <published>2021-11-15T15:40:08Z</published>
    <summary type="html">&lt;p&gt;Hi Rafał,&lt;/p&gt;
&lt;p&gt;Have you see, have you followed this instruction? &lt;a href="https://help.liferay.com/hc/en-us/articles/360017892791-Managing-LDAP-Settings-Using-config-Files"&gt;https://help.liferay.com/hc/en-us/articles/360017892791-Managing-LDAP-Settings-Using-config-Files&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That should work in 7.4. If it doesn't, I would try to identify where
  the process fails. Whether the config file is read by the deployment
  process, for example.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2021-11-15T15:40:08Z</dc:date>
  </entry>
  <entry>
    <title>Issue with importing LDAPServerConfiguration</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121245084" />
    <author>
      <name>Rafał Pydyniak</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121245084</id>
    <updated>2021-11-15T14:01:05Z</updated>
    <published>2021-11-15T08:11:33Z</published>
    <summary type="html">&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have an issue with importing LDAP's server configuration. I tried
  to export the configuration on one server and then import it on
  another - it doesn't work. I tried on a totally fresh Liferay (version
  7.4.1) and the issue is the same.&lt;/p&gt;
&lt;p&gt;Steps I did:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Create system configuration for LDAP server&lt;/li&gt;
  &lt;li&gt;Exported it&lt;/li&gt;
  &lt;li&gt;Put the file in LIFERAY_HOME/osgi/configs directory&lt;/li&gt;
  &lt;li&gt;Restart the server&lt;/li&gt;
  &lt;li&gt;Nothing happens, the config is not visible, when I try to create
    new config there is nothing filled from my config file&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;What I also tried:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Debug the class LDAPServerConfigurationProviderImpl - I put the
    breakpoint in each method. The   &lt;pre&gt;
_configurations&lt;/pre&gt;
    variable is simply not filled. I'm not sure how it should work
    behind the scenes though (how it is exactly filled).&lt;/li&gt;
  &lt;li&gt;Exporting the the configuration from fresh instance A (only
    changed the url to see the effect) and importing in instance B -
    nothing happens as well&lt;/li&gt;
  &lt;li&gt;Tried both companyId=&amp;quot;0&amp;quot; and companyId=&amp;quot;20100&amp;quot;
    but nothing works neither in system settings nor in instance settings&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The name of my config
  is com.liferay.portal.security.ldap.configuration.LDAPServerConfiguration-3db6f4ea-10be-48d1-933e-e44016eb1442.config
  so I have the GUID.&lt;/p&gt;
&lt;p&gt;I also tried with:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;com.liferay.portal.security.ldap.exportimport.configuration.LDAPExportConfiguration.config&lt;/li&gt;
  &lt;li&gt;com.liferay.portal.security.ldap.authenticator.configuration.LDAPAuthConfiguration.config&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;And they both work for the Auth/Export config so it's only the server
  config that doesn't work for me.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Do anyone have working configuriation file? Or perhaps some clues
  what I should do? Perhaps there is some extra step between exporting
  and putting in osgi/configs or afterwards to make the config visible?&lt;/p&gt;</summary>
    <dc:creator>Rafał Pydyniak</dc:creator>
    <dc:date>2021-11-15T08:11:33Z</dc:date>
  </entry>
</feed>
