From ae6941953e185edf944c54900354f20e1a0179e3 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Thu, 15 Jan 2009 14:01:01 +0000
Subject: [PATCH] Change license to LGPLv3. Improve logging messages.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1152 44740490-163a-0410-bde0-09ae8108e29a
---
modules/authYubiKey/lib/Auth/Source/YubiKey.php | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/modules/authYubiKey/lib/Auth/Source/YubiKey.php b/modules/authYubiKey/lib/Auth/Source/YubiKey.php
index e6be76d4c..71b8a3cdf 100644
--- a/modules/authYubiKey/lib/Auth/Source/YubiKey.php
+++ b/modules/authYubiKey/lib/Auth/Source/YubiKey.php
@@ -8,7 +8,7 @@
*
* simpleSAMLphp is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
+ * as published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* simpleSAMLphp is distributed in the hope that it will be useful,
@@ -98,16 +98,12 @@ class sspmod_authYubiKey_Auth_Source_YubiKey extends sspmod_core_Auth_UserPassBa
$attributes = array('uid' => array($username), 'otp' => array($password));
} catch (Exception $e) {
- SimpleSAML_Logger::info('YubiKey:' . $this->authId .
- ': Validation error, debug output from server: ' . $yubi->getLastResponse());
+ SimpleSAML_Logger::info('YubiKey:' . $this->authId . ': Validation error (user ' . $username . ' otp ' . $password . '), debug output: ' . $yubi->getLastResponse());
throw new SimpleSAML_Error_Error('WRONGUSERPASS', $e);
}
- SimpleSAML_Logger::debug('YubiKey:' . $this->authId .
- ': YubiKey OTP validated successfully: ' . $yubi->getLastResponse());
- SimpleSAML_Logger::info('YubiKey:' . $this->authId .
- ': Attributes: ' . implode(',', array_keys($attributes)));
+ SimpleSAML_Logger::info('YubiKey:' . $this->authId . ': YubiKey otp ' . $password . ' for user ' . $username . ' validated successfully: ' . $yubi->getLastResponse());
return $attributes;
}
--
GitLab