@@ -43,8 +43,9 @@ class DefaultAuthenticatorHelper(object):
43
43
"""
44
44
_class_name = 'DefaultAuthenticatorHelper'
45
45
46
- def __init__ (self , model_context , exception_type ):
46
+ def __init__ (self , model_context , aliases , exception_type ):
47
47
self ._model_context = model_context
48
+ self ._aliases = aliases
48
49
self ._exception_type = exception_type
49
50
self ._logger = PlatformLogger ('wlsdeploy.tool.util' )
50
51
self ._weblogic_helper = WebLogicHelper (self ._logger )
@@ -135,6 +136,7 @@ def _build_user_mapping_hash(self, user_mapping_section, name):
135
136
hash_entry [HASH_DESCRIPTION ] = description
136
137
groups = dictionary_utils .get_element (group_attributes , GROUP_MEMBER_OF )
137
138
password = self ._get_required_attribute (user_mapping_section , PASSWORD , USER , name )
139
+ password = self ._aliases .decrypt_password (password )
138
140
password_encoded = self ._encode_password (name , password )
139
141
hash_entry [HASH_USER_PASSWORD ] = password_encoded
140
142
group_list = []
@@ -177,6 +179,7 @@ def _get_required_attribute(self, dictionary, name, mapping_type, mapping_name):
177
179
_method_name = '_get_required_attribute'
178
180
179
181
result = dictionary_utils .get_element (dictionary , name )
182
+
180
183
if result is None :
181
184
pwe = exception_helper .create_exception (self ._exception_type , '-01791' , name , mapping_type ,
182
185
mapping_name )
0 commit comments