Skip to content

Commit

Permalink
Move the configuration into place, too
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 18, 2017
1 parent 92b14ee commit 6a680f2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 39 deletions.
2 changes: 1 addition & 1 deletion raddb/all.mk
Expand Up @@ -8,7 +8,7 @@ DEFAULT_SITES := default inner-tunnel
LOCAL_SITES := $(addprefix raddb/sites-enabled/,$(DEFAULT_SITES))

DEFAULT_MODULES := always attr_filter cache_eap chap client \
detail detail.log digest dhcp dynamic_clients eap \
detail detail.log digest dhcp eap \
eap_inner echo exec expiration expr files linelog logintime \
mschap ntlm_auth pap passwd preprocess radutmp realm \
replicate soh sradutmp unix unpack utf8
Expand Down
35 changes: 30 additions & 5 deletions raddb/mods-available/client
@@ -1,8 +1,34 @@
# -*- text -*-
#
# $Id$

# This module loads RADIUS clients as needed, rather than when the server
# starts.
#
# There are no configuration entries for this module. Instead, it
# relies on the "client" configuration. You must:
#
# 1) link raddb/sites-enabled/dynamic_clients to
# raddb/sites-available/dynamic_clients
#
# 2) Define a client network/mask (see top of the above file)
#
# 3) uncomment the "directory" entry in that client definition
#
# 4) list "client" in the "authorize" section of the
# "client' virtual server. The default example already
# does this.
#
# 5) put files into the above directory, one per IP.
# e.g. file "192.0.2.1" should contain a normal client definition
# for a client with IP address 192.0.2.1.
#
# For more documentation, see the file:
#
# raddb/sites-available/dynamic-clients
#
# Currently takes no configuration. May be used to load static file definitions
# in future...
#
# For now allows:
# The module also supports maps and the %{client:...} expansion.
#
# map client [<ipaddr>] {
# Tmp-String-0 := 'nas_type'
Expand All @@ -13,7 +39,6 @@
#
# "%{client:nas_type}" # Expands to client's nas_type (or "" if nas_type not set)
# "%{client:<ipaddr>.nas_type}" # Expands to the specified client's nas_type (or "" if nas_type not set or
# # client does not exist).
client {

}
}
32 changes: 0 additions & 32 deletions raddb/mods-available/dynamic_clients

This file was deleted.

2 changes: 1 addition & 1 deletion raddb/sites-available/dynamic-clients
Expand Up @@ -147,7 +147,7 @@ server dynamic_clients {
# and then put one file per IP address in
# that directory.
#
dynamic_clients
client

#
# Example 3: Look the clients up in SQL.
Expand Down

0 comments on commit 6a680f2

Please sign in to comment.