diff --git a/core/src/main/python/wlsdeploy/aliases/model_constants.py b/core/src/main/python/wlsdeploy/aliases/model_constants.py index e882f596f3..cc317b11e6 100644 --- a/core/src/main/python/wlsdeploy/aliases/model_constants.py +++ b/core/src/main/python/wlsdeploy/aliases/model_constants.py @@ -262,6 +262,7 @@ SAML2_CREDENTIAL_MAPPER = 'SAML2CredentialMapper' SAML2_IDENTITY_ASSERTER = 'SAML2IdentityAsserter' SCRIPT_ACTION = 'ScriptAction' +SECURE_MODE = 'SecureMode' SECURITY = 'Security' SECURITY_CONFIGURATION = 'SecurityConfiguration' SECURITY_CONFIGURATION_CD_ENABLED = 'CrossDomainSecurityEnabled' diff --git a/core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py b/core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py index 51037057e7..e38fd3b410 100644 --- a/core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py +++ b/core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py @@ -348,6 +348,15 @@ def discover_security_configuration(self): location.add_name_token(self._aliases.get_name_token(location), security_configuration) self._populate_model_parameters(result, location) self._massage_security_credential(result, location) + #Security Configuration has 2 subfolders, SecureMode and Realm + #Realm needs to be handled with special code, so discover SecureMode manually + location.append_location(model_constants.SECURE_MODE) + secure_mode = self._find_singleton_name_in_folder(location) + if secure_mode is not None: + location.add_name_token(self._aliases.get_name_token(location), secure_mode) + result[model_constants.SECURE_MODE] = OrderedDict() + self._populate_model_parameters(result[model_constants.SECURE_MODE], location) + location.pop_location() location.append_location(model_constants.REALM) result[model_constants.REALM] = OrderedDict() realms = self._find_names_in_folder(location)