From e981868246d04053a8f161e12e1fc75d72b290a3 Mon Sep 17 00:00:00 2001 From: Khushboo Vashi Date: Fri, 9 Jul 2021 21:47:34 +0530 Subject: [PATCH] Fixed an issue where the user unable to add server in Kerberos Authentication Mode with Master Password. Fixes #6595 --- web/pgadmin/browser/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/browser/__init__.py b/web/pgadmin/browser/__init__.py index d71a06e3d..60fd9218b 100644 --- a/web/pgadmin/browser/__init__.py +++ b/web/pgadmin/browser/__init__.py @@ -1001,7 +1001,8 @@ def set_master_password(): # Master password is not applicable for server mode # Enable master password if oauth is used - if not config.SERVER_MODE or OAUTH2 in config.AUTHENTICATION_SOURCES\ + if not config.SERVER_MODE or OAUTH2 in config.AUTHENTICATION_SOURCES \ + or KERBEROS in config.AUTHENTICATION_SOURCES \ and config.MASTER_PASSWORD_REQUIRED: # if master pass is set previously if current_user.masterpass_check is not None and \