YubikeyU2F + Ubuntu1604 + VMware

135 views
Skip to first unread message

diogenco...@gmail.com

unread,
Mar 14, 2017, 10:57:40 AM3/14/17
to privacyidea
I'm using privacyIDEA 2.17 installed on a virtual machine (under ESXi 5.5) running Ubuntu 16.04.

The software tokens work perfectly: connecting to a Cisco firewall using AnyConnect and querying the privacy IDEA server using freeRADIUS.

Now, I wanted to try the hardware options. Cornelius has a nice video on YouTube showing how to enroll a U2F USB key
My understanding is the privacyIDEA runs in this demonstration on a physical laptop, i.e. NOT a virtual machine.

Here is my question: how do I accomplish the same with privacyIDEA running virtual?
I believe the problem is passing the U2F key to the VM.

I di two things trying to accomplish this:
- installed the 70-u2f.rules file
- edited the VMX file of the VM adding usb.generic.allowHID = "TRUE" at the end.

I can see the U2F key attached to the host. I can pass it to the VM.
But when trying to enroll the key - default realm, default resolver, /etc/passwd account - I get a popup that says
'NoneType' object has no attribute 'strip' 

Anybody tried this? Made it work? Any pointers.

Thanks.

diogenco...@gmail.com

unread,
Mar 14, 2017, 11:33:49 AM3/14/17
to privacyidea
OK.
After posting I saw the other U2F question posted (and answered) by Darren.

Same problem - error message - and how to fix it.

It does work in my case as well - the error message goes away.

BUT, the system ALWAYS times out, i.e. pressing the key (or re-plugging it) is not detected by the VM.
Hence, the U2F Yubikey does not get enrolled...

Any comments?

Thanks.

Jochen Hein

unread,
Mar 14, 2017, 12:27:50 PM3/14/17
to diogenco...@gmail.com, privacyidea
diogenco...@gmail.com writes:

> I can see the U2F key attached to the host. I can pass it to the VM.

I don't think it's required to pass the token to the server-VM.

> But when trying to enroll the key - default realm, default resolver,
> /etc/passwd account - I get a popup that says
> *'NoneType' object has no attribute 'strip' *

Can you look for the backtrace in /var/log/privacyidea.log? There should
be some hints where to look.

Jochen

--
This space is intentionally left blank.

diogenco...@gmail.com

unread,
Mar 14, 2017, 2:38:07 PM3/14/17
to privacyidea, diogenco...@gmail.com
I don't think it's required to pass the token to the server-VM.

I think it has to be done once, the first time, to get enrolled.
Later it can be un-assigned, re-assigned, etc.
And authentication will be performed by using any USB port on any computer... 
 
Can you look for the backtrace in /var/log/privacyidea.log? There should
be some hints where to look.

That error message is no more, after I followed Darren advice and pointed the URL to the server...

But timeouts don't go away...

Cornelius Kölbel

unread,
Mar 15, 2017, 6:21:20 AM3/15/17
to privacyidea, diogenco...@gmail.com
U2F is supposed to work with your browser.
Thus: Do not connect it to the VM but to your local browser.

Don't use U2F. It will not work with AnyConnect by design.
If you want to use hardware get a yubikey and use HOTP or Yubico Mode.

Kind regards
Cornelius

diogenco...@gmail.com

unread,
Mar 15, 2017, 10:20:36 AM3/15/17
to privacyidea, diogenco...@gmail.com
Thanks, Cornelius.

RE:Enrollment 
I must be missing something... The U2F Yubikey has to be in the list of available tokens on the privacyIDEA server before it can be used.
Are you saying the browser (on the desktop, with the key attached) will pass the required information and add the key to the database?

RE: AnyConnect & hardware keys
Are you saying that U2F - as a protocol - works only with browsers?
Or is it the limitation of the privacyIDEA server implementation of the protocol?

I do have the exact same (by the looks of it) YubiKey shown in your video. Bought at Amazon

Thanks again.

Cornelius Kölbel

unread,
Mar 15, 2017, 12:02:24 PM3/15/17
to privacyidea, diogenco...@gmail.com


Am Mittwoch, 15. März 2017 15:20:36 UTC+1 schrieb diogenco...@gmail.com:
Thanks, Cornelius.

RE:Enrollment 
I must be missing something... The U2F Yubikey has to be in the list of available tokens on the privacyIDEA server before it can be used.
Are you saying the browser (on the desktop, with the key attached) will pass the required information and add the key to the database?
Yes.
 

RE: AnyConnect & hardware keys
Are you saying that U2F - as a protocol - works only with browsers?
Yes. It is designed for the web. I **could** run with other applications. No Standard. Probably not anyconnect!
 
Or is it the limitation of the privacyIDEA server implementation of the protocol?
No limitation of privacyIDEA. 

Kind regards
Cornelius

diogenco...@gmail.com

unread,
Mar 16, 2017, 9:33:23 AM3/16/17
to privacyidea, diogenco...@gmail.com
Thank you very much, Cornelius!

It worked!
No fiddling with the server side, just sitting at the desktop...

Too bad I can't use it with AnyConnect, but TOTP software tokens will do for now.
And will get other Yubikeys to try...

Thanks again.

{Can be closed}
Reply all
Reply to author
Forward
0 new messages