<div dir="ltr">Oh... I figure out... <div>I fill Key ID's and now works as a charm!</div><div>Just a note: this is not in the how to... </div><div><br></div><div>Thanks</div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-15 10:00 GMT-03:00 Gilberto Nunes <span dir="ltr"><<a href="mailto:gilberto.nunes32@gmail.com" target="_blank">gilberto.nunes32@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Or, you meant do it in Key ID's field on Users configuration??<div class="gmail_extra"><br><div class="gmail_quote">2014-09-15 9:59 GMT-03:00 Gilberto Nunes <span dir="ltr"><<a href="mailto:gilberto.nunes32@gmail.com" target="_blank">gilberto.nunes32@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Like this?<div><br></div><div><p style="margin:0.4em 0px 0.5em;line-height:19.200000762939453px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px">2. Add a unique secret (password) to each user - this secret has also to be added to your OATH app on the smartphone of each user. To generate a secret, you can run the following command on your Proxmox VE host:</p><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);background-color:rgb(249,249,249);line-height:1.3em;font-size:12.800000190734863px"> oathkeygen
</pre><p style="margin:0.4em 0px 0.5em;line-height:19.200000762939453px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px">If a user has more secrets, just add all your secrets separated with spaces.</p><p style="margin:0.4em 0px 0.5em;line-height:19.200000762939453px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px"><br></p><p style="margin:0.4em 0px 0.5em;line-height:19.200000762939453px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.800000190734863px">Yes... I do it with oathkeygen... oauthjeygen <user>, oauthkeygen <user>@pve... no effect...</p></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-15 9:54 GMT-03:00 Dietmar Maurer <span dir="ltr"><<a href="mailto:dietmar@proxmox.com" target="_blank">dietmar@proxmox.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE-AT" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You added the secret key to the user?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> pve-user [mailto:<a href="mailto:pve-user-bounces@pve.proxmox.com" target="_blank">pve-user-bounces@pve.proxmox.com</a>]
<b>On Behalf Of </b>Gilberto Nunes<br>
<b>Sent:</b> Montag, 15. September 2014 14:27<br>
<b>To:</b> <a href="mailto:pve-user@pve.proxmox.com" target="_blank">pve-user@pve.proxmox.com</a><br>
<b>Subject:</b> Re: [PVE-User] Two-factor auth<u></u><u></u></span></p>
</div>
</div><span>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">I get this error on syslog:<br>
<br>
<span style="font-size:8.5pt;font-family:"Tahoma","sans-serif";color:black">Sep 15 09:25:16 pve01 pvedaemon[3138]: WARNING: Use of uninitialized value $keys in pattern match (m//) at /usr/share/perl5/PVE/AccessControl.pm line 1235.<br>
Sep 15 09:25:16 pve01 pvedaemon[3138]: authentication failure; rhost=192.168.1.101 user=gilberto@pve msg=oath auth failed</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</span></div>
</div>
</div>
</blockquote></div></div></div><br><br clear="all"><div><br></div><div dir="ltr"><div><div></div></div></div>
</div></div>
</blockquote></div></div></div><br><div dir="ltr"><div><br></div><div><div></div></div></div>
</div></div>
</blockquote></div><div dir="ltr"><p style="margin:0px"><br></p></div>
</div></div>