From f4395abadea1ea09244293406f7db72dd323b3a5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 5 Oct 2020 16:54:58 -0400 Subject: [PATCH] Deprecate attempts to use default password with SMM This is removed in some level of the product --- confluent_server/confluent/discovery/handlers/smm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/discovery/handlers/smm.py b/confluent_server/confluent/discovery/handlers/smm.py index 552c43dd..0f24fbea 100644 --- a/confluent_server/confluent/discovery/handlers/smm.py +++ b/confluent_server/confluent/discovery/handlers/smm.py @@ -204,7 +204,7 @@ class NodeHandler(bmchandler.NodeHandler): raise Exception('Cannot support default password and setting password rules at same time') if passwd == 'PASSW0RD': # We must avoid hitting the web interface due to forced password change, best effert - self._bmcconfig(nodename) + raise Exception('Using the default password is no longer supported') else: # Switch to full web based configuration, to mitigate risks with the SMM wc = self._webconfigcreds(username, passwd)