Operations on LDAPContainerRules Metadata File in 11gR2PS2
Update the LDAPContainerRules Metadata File
The LDAPContainerRules Metadata file needs to be updated after the customizations have been loaded into the environment. This is necessary to ensure users and roles are created in the correct OUD OUs.
The LDAPContainerRules.xml file in this environment needs to be updated with the content from the /oracle/install/installs/metadata/LDAPContainerRules/ets/db/LDAPContainerRules.xml file.
Remove the Existing LDAPContainerRules Metadata File
cd /oracle/product/fmw/idm/common/bin
export ORACLE_HOME=/oracle/product/fmw/idm/
./wlst.sh
connect("weblogic","<password>","t3://<hostname>:7001")
deleteMetadata(application='OIMMetadata', server='oim_server1', docs="/db/LDAPContainerRules.xml")
Import the new LDAPContainerRules Metadata File
importMetadata(application='OIMMetadata', server='oim_server1',fromLocation='/oracle/install/installs/metadata/LDAPContainerRules/ets', docs="/db/LDAPContainerRules.xml")