disable password authentication method. This leaves keyboard-interactive available

This commit is contained in:
Michel Oosterhof 2014-12-09 13:25:31 +04:00
parent 106af55c98
commit 2e9a3ac1d7
1 changed files with 7 additions and 2 deletions

View File

@ -118,9 +118,14 @@ class HoneypotPublicKeyChecker:
@implementer(checkers.ICredentialsChecker)
class HoneypotPasswordChecker:
"""
Checker that accepts keyboard-interactive
"""
credentialInterfaces = (credentials.IUsernamePassword,
credentials.IPluggableAuthenticationModules)
# credentialInterfaces = (credentials.IUsernamePassword,
# credentials.IPluggableAuthenticationModules)
credentialInterfaces = (credentials.IPluggableAuthenticationModules,)
def requestAvatarId(self, credentials):
if hasattr(credentials, 'password'):