From 2e9a3ac1d7ed968cf9f06c1cc131d2cfc618b5bb Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Tue, 9 Dec 2014 13:25:31 +0400 Subject: [PATCH] disable password authentication method. This leaves keyboard-interactive available --- kippo/core/auth.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kippo/core/auth.py b/kippo/core/auth.py index dacafd4d..4e50fdc0 100644 --- a/kippo/core/auth.py +++ b/kippo/core/auth.py @@ -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'):