Skip to content
Snippets Groups Projects
Commit 95738d97 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

ppp: introduce "authfail" option which specifies whether pppd should attempt...

ppp: introduce "authfail" option which specifies whether pppd should attempt to re-authenticate after a failed PAP/CHAP auth

SVN-Revision: 33291
parent c965569d
No related branches found
No related tags found
Loading
......@@ -19,6 +19,7 @@ ppp_generic_init_config() {
proto_config_add_boolean "defaultroute"
proto_config_add_boolean "peerdns"
proto_config_add_boolean "ipv6"
proto_config_add_boolean "authfail"
proto_config_add_int "mtu"
}
......@@ -70,7 +71,10 @@ ppp_generic_teardown() {
case "$ERROR" in
11|19)
proto_notify_error "$interface" AUTH_FAILED
proto_block_restart "$interface"
json_get_var authfail authfail
if [ "${authfail:-0}" -gt 0 ]; then
proto_block_restart "$interface"
fi
;;
2)
proto_notify_error "$interface" INVALID_OPTIONS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment