Skip to content

Commit 4f49bfc

Browse files
Merge branch 'master' into Issue#152-alias-definition-fixes
2 parents 09f3e8b + e2fb1cf commit 4f49bfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/src/main/python/wlsdeploy/tool/create/security_provider_creator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ def create_security_configuration(self, location):
7979
self.logger.entering(str(location), class_name=self.__class_name, method_name=_method_name)
8080
security_configuration_nodes = dictionary_utils.get_dictionary_element(self._topology, SECURITY_CONFIGURATION)
8181

82+
# in WLS 11g, the SecurityConfiguration mbean is not created until the domain is written.
83+
# if missing, we will create it to initialize realm and default security providers.
84+
config_location = LocationContext(location).append_location(SECURITY_CONFIGURATION)
85+
existing_names = deployer_utils.get_existing_object_list(config_location, self.alias_helper)
86+
if len(existing_names) == 0:
87+
mbean_type, mbean_name = self.alias_helper.get_wlst_mbean_type_and_name(config_location)
88+
self.wlst_helper.create(mbean_name, mbean_type)
89+
8290
self.__handle_default_security_providers(location, security_configuration_nodes)
8391
if len(security_configuration_nodes) > 0:
8492
self._create_mbean(SECURITY_CONFIGURATION, security_configuration_nodes, location, log_created=True)

0 commit comments

Comments
 (0)