1) Added RPM/DEB dependency for Kerberos to the server package.

2) Handle the OSError while importing the gssapi, it fixes the Windows error.

refs #5457
This commit is contained in:
Khushboo Vashi
2021-01-20 18:09:07 +05:30
committed by Akshay Joshi
parent 57a2559f11
commit c71315f8cd
3 changed files with 10 additions and 5 deletions

View File

@@ -35,6 +35,11 @@ except ImportError:
# Instead throw the runtime error, when the server attempts
# to use this authentication method.
KERBEROS_AUTH_AVAILABLE = False
except OSError:
# On Windows, it fails with OSError, when KFW libraries not found.
# Instead throw the runtime error, when the server attempts
# to use this authentication method.
KERBEROS_AUTH_AVAILABLE = False
# Set the Kerberos config file
if config.KRB_KTNAME and config.KRB_KTNAME != '<KRB5_KEYTAB_FILE>':