diff options
author | doktornotor <notordoktor@gmail.com> | 2015-09-04 16:37:17 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-09-04 16:37:17 +0200 |
commit | b80560f738cd90d68f5ba3ac8587e0990f282e1f (patch) | |
tree | 1b3c99a1fafe9c5c245c3db6572a135cfb924f7a /config/quagga_ospfd | |
parent | 47a5be4670a44aa8931c705a5840be5d9dbd71c3 (diff) | |
download | pfsense-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.inc | 10 |
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; } |