-#
-# radiusd.conf Radius config file.
+##
+## radiusd.conf -- FreeRADIUS server configuration file.
+##
+## http://www.freeradius.org/
+##
+
#
# The location of other config files and
# logfiles are declared in this file
# It can either contain "*", or an IP address, or a fully qualified
# Internet domain name. The default is "*"
#
-#bind_address = *
+bind_address = *
#
# port: Allows you to bind FreeRADIUS to a specific port.
#######################################################################
#
-# Configuration for an SQL module.
+# Configuration for the Unix module
#
-sql auth {
- # Password is mapped through the "secrets" file.
- server = sql.domain.com
- username = radius
- password = sql-passwd
-
- database = radiusd
- table = users
-
- username = username
- password = pass
-}
-sql acct {
- # Password is mapped through the "secrets" file.
- server = sql.domain.com
- username = radius
- password = sql-passwd
+module unix {
- database = radiusd
- table = logs
-
- when = "Start,Update,Stop"
+#
+# Cache /etc/passwd, /etc/shadow, and /etc/group
+#
+# The default is to NOT cache them. However, caching them can
+# speed up system authentications by a substantial amount.
+#
+# allowed values: {no, yes}
+ cache = no
- field = "Acct-Status-Type status"
- field = "User-Name username"
- field = "NAS-Port-Type type"
- field = "Acct-Session-Time"
- field = "Acct-Input-Octets input"
- field = "Acct-Output-Octets output"
+#
+# Define the locations of the normal passwd, shadow, and group files.
+#
+# 'shadow' is commented out by default, because not all systems have
+# shadow passwords.
+#
+ passwd = /etc/passwd
+# shadow = /etc/shadow
+ group = /etc/group
}
+#######################################################################
+#
+# Configuration for the LDAP module.
+#
module ldap {
server = localhost
login = "cn=admin,o=My Org,c=US"
filter = "(uid=%u)"
}
-module example {
-#
-# Boolean variabled.
-#
-# allowed values: {no, yes}
-#
- boolean = yes
-
-#
-# An integer, of any value.
-#
- integer = 16
-
-#
-# A string.
+#######################################################################
#
- string = "This is an example configuration string"
-
+# Configuration for the SQL module.
#
-# An IP address, either in dotted quad (1.2.3.4) or hostname (example.com)
-#
- ipaddr = 127.0.0.1
-}
-
-
module sql {
# Connect info
# Print all SQL statements when in debug mode (-x)
sqltrace = no
}
+
+#######################################################################
+#
+# Configuration for the example module. Changing these values
+# won't affect anything.
+#
+module example {
+#
+# Boolean variable.
+#
+# allowed values: {no, yes}
+#
+ boolean = yes
+
+#
+# An integer, of any value.
+#
+ integer = 16
+
+#
+# A string.
+#
+ string = "This is an example configuration string"
+
+#
+# An IP address, either in dotted quad (1.2.3.4) or hostname (example.com)
+#
+ ipaddr = 127.0.0.1
+}
+
+