Remove security from the metadata domain repository

Pentaho Metadata Editor

Version
10.1.x
Audience
anonymous
Part Number
MK-95PDIA007-11
This procedure changes your default metadata domain repository so that it is no longer security-aware. It is a necessary step in completely removing security from the BA platform; however, this procedure does not, in itself, remove all security. To do that, start with Remove security by enabling anonymous access.
  1. Stop the Pentaho Server and User Console.
  2. Edit the /pentaho-solutions/system/pentahoObjects.spring.xml file.
  3. Comment out the IMetadataDomainRepositoryImpl line, and uncomment the similar line below it. Alternatively, you can switch the value of IMetadataDomainRepositoryImpl from org.pentaho.platform.plugin.services.metadata.SecurityAwareMetadataDomainRepository to org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository.
    <!-- <bean id="IMetadataDomainRepositoryImpl" 
      class="org.pentaho.platform.plugin.services.metadata.
        SecurityAwareMetadataDomainRepository" 
          scope="singleton"/> -->
    <!--  Use this schema factory to disable PMD security -->
    <bean id="IMetadataDomainRepositoryImpl" 
      class="org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository" 
        scope="singleton"/>
  4. Save and close the file.
  5. Restart the Pentaho Server and User Console.
You have now switched the metadata domain repository to one that is not security aware. Access controls will no longer be enforced on various metadata objects.