Fixed an issue where the user unable to add server in Kerberos Authentication Mode with Master Password. Fixes #6595

This commit is contained in:
Khushboo Vashi 2021-07-09 21:47:34 +05:30 committed by Akshay Joshi
parent 5ee8045916
commit e981868246

View File

@ -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 \