e70776b1768cd7f4f4d3d571a948af6b2a13efee
[packages.git] / net / freeradius / patches / 002-config.patch
1 Index: freeradius-1.1.6/raddb/eap.conf
2 ===================================================================
3 --- freeradius-1.1.6.orig/raddb/eap.conf        2007-07-30 14:17:42.000000000 -0500
4 +++ freeradius-1.1.6/raddb/eap.conf     2007-07-30 14:17:42.000000000 -0500
5 @@ -73,8 +73,8 @@
6                 #  User-Password, or the NT-Password attributes.
7                 #  'System' authentication is impossible with LEAP.
8                 #
9 -               leap {
10 -               }
11 +#              leap {
12 +#              }
13  
14                 #  Generic Token Card.
15                 #
16 @@ -87,7 +87,7 @@
17                 #  the users password will go over the wire in plain-text,
18                 #  for anyone to see.
19                 #
20 -               gtc {
21 +#              gtc {
22                         #  The default challenge, which many clients
23                         #  ignore..
24                         #challenge = "Password: "
25 @@ -104,8 +104,8 @@
26                         #  configured for the request, and do the
27                         #  authentication itself.
28                         #
29 -                       auth_type = PAP
30 -               }
31 +#                      auth_type = PAP
32 +#              }
33  
34                 ## EAP-TLS
35                 #
36 @@ -329,7 +329,7 @@
37                 #  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
38                 #  currently support.
39                 #
40 -               mschapv2 {
41 -               }
42 +#              mschapv2 {
43 +#              }
44         }
45  
46 Index: freeradius-1.1.6/raddb/radiusd.conf.in
47 ===================================================================
48 --- freeradius-1.1.6.orig/raddb/radiusd.conf.in 2007-07-30 14:17:42.000000000 -0500
49 +++ freeradius-1.1.6/raddb/radiusd.conf.in      2007-07-30 14:17:42.000000000 -0500
50 @@ -31,13 +31,13 @@
51  
52  #  Location of config and logfiles.
53  confdir = ${raddbdir}
54 -run_dir = ${localstatedir}/run/radiusd
55 +run_dir = ${localstatedir}/run
56  
57  #
58  #  The logging messages for the server are appended to the
59  #  tail of this file.
60  #
61 -log_file = ${logdir}/radius.log
62 +log_file = ${logdir}/radiusd.log
63  
64  #
65  # libdir: Where to find the rlm_* modules.
66 @@ -353,7 +353,7 @@
67  nospace_pass = no
68  
69  #  The program to execute to do concurrency checks.
70 -checkrad = ${sbindir}/checkrad
71 +#checkrad = ${sbindir}/checkrad
72  
73  # SECURITY CONFIGURATION
74  #
75 @@ -425,8 +425,8 @@
76  #
77  #  allowed values: {no, yes}
78  #
79 -proxy_requests  = yes
80 -$INCLUDE  ${confdir}/proxy.conf
81 +proxy_requests  = no
82 +#$INCLUDE  ${confdir}/proxy.conf
83  
84  
85  # CLIENTS CONFIGURATION
86 @@ -454,7 +454,7 @@
87  #  'snmp' attribute to 'yes'
88  #
89  snmp   = no
90 -$INCLUDE  ${confdir}/snmp.conf
91 +#$INCLUDE  ${confdir}/snmp.conf
92  
93  
94  # THREAD POOL CONFIGURATION
95 @@ -665,7 +665,7 @@
96         #  For all EAP related authentications.
97         #  Now in another file, because it is very large.
98         #
99 -$INCLUDE ${confdir}/eap.conf
100 +#$INCLUDE ${confdir}/eap.conf
101  
102         # Microsoft CHAP authentication
103         #
104 @@ -1066,8 +1066,8 @@
105         #
106         files {
107                 usersfile = ${confdir}/users
108 -               acctusersfile = ${confdir}/acct_users
109 -               preproxy_usersfile = ${confdir}/preproxy_users
110 +#              acctusersfile = ${confdir}/acct_users
111 +#              preproxy_usersfile = ${confdir}/preproxy_users
112  
113                 #  If you want to use the old Cistron 'users' file
114                 #  with FreeRADIUS, you should change the next line
115 @@ -1253,7 +1253,7 @@
116         #  For MS-SQL, use:             ${confdir}/mssql.conf
117         #  For Oracle, use:             ${confdir}/oraclesql.conf
118         #
119 -       $INCLUDE  ${confdir}/sql.conf
120 +#      $INCLUDE  ${confdir}/sql.conf
121  
122  
123         #  For Cisco VoIP specific accounting with Postgresql,
124 @@ -1755,7 +1755,7 @@
125         #  The entire command line (and output) must fit into 253 bytes.
126         #
127         #  e.g. Framed-Pool = `%{exec:/bin/echo foo}`
128 -       exec
129 +#      exec
130  
131         #
132         #  The expression module doesn't do authorization,
133 @@ -1768,7 +1768,7 @@
134         #  listed in any other section.  See 'doc/rlm_expr' for
135         #  more information.
136         #
137 -       expr
138 +#      expr
139  
140         #
141         # We add the counter module here so that it registers
142 @@ -1795,7 +1795,7 @@
143         #  'raddb/huntgroups' files.
144         #
145         #  It also adds the %{Client-IP-Address} attribute to the request.
146 -       preprocess
147 +#      preprocess
148  
149         #
150         #  If you want to have a log of authentication requests,
151 @@ -1808,7 +1808,7 @@
152         #
153         #  The chap module will set 'Auth-Type := CHAP' if we are
154         #  handling a CHAP request and Auth-Type has not already been set
155 -       chap
156 +#      chap
157  
158         #
159         #  If the users are logging in with an MS-CHAP-Challenge
160 @@ -1836,7 +1836,7 @@
161         #  Otherwise, when the first style of realm doesn't match,
162         #  the other styles won't be checked.
163         #
164 -       suffix
165 +#      suffix
166  #      ntdomain
167  
168         #
169 @@ -1845,11 +1845,11 @@
170         #
171         #  It also sets the EAP-Type attribute in the request
172         #  attribute list to the EAP type from the packet.
173 -       eap
174 +#      eap
175  
176         #
177         #  Read the 'users' file
178 -       files
179 +#      files
180  
181         #
182         #  Look in an SQL database.  The schema of the database
183 @@ -1908,24 +1908,24 @@
184         #  PAP authentication, when a back-end database listed
185         #  in the 'authorize' section supplies a password.  The
186         #  password can be clear-text, or encrypted.
187 -       Auth-Type PAP {
188 -               pap
189 -       }
190 +#      Auth-Type PAP {
191 +#              pap
192 +#      }
193  
194         #
195         #  Most people want CHAP authentication
196         #  A back-end database listed in the 'authorize' section
197         #  MUST supply a CLEAR TEXT password.  Encrypted passwords
198         #  won't work.
199 -       Auth-Type CHAP {
200 -               chap
201 -       }
202 +#      Auth-Type CHAP {
203 +#              chap
204 +#      }
205  
206         #
207         #  MSCHAP authentication.
208 -       Auth-Type MS-CHAP {
209 -               mschap
210 -       }
211 +#      Auth-Type MS-CHAP {
212 +#              mschap
213 +#      }
214  
215         #
216         #  If you have a Cisco SIP server authenticating against
217 @@ -1943,7 +1943,7 @@
218         #  containing CHAP-Password attributes CANNOT be authenticated
219         #  against /etc/passwd!  See the FAQ for details.
220         #  
221 -       unix
222 +#      unix
223  
224         # Uncomment it if you want to use ldap for authentication
225         #
226 @@ -1956,7 +1956,7 @@
227  
228         #
229         #  Allow EAP authentication.
230 -       eap
231 +#      eap
232  }
233  
234  
235 @@ -1964,12 +1964,12 @@
236  #  Pre-accounting.  Decide which accounting type to use.
237  #
238  preacct {
239 -       preprocess
240 +#      preprocess
241  
242         #
243         #  Ensure that we have a semi-unique identifier for every
244         #  request, and many NAS boxes are broken.
245 -       acct_unique
246 +#      acct_unique
247  
248         #
249         #  Look for IPASS-style 'realm/', and if not found, look for
250 @@ -1979,12 +1979,12 @@
251         #  Accounting requests are generally proxied to the same
252         #  home server as authentication requests.
253  #      IPASS
254 -       suffix
255 +#      suffix
256  #      ntdomain
257  
258         #
259         #  Read the 'acct_users' file
260 -       files
261 +#      files
262  }
263  
264  #
265 @@ -1995,20 +1995,20 @@
266         #  Create a 'detail'ed log of the packets.
267         #  Note that accounting requests which are proxied
268         #  are also logged in the detail file.
269 -       detail
270 +#      detail
271  #      daily
272  
273         #  Update the wtmp file
274         #
275         #  If you don't use "radlast", you can delete this line.
276 -       unix
277 +#      unix
278  
279         #
280         #  For Simultaneous-Use tracking.
281         #
282         #  Due to packet losses in the network, the data here
283         #  may be incorrect.  There is little we can do about it.
284 -       radutmp
285 +#      radutmp
286  #      sradutmp
287  
288         #  Return an address to the IP Pool when we see a stop record.
289 @@ -2036,7 +2036,7 @@
290  #  or rlm_sql module can handle this.
291  #  The rlm_sql module is *much* faster
292  session {
293 -       radutmp
294 +#      radutmp
295  
296         #
297         #  See "Simultaneous Use Checking Querie" in sql.conf
298 @@ -2139,5 +2139,5 @@
299         #  hidden inside of the EAP packet, and the end server will
300         #  reject the EAP request.
301         #
302 -       eap
303 +#      eap
304  }