On Monday, 12 June 2017 6:47:33 PM AEST you wrote:
> On 12/06/17 08:13, Steven Haigh wrote:
> > On Monday, 12 June 2017 3:47:24 PM AEST Steven Haigh wrote:
> >> Hi all,
> >> 
> >> I'm trying to get renegotiation working with openvpn 2.4.2 using a
> >> YubiKey.
> >> 
> >> I have had no issues creating a auth-user-pass-verify script to validate
> >> the password provided by the Yubikey and this works well.
> >> 
> >> When renegotiation happens, I notice that the password line in the file
> >> provided (as $ARGV[0]) is the original password and not the auth-token
> >> pushed on the initial connect.
> >> 
> >> My script is then trying to revalidate an OTP - which of course fails and
> >> the connection dies.
> >> 
> >> When an auth-token is pushed to the client, how do I get it back to the
> >> server during the renegotiation?
> >> 
> >> Am I wrong in expecting the token to be in the $password field? Is this a
> >> bug? Configuration issue?
> 
> When the server pushes 'auth-token $VALUE' to the client, the client
> will replace the locally cached password with the token.  But beware,
> there are currently some collision if the client uses --auth-nocache.
> The --auth-nocache tells the client to never cache any passwords, which
> also hits pushed auth-tokens.  Patches are on the devel-ML for review,
> so I hope we'll get this fixed in not too long.

Ok - this sounds promising. I'm currently using the stock epel packages on EL7 
and Fedora packages.

> > Also, for what its worth, if I disable the 'client-connect' script and
> > enable the 'auth-gen-token' option on the server, I get the following
> > error when reneg-sec is hit:
> > 
> > TLS Auth Error: Auth-token verification failed for username '$username'
> > [CN
> > SET]
> 
> I'm the one who implemented the auth-gen-token feature, so I have
> interests in these issues :)   But this sounds even more like a
> --auth-nocache collision.

I did trawl through *many* references with your name tagged, so kind of good 
to know ;)

So the client config is generated via NetworkManager. To validate this, is 
there a way to:
1) Verify it uses auth-nocache
2) Tell it not to?

-- 
Steven Haigh

📧 [email protected]      💻 http://www.crc.id.au
📞 +61 (3) 9001 6090     📱 0412 935 897

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to