]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5613] Be more explicit where the hooks libs should be installed.
authorMarcin Siodelski <marcin@isc.org>
Mon, 11 Jun 2018 14:27:14 +0000 (16:27 +0200)
committerMarcin Siodelski <marcin@isc.org>
Mon, 11 Jun 2018 14:27:14 +0000 (16:27 +0200)
doc/guide/hooks-ha.xml
doc/guide/hooks-host-cache.xml
doc/guide/hooks-radius.xml
doc/guide/hooks-stat-cmds.xml
doc/guide/hooks.xml

index 5d07a40e467f1209c9a32df64c8e16cc42f68c9d..db8a49ef75b90a7e06af4d10dc5298bc1813fb90 100644 (file)
         the DHCP service in case of outage of one of the servers. This library
         used to be only available to ISC customers, but is now part of
         the open source Kea, available to all users.
+
+        <note>
+          <para>This library may only be attached to <command>kea-dhcp4</command>
+          or <command>kea-dhcp6</command> process.
+          </para>
+        </note>
       </para>
       <para>
         High Availability (HA) of the DHCP service is provided by running multiple
index 51dc1e4f795bfc76e18e89810de614cbf4fe5b7e..79942c445016e297c5dd7bb21e91f1640a43b58e 100644 (file)
   </para>
 
   <para>
-    The RADIUS Host cache is a library that has to be loaded by either
-    DHCPv4 or DHCPv6 Kea servers. In principle it can be used with any
-    backend that may introduce performance degradation (MySQL,
-    PostgreSQL, Cassandra, RADIUS). Host Cache is required to be
-    loaded for the RADIUS accounting mechanism to work.
+    <note>
+      <para>This library may only be attached to <command>kea-dhcp4</command>
+      or <command>kea-dhcp6</command> process.
+      </para>
+    </note>
+
+    In principle it can be used with any backend that may introduce
+    performance degradation (MySQL, PostgreSQL, Cassandra, RADIUS).
+    Host Cache is required to be loaded for the RADIUS accounting
+    mechanism to work.
   </para>
 
   <para>
index 9550f3c368f6268c72dd4f582aab11b4801c081a..188e4b9a7c338c4820e4d063e760766cc68fab7a 100644 (file)
     receive additional RADIUS attributes. As such, the alternative
     looks more appealing: to extend DHCP server to talk to RADIUS
     directly. That is the goal this library intends to fulfill.
+
+    <note>
+      <para>This library may only be attached to <command>kea-dhcp4</command>
+      or <command>kea-dhcp6</command> process.
+      </para>
+    </note>
   </para>
   <para>
     The major feature of the library is the ability to use RADIUS
index 2201b640c57571d5f0feaeea52301ae8bd844b9f..5a950d9664ed5e81547460b94a4883a9b6a20a94 100644 (file)
     Finally, this library was constructed to provide commands for retrieving
     these statistics.  Additional statistics commands may be added to this
     library in future releases.
+
+    <note>
+      <para>This library may only be attached to <command>kea-dhcp4</command>
+      or <command>kea-dhcp6</command> process.
+      </para>
+    </note>
   </para>
 
   <para>
index 271a0bc1c9ebd4b12bca664779e723998a61894e..4210b702223271ce80a331a839fbb69f1fbbc270 100644 (file)
@@ -311,19 +311,36 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
       making Kea sustainable in the long term.
       </para></note>
 
-      <para>Currently the following libraries are available or planned from ISC:
+      <para>The following table provides a list of libraries currently available
+      from ISC. It is important to pay attention which process a library should
+      be loaded to. It is a common error to load a library to the
+      <command>kea-ctrl-agent</command> (Control Agent) process rather than to the
+      <command>kea-dhcp4</command> or <command>kea-dhcp6</command> processes.
+      If the library from ISC doesn't work as expected, please make sure that
+      it has been loaded to the appropriate process (consult the table below to
+      see which processes are supported by which hooks libraries).
+
+      <warning>
+        <para>
+          Even though the Kea Control Agent includes the "hooks" functionality,
+          i.e. hooks libraries can be attached to this process, currently ISC
+          supplies no hooks libraries to be attched to the Control Agent.
+        </para>
+      </warning>
 
         <table frame="all" xml:id="hook-libs">
           <title>List of available hooks libraries</title>
           <tgroup cols="3">
           <colspec colname="name"/>
           <colspec colname="avail"/>
+          <colspec colname="module"/>
           <colspec colname="description"/>
           <thead>
             <row>
               <entry>Name</entry>
               <entry>Availability</entry>
               <entry>Since</entry>
+              <entry>Load to process</entry>
               <entry>Description</entry>
             </row>
           </thead>
