From 53b07f280323421d16c901941fbb3b55f1c4327b Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Fri, 25 Sep 2015 19:55:18 +0000 Subject: [PATCH] add interface for IPAM --- cowrie/core/credentials.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cowrie/core/credentials.py b/cowrie/core/credentials.py index 130c11bc..8cae02e3 100644 --- a/cowrie/core/credentials.py +++ b/cowrie/core/credentials.py @@ -53,6 +53,21 @@ class IUsernamePasswordIP(IUsernamePassword): @ivar ip: The source ip address associated with these credentials. """ +class IPluggableAuthenticationModules(ICredentials): + """ + Twisted removed IPAM in 15, adding in Cowrie now + """ + +class PluggableAuthenticationModules: + implements(IPluggableAuthenticationModules) + """ + Twisted removed IPAM in 15, adding in Cowrie now + """ + + def __init__(self, username, pamConversion): + self.username = username + self.pamConversion = pamConversion + class Username: implements(IUsername) """