Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Support OpenVPN Challenge/Response protocol #4

Open
oxr463 opened this issue Oct 8, 2021 · 0 comments
Open

Support OpenVPN Challenge/Response protocol #4

oxr463 opened this issue Oct 8, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@oxr463
Copy link
Contributor

oxr463 commented Oct 8, 2021

pam_aad introduce a function by sending a mail with the device code to the user, because not all apps supporting interactive authentication.

But OpenVPN support interactive authentication, if a plugin would handle the dynamic challenges.

You could read some basic about static challenges (designed for OTPs) at the manual (look for static-challenge here).

In the management interface documentation, the dynamic challenges are described here, too. (Look for Challenge/Response Protocol).

The Challenge Request could be something like:

PIN: 46433 - Enter the code at https://aka.ms/devicelogin. Type "OK" to continue.

If the user respond with an "OK", with plugin could assume that the user does the authentication at MS and look if the verification was successful.

Problem: It looks like this feature isn't documented well since it's designed for enterprise OpenVPN only (OpenVPN Access Server).

Dynamic Challenges can be send to the client by the AUTH_FAILED command including a formatted error message like CRV1:R,E:PG_09HT0rZcjdFd6GnA:bG9uZG9u:Enter Authenticator Code

The management interface documentation documents the format of the error message well.

I don't know if it's possible that a plugin can set the client_reason field that handling the AUTH_FAILED error message.

Related links:

Source: CyberNinjas/openvpn-auth-aad#9

@oxr463 oxr463 added enhancement New feature or request help wanted Extra attention is needed labels Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant