Skip to content
Snippets Groups Projects
Commit ae694195 authored by Simon Josefsson's avatar Simon Josefsson
Browse files

Change license to LGPLv3. Improve logging messages.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1152 44740490-163a-0410-bde0-09ae8108e29a
parent 9716a3a4
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* simpleSAMLphp is free software; you can redistribute it and/or * simpleSAMLphp is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * 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. * the License, or (at your option) any later version.
* *
* simpleSAMLphp is distributed in the hope that it will be useful, * 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 ...@@ -98,16 +98,12 @@ class sspmod_authYubiKey_Auth_Source_YubiKey extends sspmod_core_Auth_UserPassBa
$attributes = array('uid' => array($username), 'otp' => array($password)); $attributes = array('uid' => array($username), 'otp' => array($password));
} catch (Exception $e) { } catch (Exception $e) {
SimpleSAML_Logger::info('YubiKey:' . $this->authId . SimpleSAML_Logger::info('YubiKey:' . $this->authId . ': Validation error (user ' . $username . ' otp ' . $password . '), debug output: ' . $yubi->getLastResponse());
': Validation error, debug output from server: ' . $yubi->getLastResponse());
throw new SimpleSAML_Error_Error('WRONGUSERPASS', $e); throw new SimpleSAML_Error_Error('WRONGUSERPASS', $e);
} }
SimpleSAML_Logger::debug('YubiKey:' . $this->authId . SimpleSAML_Logger::info('YubiKey:' . $this->authId . ': YubiKey otp ' . $password . ' for user ' . $username . ' validated successfully: ' . $yubi->getLastResponse());
': YubiKey OTP validated successfully: ' . $yubi->getLastResponse());
SimpleSAML_Logger::info('YubiKey:' . $this->authId .
': Attributes: ' . implode(',', array_keys($attributes)));
return $attributes; return $attributes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment