]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
There is no longer a DHCP specific sqlippool module
authorNick Porter <nick@portercomputing.co.uk>
Fri, 16 Feb 2024 17:20:21 +0000 (17:20 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 16 Feb 2024 17:23:12 +0000 (17:23 +0000)
doc/antora/modules/raddb/nav.adoc
doc/antora/modules/raddb/pages/sites-available/dhcp.adoc
raddb/policy.d/dhcp
raddb/sites-available/dhcp

index e0446924125ee769cbe827dec16a8a0e60a149d7..510297682e50b37fc6e886caba90ee01782370e2 100644 (file)
@@ -26,7 +26,6 @@
 *** xref:mods-available/detail.adoc[Detail Module]
 *** xref:mods-available/detail.example.com.adoc[Detail Module (Sample)]
 *** xref:mods-available/detail.log.adoc[Detail Module (Log Sample)]
-*** xref:mods-available/dhcp_sqlippool.adoc[DHCP SQL-IP-Pool Module]
 *** xref:mods-available/dhcpv4.adoc[DHCPv4 Module]
 *** xref:mods-available/dict.adoc[Dict Module]
 *** xref:mods-available/digest.adoc[Digest Module]
index 9a8265df9ad68aa39c2d15f6cfda47acd10ac261..e82de992248bec456a6854319bcb821746fb17fd 100644 (file)
@@ -1,9 +1,6 @@
 
 
-See raddb/mods-available/dhcp_sqlippool for the IP Pool configuration.
-
-See raddb/policy.d/dhcp_sqlippool for the "glue" code that allows
-the RADIUS based "sqlippool" module to be used for DHCP.
+See raddb/mods-available/sqlippool for the IP Pool configuration.
 
 See raddb/mods-config/sql/ippool/ for the schemas.
 
@@ -297,7 +294,7 @@ recv Discover {
        dhcp_common
 #      mac2ip
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
 #      &reply.Message-Type = Offer
 #      ok
 }
@@ -311,7 +308,7 @@ recv Request {
        dhcp_common
 #      mac2ip
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
        if (ok) {
                &reply.Your-IP-Address := "%{&request.Requested-IP-Address || &request.Client-IP-Address}"
        }
@@ -319,7 +316,7 @@ recv Request {
 }
 recv Decline {
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
        ok
 }
 recv Inform {
@@ -335,7 +332,7 @@ recv Inform {
 #}
 recv Release {
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
        ok
 }
 recv Lease-Query {
index 5a5b15222aa2cd263040b951bb8a9180c2638310..12548fdce0dde1ca5cc9af04b4b539c808f43f8b 100644 (file)
@@ -8,6 +8,6 @@ dhcp_common {
        &reply.Subnet-Mask = 255.255.255.0
        &reply.Router-Address = 192.0.2.1
        &reply.IP-Address-Lease-Time = 7200
-#      &reply.IP-Address-Lease-Time = "${modules.sqlippool[dhcp_sqlippool].lease_duration}"
+#      &reply.IP-Address-Lease-Time = "${modules.sqlippool[sqlippool].lease_duration}"
        &reply.Server-Identifier = &control.Server-Identifier
 }
index 27708ce672f15f6d94085e1a779894448dcd220d..d1c16a0321ba9e04a6176828a771a2472f62b991 100644 (file)
@@ -3,10 +3,7 @@
 #
 #      This is a virtual server that handles DHCP.
 #
-#  See raddb/mods-available/dhcp_sqlippool for the IP Pool configuration.
-#
-#  See raddb/policy.d/dhcp_sqlippool for the "glue" code that allows
-#  the RADIUS based "sqlippool" module to be used for DHCP.
+#  See raddb/mods-available/sqlippool for the IP Pool configuration.
 #
 #  See raddb/mods-config/sql/ippool/ for the schemas.
 #
@@ -149,7 +146,7 @@ recv Discover {
        #  Or, allocate IPs from the DHCP pool in SQL. You may need to
        #  set the pool name here if you haven't set it elsewhere.
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
 
        #  Set the type of packet to send in reply.
        #
@@ -209,7 +206,7 @@ recv Request {
        #  Or, allocate IPs from the DHCP pool in SQL. You may need to
        #  set the pool name here if you haven't set it elsewhere.
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
 
        if (ok) {
                &reply.Your-IP-Address := "%{&request.Requested-IP-Address || &request.Client-IP-Address}"
@@ -235,7 +232,7 @@ recv Decline {
        #  If using IPs from a DHCP pool in SQL then you may need to set the
        #  pool name here if you haven't set it elsewhere and mark the IP as declined.
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
 
        ok
 }
@@ -267,7 +264,7 @@ recv Release {
        #  If using IPs from a DHCP pool in SQL then you may need to set the
        #  pool name here if you haven't set it elsewhere and release the IP.
 #      &control.IP-Pool.Name := "local"
-#      dhcp_sqlippool
+#      sqlippool
 
        ok
 }