summaryrefslogtreecommitdiffstats
path: root/modules/authYubiKey/lib/Auth/Source/YubiKey.php
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-01-15 14:01:01 +0000
committerSimon Josefsson <simon@josefsson.org>2009-01-15 14:01:01 +0000
commitae6941953e185edf944c54900354f20e1a0179e3 (patch)
tree223609b229d73264e1ceeb2d712825fa341262a8 /modules/authYubiKey/lib/Auth/Source/YubiKey.php
parent9716a3a48160ca62afcaf77625e218878122e22a (diff)
downloadsimplesamlphp-ae6941953e185edf944c54900354f20e1a0179e3.zip
simplesamlphp-ae6941953e185edf944c54900354f20e1a0179e3.tar.gz
simplesamlphp-ae6941953e185edf944c54900354f20e1a0179e3.tar.bz2
Change license to LGPLv3. Improve logging messages.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1152 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'modules/authYubiKey/lib/Auth/Source/YubiKey.php')
-rw-r--r--modules/authYubiKey/lib/Auth/Source/YubiKey.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/authYubiKey/lib/Auth/Source/YubiKey.php b/modules/authYubiKey/lib/Auth/Source/YubiKey.php
index e6be76d..71b8a3c 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;
}