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.

> 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.


-- 
kind regards,

David Sommerseth
OpenVPN Technologies, Inc


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
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