summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb1galez <b1galez@fbcee277-3294-991b-8290-beb7048acdd6>2010-12-03 11:10:05 +0000
committerb1galez <b1galez@fbcee277-3294-991b-8290-beb7048acdd6>2010-12-03 11:10:05 +0000
commitaab1fe3a8e1ed963392e0569ccf32fe8931bc564 (patch)
tree0fa97c81cea5bb493a29cd88218fdb4edca7b5b1
parentRemoved old keyconf.py. (diff)
downloadyubico-yubiserve-aab1fe3a8e1ed963392e0569ccf32fe8931bc564.tar.gz
yubico-yubiserve-aab1fe3a8e1ed963392e0569ccf32fe8931bc564.tar.bz2
yubico-yubiserve-aab1fe3a8e1ed963392e0569ccf32fe8931bc564.zip
git-svn-id: http://yubico-yubiserve.googlecode.com/svn/trunk@17 fbcee277-3294-991b-8290-beb7048acdd6
-rwxr-xr-xyubiserve.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/yubiserve.py b/yubiserve.py
index 4260786..a18d6dd 100755
--- a/yubiserve.py
+++ b/yubiserve.py
@@ -90,7 +90,6 @@ class OTPValidation():
cur = con.cursor()
cur.execute('SELECT aeskey, internalname FROM yubikeys WHERE publicname = "' + self.userid + '" AND active = "true"')
if (cur.rowcount != 1):
- print "1"
self.validationResult = self.status['BAD_OTP']
con.close()
return self.validationResult
@@ -98,12 +97,10 @@ class OTPValidation():
self.plaintext = self.aes128ecb_decrypt(self.aeskey, self.token)
uid = self.plaintext[:12]
if (self.internalname != uid):
- print "2"
self.validationResult = self.status['BAD_OTP']
con.close()
return self.validationResult
if not (self.CRC() or self.isCRCValid()):
- print "3"
self.validationResult = self.status['BAD_OTP']
con.close()
return self.validationResult
@@ -111,7 +108,6 @@ class OTPValidation():
self.timestamp = self.hexdec(self.plaintext[20:22] + self.plaintext[18:20] + self.plaintext[16:18])
cur.execute('SELECT counter, time FROM yubikeys WHERE publicname = "' + self.userid + '" AND active = "true"')
if (cur.rowcount != 1):
- print "4"
self.validationResult = self.status['BAD_OTP']
con.close()
return self.validationResult
@@ -125,7 +121,6 @@ class OTPValidation():
con.close()
return self.validationResult
except IndexError:
- print "5"
self.validationResult = self.status['BAD_OTP']
con.close()
return self.validationResult