add interface for IPAM

This commit is contained in:
Michel Oosterhof 2015-09-25 19:55:18 +00:00
parent b2e1dd0fa3
commit 53b07f2803
1 changed files with 15 additions and 0 deletions

View File

@ -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)
"""