Ensure that password exec command is included in exported server data json. #6792

This commit is contained in:
Yogesh Mahajan 2024-01-22 00:08:34 -08:00 committed by GitHub
parent e80e82cd7f
commit 4fe47b8e92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -492,7 +492,8 @@ def dump_database_servers(output_file, selected_servers,
server.connection_params)
# if desktop mode
if not current_app.config['SERVER_MODE']:
if not current_app.config['SERVER_MODE'] or \
current_app.config['ENABLE_SERVER_PASS_EXEC_CMD']:
add_value(attr_dict, "PasswordExecCommand",
server.passexec_cmd)
add_value(attr_dict, "PasswordExecExpiration",