diff --git a/freeradius-Improve-ip-v4-v6-addr-documentation.patch b/freeradius-Improve-ip-v4-v6-addr-documentation.patch new file mode 100644 index 0000000..86ec3dc --- /dev/null +++ b/freeradius-Improve-ip-v4-v6-addr-documentation.patch @@ -0,0 +1,71 @@ +From be6f4e52a984bfc10ca3cc79bf812223447802ab Mon Sep 17 00:00:00 2001 +From: "Alan T. DeKok" +Date: Wed, 22 Feb 2017 10:48:51 -0500 +Subject: [PATCH] Improve ip/v4/v6/addr documentation + +Contains the following commits. + +better documentation for ipaddr & friends. Fixes #1921 + +(cherry picked from commit 99e08b85b33e27eb0e0f4e870c50caf8fff6d84f) + +typo + +(cherry picked from commit 81fe1079edcb94f5b810d894ea255cef5d84985d) +--- + raddb/sites-available/default | 39 +++++++++++++++++++++++++++++---------- + 1 file changed, 29 insertions(+), 10 deletions(-) + +diff --git a/raddb/sites-available/default b/raddb/sites-available/default +index 083407596..e47f19192 100644 +--- a/raddb/sites-available/default ++++ b/raddb/sites-available/default +@@ -85,16 +85,35 @@ listen { + # proxy listeners are automatically created. + + # ipaddr/ipv4addr/ipv6addr - IP address on which to listen. +- # Out of several options the first one will be used. +- # +- # Allowed values are: +- # IPv4 address (e.g. 1.2.3.4, for ipv4addr/ipaddr) +- # IPv6 address (e.g. 2001:db8::1, for ipv6addr/ipaddr) +- # hostname (radius.example.com, +- # A record for ipv4addr, +- # AAAA record for ipv6addr, +- # A or AAAA record for ipaddr) +- # wildcard (*) ++ # If multiple ones are listed, only the first one will ++ # be used, and the others will be ignored. ++ # ++ # The configuration options accept the following syntax: ++ # ++ # ipv4addr - IPv4 address (e.g.192.0.2.3) ++ # - wildcard (i.e. *) ++ # - hostname (radius.example.com) ++ # Only the A record for the host name is used. ++ # If there is no A record, an error is returned, ++ # and the server fails to start. ++ # ++ # ipv6addr - IPv6 address (e.g. 2001:db8::1) ++ # - wildcard (i.e. *) ++ # - hostname (radius.example.com) ++ # Only the AAAA record for the host name is used. ++ # If there is no AAAA record, an error is returned, ++ # and the server fails to start. ++ # ++ # ipaddr - IPv4 address as above ++ # - IPv6 address as above ++ # - wildcard (i.e. *), which means IPv4 wildcard. ++ # - hostname ++ # If there is only one A or AAAA record returned ++ # for the host name, it is used. ++ # If multiple A or AAAA records are returned ++ # for the host name, only the first one is used. ++ # If both A and AAAA records are returned ++ # for the host name, only the A record is used. + # + # ipv4addr = * + # ipv6addr = * +-- +2.11.0 + diff --git a/freeradius.spec b/freeradius.spec index 6937ff8..7edd8c4 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -29,6 +29,7 @@ Patch5: freeradius-suid-down-after-fchown.-Fixes-1914.patch Patch6: freeradius-Handle-hostnames-in-fr_pton4-6.patch Patch7: freeradius-Rename-lt_-to-fr_-.-Fixes-1277.patch Patch8: freeradius-Remove-mentions-of-Auth-Type-System-from-docs.patch +Patch9: freeradius-Improve-ip-v4-v6-addr-documentation.patch %global docdir %{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} @@ -202,6 +203,7 @@ This plugin provides the REST support for the FreeRADIUS server project. %patch6 -p1 %patch7 -p1 %patch8 -p1 +%patch9 -p1 %build # Force compile/link options, extra security for network facing daemon @@ -809,6 +811,7 @@ exit 0 - Fix long hostnames interpreted as IP addresses. - Avoid clashes with libtool library symbols. - Remove mentions of Auth-Type = System from docs. +- Improve ip/v4/v6/addr documentation. * Mon Feb 20 2017 Nikolai Kondrashov - 3.0.12-2 - Fix three cases of comparing pointers to zero characters