[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/server.py
From: |
David Guerizec |
Subject: |
[sshproxy-dev] Changes to sshproxy/SSHproxy/server/server.py |
Date: |
Mon, 26 Sep 2005 05:14:17 -0400 |
Index: sshproxy/SSHproxy/server/server.py
diff -u sshproxy/SSHproxy/server/server.py:1.3
sshproxy/SSHproxy/server/server.py:1.4
--- sshproxy/SSHproxy/server/server.py:1.3 Fri Sep 23 15:35:45 2005
+++ sshproxy/SSHproxy/server/server.py Mon Sep 26 09:14:16 2005
@@ -42,14 +42,14 @@
return paramiko.OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED
def check_auth_password(self, username, password):
- if pwdb.is_allowed(user=username, passwd=password):
+ if pwdb.is_allowed(username=username, password=password):
return paramiko.AUTH_SUCCESSFUL
#if login.login(username=username, password=password):
# return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED
def check_auth_publickey(self, username, key):
- if login.login(username=username, key=key):
+ if pwd.is_allowed(username=username, key=key):
return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED