]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
run through the auto-formatter
authorAlan T. DeKok <aland@freeradius.org>
Tue, 4 Aug 2026 01:18:31 +0000 (21:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 4 Aug 2026 01:18:31 +0000 (21:18 -0400)
raddb/sites-available/eap-psk

index 00cfc999893b6a1e99817c0c3ff84f01b05d953f..3b18c6f181deb0c311592b29981b1459d5a29f64 100644 (file)
@@ -5,10 +5,9 @@
 #
 #  An example virtual server for EAP-PSK (RFC 4764).
 #
-#  EAP-PSK is a mutual-authentication EAP method built on a
-#  16-octet pre-shared key.  The peer asserts an identity during
-#  authentication, and this virtual server looks up the key for
-#  that identity.
+#  EAP-PSK is a mutual-authentication EAP method built on a 16-octet
+#  pre-shared key. The peer asserts an identity during authentication,
+#  and this virtual server looks up the key for that identity.
 #
 #  Keys should be generated from a secure random source, e.g.
 #
@@ -42,27 +41,25 @@ server eap-psk {
        eap-psk {
                #  identity:: The default server identity (ID_S) sent to the peer.
                #
-               #  This should generally be the host name of the RADIUS
-               #  server, or some other information which uniquely
-               #  identifies it.
+               #  This should generally be the host name of the RADIUS server, or
+               #  some other information which uniquely identifies it.
                #
-               #  This identity can be over-ridden in the `send
-               #  Identity-Request` section, below.
+               #  This identity can be over-ridden in the `send Identity-Request`
+               #  section, below.
                #
                identity = "FreeRADIUS"
        }
 
        #  == Packet Processing sections
        #
-       #  The sections below are called when an EAP-PSK
-       #  authentication has been received.
+       #  The sections below are called when an EAP-PSK authentication has
+       #  been received.
 
        #
        #  === Send EAP Identity-Request
        #
-       #  This section runs before the first message is sent.  To
-       #  override the configured server identity for this session,
-       #  set:
+       #  This section runs before the first message is sent. To override
+       #  the configured server identity for this session, set:
        #
        #  ```
        #  reply.Server-Identity := "aaa1.example.com"
@@ -74,14 +71,13 @@ server eap-psk {
        #
        #  === Receive Identity-Response
        #
-       #  This section runs when the peer sends its identity.  The
-       #  section should look up the pre-shared key for that
-       #  identity, and add the key as `control.Password.PSK`.  The
-       #  key must be exactly 16 octets.
+       #  This section runs when the peer sends its identity. The section
+       #  should look up the pre-shared key for that identity, and add the
+       #  key as `control.Password.PSK`. The key must be exactly 16 octets.
        #
-       #  If no key is added, the message is silently discarded, so
-       #  probing for valid identities is not possible.  To send an
-       #  explicit failure instead, set:
+       #  If no key is added, the message is silently discarded, so probing
+       #  for valid identities is not possible. To send an explicit failure
+       #  instead, set:
        #
        #  ```
        #  reply.Packet-Type := ::Failure
@@ -89,8 +85,8 @@ server eap-psk {
        #
        recv Identity-Response {
                #
-               #  Keys are usually stored in a file or database, keyed
-               #  by the peer identity, e.g.
+               #  Keys are usually stored in a file or database, keyed by the peer
+               #  identity, e.g.
                #
                #  ```
                #  control.Password.PSK := %sql("SELECT psk FROM psk_keys WHERE identity = '%{Identity}'")
@@ -108,9 +104,9 @@ server eap-psk {
        #
        #  === Send a Result Indication
        #
-       #  This section runs before the third EAP-PSK message. That
-       #  message proves that the server holds the same key, and
-       #  tells the peer that authentication has succeeded.
+       #  This section runs before the third EAP-PSK message. That message
+       #  proves that the server holds the same key, and tells the peer that
+       #  authentication has succeeded.
        #
        send Result-Indication {
        }
@@ -118,8 +114,7 @@ server eap-psk {
        #
        #  === Receive a Result Acknowledgement
        #
-       #  This section runs when the peer confirms mutual
-       #  authentication.
+       #  This section runs when the peer confirms mutual authentication.
        #
        recv Result-Acknowledgement {
        }