<div dir="ltr">Hi David,<div><br></div><div>I can confirm that using FreeOTP resolves the problem for me. </div><div><br></div><div>What a frustration, I am surprised that Google wouldn't add support beyond SHA1 - perhaps a notice on the OTP documentation page would help others in this situation.</div><div><br></div><div>Thank you so much for your assistance and links to explain the situation. I hope to pay back the favour in due course.</div><div><br></div><div>Best Regards,</div><div><br></div><div>Callum</div><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 30, 2016 at 1:11 PM David Kupka <<a href="mailto:dkupka@redhat.com">dkupka@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 30/11/16 10:13, David Kupka wrote:<br class="gmail_msg">
> On 29/11/16 12:57, Callum Guy wrote:<br class="gmail_msg">
>> Hi Alexander,<br class="gmail_msg">
>><br class="gmail_msg">
>> I can confirm that I am using version 4.2.0.<br class="gmail_msg">
>><br class="gmail_msg">
>> The bug link provided mentions that it caused GA to fail to scan the<br class="gmail_msg">
>> codes.<br class="gmail_msg">
>> In my situation it is FreeIPA (or related service) which appears to<br class="gmail_msg">
>> fail to<br class="gmail_msg">
>> validate codes generated, meaning that only OTP codes generated using<br class="gmail_msg">
>> sha1<br class="gmail_msg">
>> are validated and accepted.<br class="gmail_msg">
>><br class="gmail_msg">
>> Just for clarity I can confirm that I have only tested OTP codes<br class="gmail_msg">
>> generated<br class="gmail_msg">
>> and configured via the FreeIPA web interface. I will check the command<br class="gmail_msg">
>> line<br class="gmail_msg">
>> generation and let you know if this makes a difference.<br class="gmail_msg">
>><br class="gmail_msg">
>> Best Regards,<br class="gmail_msg">
>><br class="gmail_msg">
>> Callum<br class="gmail_msg">
><br class="gmail_msg">
> Hello Callum,<br class="gmail_msg">
> I've tried it with FreeIPA 4.3.2 (stock Fedora 24) and FreeOTP. I've<br class="gmail_msg">
> generated 3 OTPs (with sha256, sha384 and sha512) for tuser in the WebUI<br class="gmail_msg">
> and was then able to login into WebUI without problems.<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> $ ipa otptoken-find --owner tuser --all<br class="gmail_msg">
> --------------------<br class="gmail_msg">
> 3 OTP tokens matched<br class="gmail_msg">
> --------------------<br class="gmail_msg">
>   dn:<br class="gmail_msg">
> ipatokenuniqueid=3c899764-7abf-459d-bf2b-7ba4af978a8b,cn=otp,dc=dom-058-216,dc=example,dc=com<br class="gmail_msg">
><br class="gmail_msg">
>   Unique ID: 3c899764-7abf-459d-bf2b-7ba4af978a8b<br class="gmail_msg">
>   Type: TOTP<br class="gmail_msg">
>   Owner: tuser<br class="gmail_msg">
>   Key: U5XDN0BYc9KbvG1iYuVPuVHB448=<br class="gmail_msg">
>   Algorithm: sha256<br class="gmail_msg">
>   Digits: 6<br class="gmail_msg">
>   Clock offset: 0<br class="gmail_msg">
>   Clock interval: 30<br class="gmail_msg">
>   ipatokentotpwatermark: 49349880<br class="gmail_msg">
>   objectclass: top, ipatokentotp, ipatoken<br class="gmail_msg">
><br class="gmail_msg">
>   dn:<br class="gmail_msg">
> ipatokenuniqueid=40ad189b-7b7c-44b9-8450-b3eb78057ef6,cn=otp,dc=dom-058-216,dc=example,dc=com<br class="gmail_msg">
><br class="gmail_msg">
>   Unique ID: 40ad189b-7b7c-44b9-8450-b3eb78057ef6<br class="gmail_msg">
>   Type: TOTP<br class="gmail_msg">
>   Owner: tuser<br class="gmail_msg">
>   Key: C79y2W+I0z429eRzsRP7qdpROaI=<br class="gmail_msg">
>   Algorithm: sha512<br class="gmail_msg">
>   Digits: 6<br class="gmail_msg">
>   Clock offset: 0<br class="gmail_msg">
>   Clock interval: 30<br class="gmail_msg">
>   ipatokentotpwatermark: 49349882<br class="gmail_msg">
>   objectclass: top, ipatokentotp, ipatoken<br class="gmail_msg">
><br class="gmail_msg">
>   dn:<br class="gmail_msg">
> ipatokenuniqueid=baf6d329-61ad-46f1-beca-6ddb55ba9bb4,cn=otp,dc=dom-058-216,dc=example,dc=com<br class="gmail_msg">
><br class="gmail_msg">
>   Unique ID: baf6d329-61ad-46f1-beca-6ddb55ba9bb4<br class="gmail_msg">
>   Type: TOTP<br class="gmail_msg">
>   Owner: tuser<br class="gmail_msg">
>   Key: 2hxrsJjQ6e+3qzVPZremtsB/NCg=<br class="gmail_msg">
>   Algorithm: sha384<br class="gmail_msg">
>   Digits: 6<br class="gmail_msg">
>   Clock offset: 0<br class="gmail_msg">
>   Clock interval: 30<br class="gmail_msg">
>   ipatokentotpwatermark: 49349881<br class="gmail_msg">
>   objectclass: top, ipatokentotp, ipatoken<br class="gmail_msg">
<br class="gmail_msg">
I've tried with Google Authenicator too and was unable to login.<br class="gmail_msg">
<br class="gmail_msg">
Alexander found issue [1] asking for SHA256 support. From comment on the<br class="gmail_msg">
issue it appear that SHA1 is the only supported hash.<br class="gmail_msg">
<br class="gmail_msg">
I compared codes generated by oathtool [2] and find out that Google<br class="gmail_msg">
Authenticator just ignores the information about used hash function and<br class="gmail_msg">
uses SHA1 without any error or warning.<br class="gmail_msg">
<br class="gmail_msg">
So I can only recommend switching to FreeOTP or returning to SHA-1 hash<br class="gmail_msg">
function.<br class="gmail_msg">
<br class="gmail_msg">
[1] <a href="https://github.com/google/google-authenticator-libpam/issues/11" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/google/google-authenticator-libpam/issues/11</a><br class="gmail_msg">
[2] <a href="http://www.nongnu.org/oath-toolkit/oathtool.1.html" rel="noreferrer" class="gmail_msg" target="_blank">http://www.nongnu.org/oath-toolkit/oathtool.1.html</a><br class="gmail_msg">
<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
>><br class="gmail_msg">
>><br class="gmail_msg">
>> On Tue, Nov 29, 2016 at 11:51 AM Alexander Bokovoy <<a href="mailto:abokovoy@redhat.com" class="gmail_msg" target="_blank">abokovoy@redhat.com</a>><br class="gmail_msg">
>> wrote:<br class="gmail_msg">
>><br class="gmail_msg">
>>> On ti, 29 marras 2016, Callum Guy wrote:<br class="gmail_msg">
>>>> Hi Petr,<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> Thanks for coming back to me on this.<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> I have only tried using Google Authenticator. The generated QR code<br class="gmail_msg">
>>>> successfully scans and codes are then generated on the GA device as<br class="gmail_msg">
>>> normal.<br class="gmail_msg">
>>>> The problem is that the codes simply do not work.<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> My current thinking is that the service which interprets the codes<br class="gmail_msg">
>>>> server-side is not configured to use the same algorithm meaning that<br class="gmail_msg">
>>>> it is<br class="gmail_msg">
>>>> trying to validate sha256/sha512 (both tested and not functional for<br class="gmail_msg">
>>>> me)<br class="gmail_msg">
>>>> etc codes against codes perhaps generated with sha1 (the only algorithm<br class="gmail_msg">
>>>> that appears to work).<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> I apologise in advance for my naive interpretation of the situation,<br class="gmail_msg">
>>>> this<br class="gmail_msg">
>>>> really isn't an area where i have experience. I'd love to understand<br class="gmail_msg">
>>>> whats<br class="gmail_msg">
>>>> going on however I can't find what i need in the OTP documentation.<br class="gmail_msg">
>>> Which IPA version we are talking about? There was a case when the URI<br class="gmail_msg">
>>> generated by 'ipa otptoken-add' was using a wrong case in the algorithm<br class="gmail_msg">
>>> value and this was breaking Google Authenticator.<br class="gmail_msg">
>>><br class="gmail_msg">
>>> <a href="https://fedorahosted.org/freeipa/ticket/5047" rel="noreferrer" class="gmail_msg" target="_blank">https://fedorahosted.org/freeipa/ticket/5047</a><br class="gmail_msg">
>>><br class="gmail_msg">
>>> This bug was fixed since 4.1.5 release.<br class="gmail_msg">
>>><br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> Best Regards,<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> Callum<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> On Tue, Nov 29, 2016 at 11:10 AM Petr Vobornik <<a href="mailto:pvoborni@redhat.com" class="gmail_msg" target="_blank">pvoborni@redhat.com</a>><br class="gmail_msg">
>>> wrote:<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>>> On 11/28/2016 01:03 PM, Callum Guy wrote:<br class="gmail_msg">
>>>>>> Hi All,<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>>> I wanted to ask a quick question - perhaps a more experienced user<br class="gmail_msg">
>>> will<br class="gmail_msg">
>>>>> be able<br class="gmail_msg">
>>>>>> to help or point me to the correct documentation.<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>>> Basically we have implemented password+OTP type authentication which<br class="gmail_msg">
>>>>> works great.<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>>> When adding a OTP code using the admin login you can choose an<br class="gmail_msg">
>>>>> algorithm. For us<br class="gmail_msg">
>>>>>> the generated codes only work properly if the weakest sha1 algorithm<br class="gmail_msg">
>>> is<br class="gmail_msg">
>>>>> chosen/<br class="gmail_msg">
>>>>>> To be clear the code generation works fine but the codes are not<br class="gmail_msg">
>>>>>> valid<br class="gmail_msg">
>>>>> when<br class="gmail_msg">
>>>>>> logging in. Is there a related setting we must change?<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>>> Thanks,<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>>> Callum<br class="gmail_msg">
>>>>>><br class="gmail_msg">
>>>>><br class="gmail_msg">
>>>>> What type of otp token do you use? Does it work with some different?<br class="gmail_msg">
>>>>> E.g. FreeOTP vs Google Authenticator ...<br class="gmail_msg">
>>>>><br class="gmail_msg">
>>>>><br class="gmail_msg">
>>>>> --<br class="gmail_msg">
>>>>> Petr Vobornik<br class="gmail_msg">
>>>>><br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> --<br class="gmail_msg">
>>>><br class="gmail_msg">
>>>><br class="gmail_msg">
>>>><br class="gmail_msg">
>>>> *0333 332 0000  |  <a href="http://www.x-on.co.uk" rel="noreferrer" class="gmail_msg" target="_blank">www.x-on.co.uk</a> <<a href="http://www.x-on.co.uk" rel="noreferrer" class="gmail_msg" target="_blank">http://www.x-on.co.uk</a>>  |   **<br class="gmail_msg">
>>>> <<a href="https://twitter.com/xonuk" rel="noreferrer" class="gmail_msg" target="_blank">https://twitter.com/xonuk</a>><br class="gmail_msg">
>>>> <<a href="http://www.linkedin.com/company/x-on/products" rel="noreferrer" class="gmail_msg" target="_blank">http://www.linkedin.com/company/x-on/products</a>><br class="gmail_msg">
>>>> <<a href="https://www.facebook.com/XonTel" rel="noreferrer" class="gmail_msg" target="_blank">https://www.facebook.com/XonTel</a>> *<br class="gmail_msg">
>>>> X-on is a trading name of Storacall Technology Ltd a limited company<br class="gmail_msg">
>>>> registered in England and Wales.<br class="gmail_msg">
>>>> Registered Office : Avaland House, 110 London Road, Apsley, Hemel<br class="gmail_msg">
>>>> Hempstead, Herts, HP3 9SD. Company Registration No. 2578478.<br class="gmail_msg">
>>>> The information in this e-mail is confidential and for use by the<br class="gmail_msg">
>>>> addressee(s) only. If you are not the intended recipient, please notify<br class="gmail_msg">
>>>> X-on immediately on <a href="tel:+44%20333%20332%200000" value="+443333320000" class="gmail_msg" target="_blank">+44(0)333 332 0000</a> <+44%20333%20332%200000> and<br class="gmail_msg">
>>> delete the<br class="gmail_msg">
>>>> message from your computer. If you are not a named addressee you<br class="gmail_msg">
>>>> must not<br class="gmail_msg">
>>>> use, disclose, disseminate, distribute, copy, print or reply to this<br class="gmail_msg">
>>> email. Views<br class="gmail_msg">
>>>> or opinions expressed by an individual<br class="gmail_msg">
>>>> within this email may not necessarily reflect the views of X-on or its<br class="gmail_msg">
>>>> associated companies. Although X-on routinely screens for viruses,<br class="gmail_msg">
>>>> addressees should scan this email and any attachments<br class="gmail_msg">
>>>> for viruses. X-on makes no representation or warranty as to the<br class="gmail_msg">
>>>> absence of<br class="gmail_msg">
>>>> viruses in this email or any attachments.<br class="gmail_msg">
>>>><br class="gmail_msg">
>>><br class="gmail_msg">
>>>> --<br class="gmail_msg">
>>>> Manage your subscription for the Freeipa-users mailing list:<br class="gmail_msg">
>>>> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" rel="noreferrer" class="gmail_msg" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br class="gmail_msg">
>>>> Go to <a href="http://freeipa.org" rel="noreferrer" class="gmail_msg" target="_blank">http://freeipa.org</a> for more info on the project<br class="gmail_msg">
>>><br class="gmail_msg">
>>><br class="gmail_msg">
>>> --<br class="gmail_msg">
>>> / Alexander Bokovoy<br class="gmail_msg">
>>><br class="gmail_msg">
>><br class="gmail_msg">
>><br class="gmail_msg">
>><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
David Kupka<br class="gmail_msg">
</blockquote></div></div></div>

<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><img src="http://www.x-on.co.uk/email/footer/banner-x-on.jpg"><br><p><font size="4"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><b><sup><font face="Verdana">0333 332 0000  |  <a href="http://www.x-on.co.uk" target="_blank">www.x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font size="4"><b><sub><sup><font face="Verdana"><a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a>  <a href="http://www.linkedin.com/company/x-on/products" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a>  <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font>

























<span style="font-size:6.0pt;font-family:Verdana;color:black"><br>X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>





<p><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p>