How Not to Recreate Default Users and Groups On Restart in GateIn

1) Change the <Install Dir>/server/<Profile>/deploy/gatein.ear/02portal.war/WEB-INF/conf/organization/organization-configuration.xml file:

<?xml version="1.0" encoding="UTF-8"?><configuration xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd http://www.exoplaform.org/xml/ns/kernel_1_2.xsd">
  <external-component-plugins>
    <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
    <component-plugin>
      ...
      <init-params>
        <value-param>
          <name>checkDatabaseAlgorithm</name>
          <description>check database</description>
          <value>empty</value> <!-- Only recreate when database is empty, as mentioned at https://community.jboss.org/wiki/GateInIdentityAndSecurityFAQ -->
        </value-param>
        ...
      </init-params>
      ...
    </component-plugin>
    ...
  </external-component-plugins>
  ...
</configuration>

2) Restart GateIn Portal.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s