@@ -333,6 +350,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>user_chk</entry>
               <entry>Kea sources</entry>
               <entry>Kea 0.8</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>Reads known users list from a file. Unknown users
               will be assigned a
               lease from the last subnet defined in the configuration file,
@@ -345,6 +368,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Forensic Logging</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.1.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>This library provides hooks that record a detailed log of
               lease assignments and renewals into a set of log files. In many
               legal jurisdictions companies, especially ISPs, must record
@@ -359,6 +388,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Flexible Identifier</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.2.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>Kea software provides a way to handle host reservations
               that include addresses, prefixes, options, client classes and
               other features. The reservation can be based on hardware address,
@@ -379,6 +414,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Host Commands</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.2.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>Kea provides a way to store host reservations in a
               database. In many larger deployments it is useful to be able to
               manage that information while the server is running. This library
@@ -396,6 +437,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Subnet Commands</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.3.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>In deployments in which subnet configuration needs to
               be frequently updated, it is a hard requirement that such updates be
               performed without the need for a full DHCP server reconfiguration
@@ -412,6 +459,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Lease Commands</entry>
               <entry>Kea sources</entry>
               <entry>Kea 1.3.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>The lease commands hook library offers a number of new
               commands used to manage leases. Kea provides a way to store lease
               information in various backends: memfile, MySQL, PostgreSQL and
@@ -430,6 +483,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>High Availability</entry>
               <entry>Kea sources</entry>
               <entry>Kea 1.4.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>Minimizing a risk of DHCP service unavailability is
               achieved by setting up a pair of the DHCP servers in a network.
               Two modes of operation are supported. The first one is called load
@@ -455,6 +514,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Radius</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.4.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>The RADIUS Hook library allows Kea to interact with the
               RADIUS servers using access and accounting mechanisms. The access
               mechanism may be used for access control, assigning specific IPv4
@@ -468,6 +533,12 @@ $ <userinput>ls -l /usr/local/lib/hooks/*.so</userinput>
               <entry>Host Cache</entry>
               <entry>Support customers</entry>
               <entry>Kea 1.4.0</entry>
+              <entry>
+                <simplelist>
+                  <member>kea-&#xFEFF;dhcp4</member>
+                  <member>kea-&#xFEFF;dhcp6</member>
+                </simplelist>
+              </entry>
               <entry>Some of the database backends, such as RADIUS, are
               considered slow and may take a long time to respond. Since Kea in
               general is synchronous, the backend performance directly affects
@@ -596,6 +667,12 @@ and may have the zero or more of the following entries:
         provides hooks that record a detailed log of lease assignments
         and renewals into a set of log files.  Currently this library
         is only available to ISC customers with a support contract.
+
+        <note>
+          <para>This library may only be attached to <command>kea-dhcp4</command>
+          or <command>kea-dhcp6</command> process.
+          </para>
+        </note>
         </para>
         <para>
         In many legal jurisdictions companies, especially ISPs, must record
@@ -1036,7 +1113,14 @@ $
         hook application.</para>
 
         <para>Currently this library is only available to ISC customers with a
-        support contract.</para>
+        support contract.
+
+        <note>
+          <para>This library may only be attached to <command>kea-dhcp4</command>
+          or <command>kea-dhcp6</command> process.
+          </para>
+        </note>
+      </para>
 
         <para>The library allows for defining an expression, using notation
         initially used for client classification only. See <xref linkend="classification-using-expressions"/> for detailed description
@@ -1274,7 +1358,14 @@ $
         </para>
 
         <para>Currently this library is only available to ISC customers with a
-        support contract.</para>
+        support contract.
+
+        <note>
+          <para>This library may only be attached to <command>kea-dhcp4</command>
+          or <command>kea-dhcp6</command> process.
+          </para>
+        </note>
+        </para>
 
         <para>
           Currently three commands are supported: reservation-add (which adds
@@ -1572,6 +1663,12 @@ An example deletion by (subnet-id, identifier-type, identifier) looks as follows
           errors, like adding a lease with subnet-id that does not exist in the
           configuration or configuring a lease to use an address that is outside
           of the subnet to which it is supposed to belong.
+
+          <note>
+            <para>This library may only be attached to <command>kea-dhcp4</command>
+            or <command>kea-dhcp6</command> process.
+            </para>
+          </note>
         </para>
 
         <para>There are many use cases when an administrative command may be
@@ -2162,7 +2259,14 @@ An example IPv4 lease deletion by "hw-address" looks as follows:
         </para>
 
         <para>Currently this library is only available to ISC customers with a
-        support contract.</para>
+        support contract.
+
+        <note>
+          <para>This library may only be attached to <command>kea-dhcp4</command>
+          or <command>kea-dhcp6</command> process.
+          </para>
+        </note>
+        </para>
 
         <para>The following commands are currently supported:
         <itemizedlist mark="bullet">