@@ -54,10 +54,11 @@ def __init__(self, model_dictionary, model_context, aliases, exception_type, log
54
54
def create_security_configuration (self , location ):
55
55
"""
56
56
Create the /SecurityConfiguration folder objects, if any.
57
- Update is calling this method. The SecurityConfiguration should already be configured by create domain, but
57
+
58
+ The SecurityConfiguration should already be configured by create domain, but
58
59
allow the method to create the default security configuration with the default realm if for some reason
59
- it does not exit. Then bypass any configuration of the update from the model. The update tool does not
60
- support configuration of the SecurityConfiguration in this release.
60
+ it does not exist.
61
+
61
62
:param location: the location to use
62
63
:raises: BundleAwareException of the specified type: if an error occurs
63
64
"""
@@ -67,19 +68,15 @@ def create_security_configuration(self, location):
67
68
security_configuration_nodes = dictionary_utils .get_dictionary_element (self ._topology , SECURITY_CONFIGURATION )
68
69
69
70
# in WLS 11g, the SecurityConfiguration mbean is not created until the domain is written.
70
- # This is called after the domain is written, but check to make sure the mbean exists.
71
- # if missing, we will create it to initialize realm and default security providers.
72
- # This release does not support configuring 11g security providers beyond making sure the default
73
- # realm exists.
71
+ # This is called after the domain is written, but check to make sure the mbean does exist.
72
+ # It missing it will be created to initialize the default realm and security providers.
74
73
config_location = LocationContext (location ).append_location (SECURITY_CONFIGURATION )
75
74
existing_names = deployer_utils .get_existing_object_list (config_location , self .alias_helper )
76
75
if len (existing_names ) == 0 :
77
76
mbean_type , mbean_name = self .alias_helper .get_wlst_mbean_type_and_name (config_location )
78
77
self .wlst_helper .create (mbean_name , mbean_type )
79
78
80
- # This will leave 11g asis with the default security realm for the current release. No configuration
81
- # will be done to the 11g default security realm.
82
- if len (security_configuration_nodes ) > 0 : # and self._configure_security_configuration():
79
+ if len (security_configuration_nodes ) > 0 :
83
80
self ._create_mbean (SECURITY_CONFIGURATION , security_configuration_nodes , location , log_created = True )
84
81
85
82
self .logger .exiting (class_name = self .__class_name , method_name = _method_name )
@@ -132,7 +129,8 @@ def __get_default_realm_location(self):
132
129
133
130
def _configure_security_configuration (self ):
134
131
"""
135
- For this release, the update tool will not configure the security realm.
132
+ Keep this method in case we need to configure non-support.
133
+
136
134
:return: True if can configure the SecurityConfiguration mbean
137
135
"""
138
136
_method_name = '_configure_security_configuration'
0 commit comments