|
 o Schiffel - 2013-05-05 11:35:38
Hallo,
wir haben von SmartDisplayer den Hardwaretoken t1020. Deine PHP Class und der Token funktioniert einwandfrei.
Wir haben zusätzlich noch einen t3020, der funktioniert leider mit der PHP Class nicht. Bevor mit dieser Karte ein Token generiert wird, muss ein PIN eingegeben werden.
Wo muss der PIN in der PHP Class berücksichtigt werden?
$multiotp->SetUserPin("1234");
$multiotp->SetUserPrefixPin("1234");
Beides klappt hier leider nicht. Freue mich daher auf deine Antwort.
Gruß
 o Schiffel - 2013-05-05 15:01:42 - In reply to message 1 from o Schiffel
Ich habe den Test auch mit http://motp.sourceforge.net/motp_js.html noch einmal durchgeführt. Leider auch erfolglos!
Erst wenn ich den Quellcode anpasse, funktioniert der Test mit der Internetseite. Der Hardwaretoken t3020 klappt weiterhin nicht.
$otime = floor($now_epoch / 10) + ($interval / 60);
$grace = 3 * 6; // grace period in 10s of seconds (default: ±18)
for ($i=$otime-$grace; $i<=$otime+$grace; $i++) {
$md5 = substr( md5( $i . $seed . $pin ), 0, 6);
echo var_dump(hexdec(md5( $i . $seed . $pin )),true)."<br>";
if ($input_to_check == $md5) {
return 0;
}
}
return 99;
Ideen?
 André Liechti - 2013-06-14 17:03:01 - In reply to message 2 from o Schiffel
Hello,
Can you send me more information about tis token ?
You can also download the last beta version of multiOTP on www.multiotp.net (on the left side).
Regards,
André
 o Schiffel - 2013-06-15 07:08:51 - In reply to message 3 from André Liechti
 André Liechti - 2013-07-09 18:00:10 - In reply to message 4 from o Schiffel
I'm currently looking with SmartDisplayer on ho they have implemented the protocol.
$multiotp->SetUserPin("1234"); will be a good idea, but do not put the prefix pin option ($multiotp->SetUserPrefixPin("1234")), because this last one is only to say that the user will TYPE "pin + token" instead of token only.
Be careful, OATH is not implementing mOTP, but TOTP for time based algorithm.
Including a pin in the protocol is not in the RFC.
Regards,
Andre
 André Liechti - 2013-07-15 06:19:22 - In reply to message 4 from o Schiffel
Hello,
The support of SmartDisplayer will know the name of your company before providing me support !
Regards,
Andre
|