Resource groups in WebLogic Multitenancy Domain partition |
- Configure Security Realm
- Create Users & Groups for Partition domain
- Configure Virtual Target
- Creating Partition Domain
- Configure IDD for Partition
- Partition Control (start/stop using WLST)
def add_IDD4_Partition(realmName, partitionName, primary_IDD ): """ This function is developed for generic use to adding Identity domain to a partition domain. """ sec = cmo.getSecurityConfiguration() sec.setAdministrativeIdentityDomain("AdminIDD") realm = cmo.getSecurityConfiguration().lookupRealm(realmName) # Authentication defAtnP = realm.lookupAuthenticationProvider('ATNPartition') defAtnP.setIdentityDomain(primary_IDD) defAtnA = realm.lookupAuthenticationProvider('ATNAdmin') defAtnA.setIdentityDomain("AdminIDD") # Search for the Partition and set it as primary IDD p= cmo.lookupPartition(partitionName) p.setPrimaryIdentityDomain(primary_IDD) # For Default realm setting the IDD realm = sec.getDefaultRealm() defAtn = realm.lookupAuthenticationProvider('DefaultAuthenticator') defAtn.setIdentityDomain("AdminIDD") def main(): connect("weblogic","welcome1","t3://192.168.33.100:6100") edit() startEdit() add_IDD4_Partition('Corporate_Realm', "Corporate_partition", "Corporate_IDD" ) add_IDD4_Partition('Online_Realm', "Online_partition", "Online_IDD" ) save() activate() disconnect() main()
Lets run the script that will add the Identity Domain for each partition.
Select the Corporate Realm in the Security |
Now select one of the security realm which you have created for the partition.
No comments:
Post a Comment
Please write your comment here