From b80560f738cd90d68f5ba3ac8587e0990f282e1f Mon Sep 17 00:00:00 2001 From: doktornotor Date: Fri, 4 Sep 2015 16:37:17 +0200 Subject: quagga_ospfd - fix OSPF authentication (resubmit of #1039) Resubmit of #1039 with code style fixes. Reference: - https://forum.pfsense.org/index.php?topic=72343.msg394722#msg394722 --- config/quagga_ospfd/quagga_ospfd.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config/quagga_ospfd') diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc index 0d52654f..34900e76 100644 --- a/config/quagga_ospfd/quagga_ospfd.inc +++ b/config/quagga_ospfd/quagga_ospfd.inc @@ -214,6 +214,16 @@ function quagga_ospfd_install_conf() { } } } + if ($conf['md5password'] && !empty($conf['password']) && !empty($conf['interfacearea'])) { + $conffile .= " area {$conf['interfacearea']} authentication message-digest\n"; + } elseif ($conf['md5password'] && !empty($conf['password']) && empty($conf['interfacearea'])) { + $conffile .= " area 0.0.0.0 authentication message-digest\n"; + } + if ($conf['password'] && empty($conf['md5password']) && !empty($conf['interfacearea'])) { + $conffile .= " area {$conf['interfacearea']} authentication\n"; + } elseif ($conf['password'] && empty($conf['md5password']) && empty($conf['interfacearea'])) { + $conffile .= " area 0.0.0.0 authentication\n"; + } if (!empty($redist)) { $conffile .= $redist; } -- cgit v1.2.3