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

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]

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