Skip to content

Commit 1906545

Browse files
Wdt 694 secure mode not discovered (#1324)
* Fix for flattened folders without tokens in location * secure mode folder not discovered * secure mode folder not discovered
1 parent fdae806 commit 1906545

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/src/main/python/wlsdeploy/aliases/model_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@
262262
SAML2_CREDENTIAL_MAPPER = 'SAML2CredentialMapper'
263263
SAML2_IDENTITY_ASSERTER = 'SAML2IdentityAsserter'
264264
SCRIPT_ACTION = 'ScriptAction'
265+
SECURE_MODE = 'SecureMode'
265266
SECURITY = 'Security'
266267
SECURITY_CONFIGURATION = 'SecurityConfiguration'
267268
SECURITY_CONFIGURATION_CD_ENABLED = 'CrossDomainSecurityEnabled'

core/src/main/python/wlsdeploy/tool/discover/topology_discoverer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,15 @@ def discover_security_configuration(self):
348348
location.add_name_token(self._aliases.get_name_token(location), security_configuration)
349349
self._populate_model_parameters(result, location)
350350
self._massage_security_credential(result, location)
351+
#Security Configuration has 2 subfolders, SecureMode and Realm
352+
#Realm needs to be handled with special code, so discover SecureMode manually
353+
location.append_location(model_constants.SECURE_MODE)
354+
secure_mode = self._find_singleton_name_in_folder(location)
355+
if secure_mode is not None:
356+
location.add_name_token(self._aliases.get_name_token(location), secure_mode)
357+
result[model_constants.SECURE_MODE] = OrderedDict()
358+
self._populate_model_parameters(result[model_constants.SECURE_MODE], location)
359+
location.pop_location()
351360
location.append_location(model_constants.REALM)
352361
result[model_constants.REALM] = OrderedDict()
353362
realms = self._find_names_in_folder(location)

0 commit comments

Comments
 (0)