diff options
Diffstat (limited to 'vpn/plugins')
-rw-r--r-- | vpn/plugins/l2tp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c index e0b2b04f..0a7ebf11 100644 --- a/vpn/plugins/l2tp.c +++ b/vpn/plugins/l2tp.c @@ -174,8 +174,14 @@ static int l2tp_notify(DBusMessage *msg, struct vpn_provider *provider) return VPN_STATE_FAILURE; } - if (strcmp(reason, "auth failed") == 0) + if (strcmp(reason, "auth failed") == 0) { + DBG("authentication failure"); + + vpn_provider_set_string(provider, "L2TP.User", NULL); + vpn_provider_set_string(provider, "L2TP.Password", NULL); + return VPN_STATE_AUTH_FAILURE; + } if (strcmp(reason, "connect")) return VPN_STATE_DISCONNECT; |