Package: freeradius / 3.0.12+dfsg-5+deb9u1

debian-local/0001-Rename-radius-to-freeradius.patch Patch series | download
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
Author: Sam Hartman <hartmans@debian.org>
Description: Rename radius to freeradius
Last-Updated: 2016-09-16
Forwarded: not-needed

---

Index: freeradius-new/Make.inc.in
===================================================================
--- freeradius-new.orig/Make.inc.in
+++ freeradius-new/Make.inc.in
@@ -95,7 +95,7 @@ LDFLAGS		= $(OPENSSL_LDFLAGS) $(TALLOC_L
 
 LOGDIR		= ${logdir}
 RADDBDIR	= ${raddbdir}
-RUNDIR		= ${localstatedir}/run/radiusd
+RUNDIR		= ${localstatedir}/run/freeradius
 SBINDIR		= ${sbindir}
 RADIR		= ${radacctdir}
 LIBRADIUS	= $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la $(TALLOC_LIBS)
Index: freeradius-new/raddb/radiusd.conf.in
===================================================================
--- freeradius-new.orig/raddb/radiusd.conf.in
+++ freeradius-new/raddb/radiusd.conf.in
@@ -61,7 +61,7 @@ radacctdir = @radacctdir@
 
 #
 #  name of the running server.  See also the "-n" command-line option.
-name = radiusd
+name = freeradius
 
 #  Location of config and logfiles.
 confdir = ${raddbdir}
@@ -436,8 +436,8 @@ security {
 	#  member.  This can allow for some finer-grained access
 	#  controls.
 	#
-#	user = radius
-#	group = radius
+	user = freerad
+	group = freerad
 
 	#  Core dumps are a bad thing.  This should only be set to
 	#  'yes' if you're debugging a problem with the server.
Index: freeradius-new/scripts/monit/freeradius.monitrc
===================================================================
--- freeradius-new.orig/scripts/monit/freeradius.monitrc
+++ freeradius-new/scripts/monit/freeradius.monitrc
@@ -8,9 +8,9 @@
 #  Totalmem limit should be lowered to 200.0 if none of the
 #  interpreted language modules or rlm_cache are being used.
 #
-check process radiusd with pidfile /var/run/radiusd/radiusd.pid
-   start program = "/etc/init.d/radiusd start"
-   stop program = "/etc/init.d/radiusd stop"
+check process freeradius with pidfile /var/run/freeradius/freeradius.pid
+   start program = "/etc/init.d/freeradius start"
+   stop program = "/etc/init.d/freeradius stop"
    if failed host 127.0.0.1 port 1812 type udp protocol radius secret testing123 then alert
    if failed host 127.0.0.1 port 1813 type udp protocol radius secret testing123 then alert
    if cpu > 95% for 2 cycles then alert
Index: freeradius-new/raddb/sites-available/control-socket
===================================================================
--- freeradius-new.orig/raddb/sites-available/control-socket
+++ freeradius-new/raddb/sites-available/control-socket
@@ -72,12 +72,12 @@ listen {
 	#
 	#  Name of user that is allowed to connect to the control socket.
 	#
-#	uid = radius
+#	uid = freerad
 
 	#
 	#  Name of group that is allowed to connect to the control socket.
 	#
-#	gid = radius
+#	gid = freerad
 
 	#
 	#  Access mode.
Index: freeradius-new/src/main/radiusd.c
===================================================================
--- freeradius-new.orig/src/main/radiusd.c
+++ freeradius-new/src/main/radiusd.c
@@ -93,7 +93,6 @@ int main(int argc, char *argv[])
 	bool display_version = false;
 	int flag = 0;
 	int from_child[2] = {-1, -1};
-	char *p;
 	fr_state_t *state = NULL;
 
 	/*
@@ -128,13 +127,7 @@ int main(int argc, char *argv[])
 	main_config.myip.af = AF_UNSPEC;
 	main_config.port = 0;
 	main_config.daemonize = true;
-
-	p = strrchr(argv[0], FR_DIR_SEP);
-	if (!p) {
-		main_config.name = argv[0];
-	} else {
-		main_config.name = p + 1;
-	}
+	main_config.name = "radiusd";
 
 	/*
 	 *	Don't put output anywhere until we get told a little
@@ -667,7 +660,7 @@ static void NEVER_RETURNS usage(int stat
 {
 	FILE *output = status?stderr:stdout;
 
-	fprintf(output, "Usage: %s [options]\n", main_config.name);
+	fprintf(output, "Usage: freeradius [options]\n");
 	fprintf(output, "Options:\n");
 	fprintf(output, "  -C            Check configuration and exit.\n");
 	fprintf(stderr, "  -d <raddb>    Set configuration directory (defaults to " RADDBDIR ").\n");
Index: freeradius-new/man/man8/radiusd.8
===================================================================
--- freeradius-new.orig/man/man8/radiusd.8
+++ freeradius-new/man/man8/radiusd.8
@@ -53,7 +53,7 @@ See the output of
 for an informative list of which modules are checked for correct
 configuration, and which modules are skipped, and therefore not checked.
 .IP "\-d \fIconfig directory\fP"
-Defaults to \fI/etc/raddb\fP. \fBRadiusd\fP looks here for its configuration
+Defaults to \fI/etc/freeradius\fP. \fBRadiusd\fP looks here for its configuration
 files such as the \fIdictionary\fP and the \fIusers\fP files.
 .IP \-f
 Do not fork, stay running as a foreground process.
@@ -75,7 +75,7 @@ be written to stdout.
 On SIGINT or SIGQUIT exit cleanly instead of immediately.
 This is most useful for when running the server with "valgrind".
 .IP "\-n \fIname\fP"
-Read \fIraddb/name.conf\fP instead of \fIraddb/radiusd.conf\fP.
+Read \fIfreeradius/name.conf\fP instead of \fIfreeradius/radiusd.conf\fP.
 .IP "\-p \fIport\fP"
 Defines which port is used for receiving authentication packets.
 Accounting packets are received on "port + 1".
@@ -140,14 +140,14 @@ will never work, and you will never be a
 SQL), then:
 .PP
 .in +0.3i
-a) Edit raddb/modules/foo
+a) Edit freeradius/modules/foo
 .br
 This file contains the default configuration for the module.  It
 contains comments describing what can be configured, and what those
 configuration entries mean.
 .br
 .br
-b) Edit raddb/sites-available/default
+b) Edit freeradius/sites-available/default
 .br
 This file contains the default policy for the server.  e.g. "enable
 CHAP, MS-CHAP, and EAP authentication".  Look in this file for all
@@ -156,7 +156,7 @@ leading hash '#' from the lines referenc
 the module.
 .br
 .br
-c) Edit raddb/sites-available/inner-tunnel
+c) Edit freeradius/sites-available/inner-tunnel
 .br
 This file contains the default policy for the "tunneled" portion of
 certain EAP methods.  Perform the same kind of edits as above, for the