summaryrefslogtreecommitdiffstats
path: root/raddb/mods-available/realm
blob: 947a42db8233545238794f32bff131206d866fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- text -*-
#
#  $Id$

# Realm module, for proxying.
#
#  You can have multiple instances of the realm module to
#  support multiple realm syntaxes at the same time.  The
#  search order is defined by the order that the modules are listed
#  in the authorize and preacct sections.
#
#  Four config options:
#	format	 -  must be "prefix" or "suffix"
#			  The special cases of "DEFAULT"
#			  and "NULL" are allowed, too.
#	delimiter      -  must be a single character

#
#  For dynamic home servers, see doc/configuration/dynamic_home_servers.md,
#  and the script in mods-config/realm/freeradius-naptr-to-home-server.sh
#

#  'realm/username'
#
#  Using this entry, IPASS users have their realm set to "IPASS".
realm IPASS {
	format = prefix
	delimiter = "/"
}

#  'username@realm'
#
realm suffix {
	format = suffix
	delimiter = "@"

	# The next configuration items are valid ONLY for a trust-router.
	# For all other realms, they are ignored.
#	trust_router = "localhost"
#	tr_port = 12309
#	rp_realm = "realm.example.com"
#	default_community = "apc.communities.example.com"
#	# if rekey_enabled is enabled, dynamic realms are automatically rekeyed
#	# before they expire to avoid having to recreate them from scrach on
#	# demand (implying lengthy authentications)
#	rekey_enabled = no
#	# if realm_lifetime is > 0, the rekey is scheduled to happen the
#	# specified number of seconds after its creation or rekeying. Otherwise,
#	# the key material expiration timestamp is used
#	realm_lifetime = 0
}

#  'realm!username'
#
realm bangpath {
	format = prefix
	delimiter = "!"

#	trust_router = "localhost"
#	tr_port = 12309
#	rp_realm = "realm.example.com"
#	default_community = "apc.communities.example.com"
#	rekey_enabled = no
#	realm_lifetime = 0
}

#  'username%realm'
#
realm realmpercent {
	format = suffix
	delimiter = "%"
}

#
#  'domain\user'
#
realm ntdomain {
	format = prefix
	delimiter = "\\"
}