Re: [Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-04-07 Thread David Sommerseth
On 10/03/2022 12:57, Gert Doering wrote: Without this patch, OpenVPN behaviour if more than one plugin wants to do deferred user/password authentication not well-defined, as there is just one set of auth control files and a single plugin state. This patch changes "key state -> plugin_auth" from

Re: [Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-03-11 Thread Pete Nelson
On Thu, Mar 10, 2022 at 12:18 PM Gert Doering wrote: > The actual plugin calls are no longer done with the "do them all" > function plugin_call() (or plugin_call_ssl()) but plugin.c/plugin.h > is changed to expose the "call one" function plugin_call_item(), and > verify_user_pass_plugin() calls t

Re: [Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-03-10 Thread Pete Nelson
Hi Gert. On Thu, Mar 10, 2022 at 3:13 PM Gert Doering wrote: > Yes, your report triggered this work. I think I misunderstood the > original scenario (I thought it involved two plugins both going > "deferred"), but this patch introduces a "short circuit" approach > to plugin authentication where

Re: [Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-03-10 Thread Gert Doering
Hi, On Thu, Mar 10, 2022 at 01:57:01PM +, Pete Nelson wrote: > One of the behaviors that brought this to light was a user who had an LDAP > (non-deferred) plugin followed by a Duo MFA (deferred) plugin. He noted > that, even if the LDAP call returned failure, the Duo plugin was still > called

Re: [Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-03-10 Thread Pete Nelson
One of the behaviors that brought this to light was a user who had an LDAP (non-deferred) plugin followed by a Duo MFA (deferred) plugin. He noted that, even if the LDAP call returned failure, the Duo plugin was still called. That would generate a push notification to his phone even though the au

[Openvpn-devel] [PATCH] Enable deferred auth for multiple plugins (RFC).

2022-03-10 Thread Gert Doering
Without this patch, OpenVPN behaviour if more than one plugin wants to do deferred user/password authentication not well-defined, as there is just one set of auth control files and a single plugin state. This patch changes "key state -> plugin_auth" from a single struct to an array of MAX_PLUGINS