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 \
