From 014bfaf70ab82f20a867ad5baf769847c962c2d2 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Mon, 28 Jun 2021 08:50:33 +0200 Subject: [PATCH] chg: [localTools:MISP] Include user_id and reflected it - So that the initiator cerebrate knows which user has to be enabled --- src/Lib/default/local_tool_connectors/MispConnector.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Lib/default/local_tool_connectors/MispConnector.php b/src/Lib/default/local_tool_connectors/MispConnector.php index 1d3457c..19af9dd 100644 --- a/src/Lib/default/local_tool_connectors/MispConnector.php +++ b/src/Lib/default/local_tool_connectors/MispConnector.php @@ -699,8 +699,9 @@ class MispConnector extends CommonConnectorTools $params['sync_user'] = $this->createSyncUser($params); return [ 'email' => $params['sync_user']['email'], + 'user_id' => $params['sync_user']['id'], 'authkey' => $params['sync_user']['authkey'], - 'url' => $params['connection_settings']['url'] + 'url' => $params['connection_settings']['url'], ]; } @@ -721,7 +722,8 @@ class MispConnector extends CommonConnectorTools return [ 'email' => $params['sync_user']['email'], 'authkey' => $params['sync_user']['authkey'], - 'url' => $params['connection_settings']['url'] + 'url' => $params['connection_settings']['url'], + 'reflected_user_id' => $params['remote_tool_data']['user_id'] // request initiator Cerebrate to enable the MISP user ]; }