#
#  This is the virtual server referenced above by "dynamic_clients".

server dynamic_clients {
  #
  #  The only contents of the virtual server is the "authorize" section.
  authorize {
    # Hack dégueux: crans_nas est un backend python. Or, rlm_python ne
    # fournit pas en entrée les variables "control", uniquement les variables
    # "request", du coup on met ce qui nous intéresse là.
    update request {
      NAS-Identifier = "%{Packet-Src-IP-Address:-%{Packet-Src-IPv6-Address}}"
    }
    crans_unifie
  }
}

