aboutsummaryrefslogtreecommitdiffstats
path: root/config/quagga_ospfd
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-04 16:37:17 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-04 16:37:17 +0200
commitb80560f738cd90d68f5ba3ac8587e0990f282e1f (patch)
tree1b3c99a1fafe9c5c245c3db6572a135cfb924f7a /config/quagga_ospfd
parent47a5be4670a44aa8931c705a5840be5d9dbd71c3 (diff)
downloadpfsense-packages-b80560f738cd90d68f5ba3ac8587e0990f282e1f.tar.gz
pfsense-packages-b80560f738cd90d68f5ba3ac8587e0990f282e1f.tar.bz2
pfsense-packages-b80560f738cd90d68f5ba3ac8587e0990f282e1f.zip
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
Diffstat (limited to 'config/quagga_ospfd')
-rw-r--r--config/quagga_ospfd/quagga_ospfd.inc10
1 files changed, 10 insertions, 0 deletions
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;
}