Debian Codegraph @

doc/antora/modules/ROOT/pages/radiusd_x.adoc

raw
1 # `radiusd -X`
2
3 This page explains How to use how use `radiusd` in debug mode and how to read the output of `radiusd -X` (debug mode).
4
5 The first part of the debug output is the *startup* text. Once the server is started, it prints `Ready to receive requests`. The next part of the debug output is the *packet processing* text. Both parts need to be read (and posted to the list!) in order to solve issues.
6
7 ## If it doesn't start
8
9 If the server does not start up correctly, *the debug output will tell you why*. It will produce long descriptive error messages, telling you exactly what's wrong. In some cases, it will tell you how to fix it.
10
11 Look for messages like *Error* or *Warning*. If you are running the server in a terminal console, those messages will appear in red or yellow. It should be simple to scroll through the output, ignoring most of it, and looking for red *Error* text.
12
13 Fixing those errors will usually allow the server to start correctly.
14
15 ## Startup text
16
17 We start the server with `-X`. This option gives us the best combination of useful output, and readable output. Adding more `-x` gives *more complex output*, not *more useful output*.
18
19 $ radiusd -X 2>&1 | tee debugfile
20
21 The server prints out the version number, copyright, and license information:
22
23 FreeRADIUS Version 3.0.17
24 Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
25 There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
26 PARTICULAR PURPOSE
27 You may redistribute copies of FreeRADIUS under the terms of the
28 GNU General Public License
29 For more information about these matters, see the file named COPYRIGHT
30
31 Next, it prints out messages relating to debuggers (e.g. gdb). These messages are intended for developers, and can generally be ignored by everyone else.
32
33 Getting debug state failed: ptrace capability not set. If debugger detection is required run as root or: setcap cap_sys_ptrace+ep <path_to_radiusd>
34
35 ### Reading the configuration files
36
37 The next block of messages is about the configuration files. The server prints out the name of each configuration file it loads.
38
39 This output lets you check that the server is loading the files which you think it's loading. One common issue is that people install multiple versions of the server, and then edit one file while the server is loading a different one. Reading the debug output will let you verify that you're editing the right file.
40
41 Starting - reading configuration files ...
42
43 It then reads the dictionaries. It does not print out the name of every dictionary file it reads, as there are over 100 files, but they are never the less still loaded.
44
45 including dictionary file /usr/share/freeradius/dictionary
46 including dictionary file /usr/share/freeradius/dictionary.dhcp
47 including dictionary file /usr/share/freeradius/dictionary.vqp
48 including dictionary file /etc/raddb/dictionary
49
50 Next is loads the main `radiusd.conf` file, and some associated ones like `proxy.conf` and `clients.conf`
51
52 including configuration file /etc/raddb/radiusd.conf
53 including configuration file /etc/raddb/proxy.conf
54 including configuration file /etc/raddb/clients.conf
55
56 It now loads all of the modules. The module configuration is usually stored in `raddb/mods-enabled/`, with one module configuration per file in that directory.
57
58 Sometimes the module you're using does not seem to be loaded or used. In that case, you should check this section to see that the file is loaded.
59
60 including files in directory /etc/raddb/mods-enabled/
61 including configuration file /etc/raddb/mods-enabled/pap
62 including configuration file /etc/raddb/mods-enabled/expiration
63 including configuration file /etc/raddb/mods-enabled/files
64 including configuration file /etc/raddb/mods-enabled/linelog
65 including configuration file /etc/raddb/mods-enabled/soh
66 including configuration file /etc/raddb/mods-enabled/attr_filter
67 including configuration file /etc/raddb/mods-enabled/ntlm_auth
68 including configuration file /etc/raddb/mods-enabled/exec
69 including configuration file /etc/raddb/mods-enabled/preprocess
70 including configuration file /etc/raddb/mods-enabled/sradutmp
71 including configuration file /etc/raddb/mods-enabled/chap
72 including configuration file /etc/raddb/mods-enabled/digest
73 including configuration file /etc/raddb/mods-enabled/expr
74 including configuration file /etc/raddb/mods-enabled/echo
75 including configuration file /etc/raddb/mods-enabled/unpack
76 including configuration file /etc/raddb/mods-enabled/detail
77 including configuration file /etc/raddb/mods-enabled/always
78 including configuration file /etc/raddb/mods-enabled/eap
79 including configuration file /etc/raddb/mods-enabled/mschap
80 including configuration file /etc/raddb/mods-enabled/unix
81 including configuration file /etc/raddb/mods-enabled/detail.log
82 including configuration file /etc/raddb/mods-enabled/passwd
83 including configuration file /etc/raddb/mods-enabled/date
84 including configuration file /etc/raddb/mods-enabled/logintime
85 including configuration file /etc/raddb/mods-enabled/utf8
86 including configuration file /etc/raddb/mods-enabled/dynamic_clients
87 including configuration file /etc/raddb/mods-enabled/radutmp
88 including configuration file /etc/raddb/mods-enabled/realm
89 including configuration file /etc/raddb/mods-enabled/cache_eap
90 including configuration file /etc/raddb/mods-enabled/replicate
91
92 Next, some policies are loaded. These policies are ones which the server uses (for example) to canonicalize user names, and to do things like attribute re-writes, sanity checks, etc.
93
94 including files in directory /etc/raddb/policy.d/
95 including configuration file /etc/raddb/policy.d/control
96 including configuration file /etc/raddb/policy.d/cui
97 including configuration file /etc/raddb/policy.d/debug
98 including configuration file /etc/raddb/policy.d/moonshot-targeted-ids
99 including configuration file /etc/raddb/policy.d/eap
100 including configuration file /etc/raddb/policy.d/filter
101 including configuration file /etc/raddb/policy.d/canonicalization
102 including configuration file /etc/raddb/policy.d/abfab-tr
103 including configuration file /etc/raddb/policy.d/operator-name
104 including configuration file /etc/raddb/policy.d/dhcp
105 including configuration file /etc/raddb/policy.d/accounting
106 including files in directory /etc/raddb/sites-enabled/
107 including configuration file /etc/raddb/sites-enabled/default
108 including configuration file /etc/raddb/sites-enabled/inner-tunnel
109
110 ### Server Configuration
111
112 Once all of the configuration files are loaded, the server prints out the configuration it is parsing. Note that it *only prints out what it is using*. I.e. you can put `foo = bar` into `radiusd.conf`, and the server will load it, but will not print it out in the debug output.
113
114 The result is that if you set a configuration item, *it will be printed out in the debug output*. You should verify that this is the case, especially if it looks like the server is not using the setting you edited. If the configuration item does not appear in the debug output, *then the server is not using it.*
115
116 This is the "main" server configuration:
117
118 main {
119 name = "radiusd"
120
121 Which directories the server is using,
122
123 prefix = "/"
124 localstatedir = "/var"
125 sbindir = "/usr/sbin"
126 logdir = "/var/log/radius"
127 run_dir = "/var/run/radiusd"
128 libdir = "/usr/lib"
129 radacctdir = "/var/log/radius/radacct"
130
131 Next we have some generic configuration settings which don't belong anywhere else.
132
133 hostname_lookups = no
134 max_request_time = 30
135 cleanup_delay = 5
136 max_requests = 16384
137 pidfile = "/var/run/radiusd/radiusd.pid"
138 checkrad = "/sbin/checkrad"
139 debug_level = 0
140 proxy_requests = yes
141
142 And the logging configuration.
143
144 log {
145 stripped_names = no
146 auth = no
147 auth_badpass = no
148 auth_goodpass = no
149 colourise = yes
150 msg_denied = "You are already logged in - access denied"
151 }
152 resources {
153 }
154
155 The security settings.
156
157 security {
158 max_attributes = 200
159 reject_delay = 1.000000
160 status_server = yes
161 allow_vulnerable_openssl = "yes"
162 }
163 }
164
165 At this point, the server is well on it's way to running.
166
167 ### Proxy Configuration
168
169 The server now loads its proxy configuration, as was defined in `proxy.conf`:
170
171 radiusd: #### Loading Realms and Home Servers ####
172
173 The over all proxy configuration is loaded.
174
175 proxy server {
176 retry_delay = 5
177 retry_count = 3
178 default_fallback = no
179 dead_time = 120
180 wake_all_if_all_dead = no
181 }
182
183 Followed by `home_server` configurations.
184
185 home_server localhost {
186 ipaddr = 127.0.0.1
187 port = 1812
188 type = "auth"
189 secret = <<< secret >>>
190 response_window = 20.000000
191 response_timeouts = 1
192 max_outstanding = 65536
193 zombie_period = 40
194 status_check = "status-server"
195 ping_interval = 30
196 check_interval = 30
197 check_timeout = 4
198 num_answers_to_alive = 3
199 revive_interval = 120
200 limit {
201 max_connections = 16
202 max_requests = 0
203 lifetime = 0
204 idle_timeout = 0
205 }
206 coa {
207 irt = 2
208 mrt = 16
209 mrc = 5
210 mrd = 30
211 }
212 }
213
214 Followed by `home_server_pool` configurations.
215
216 home_server_pool my_auth_failover {
217 type = fail-over
218 home_server = localhost
219 }
220
221 Followed by `realm` configurations.
222
223 realm example.com {
224 auth_pool = my_auth_failover
225 }
226 realm LOCAL {
227 }
228 realm int {
229 virtual_server = inner-tunnel
230 }
231
232 ### Clients
233
234 It now loads individual clients:
235
236 radiusd: #### Loading Clients ####
237 client localhost {
238 ipaddr = 127.0.0.1
239 require_message_authenticator = no
240 secret = <<< secret >>>
241 nas_type = "other"
242 proto = "*"
243 limit {
244 max_connections = 16
245 lifetime = 0
246 idle_timeout = 30
247 }
248 }
249 client localhost_ipv6 {
250 ipv6addr = ::1
251 require_message_authenticator = no
252 secret = <<< secret >>>
253 limit {
254 max_connections = 16
255 lifetime = 0
256 idle_timeout = 30
257 }
258 }
259
260 ### Auth-Type
261
262 The server then creates `Auth-Type`, as set in the virtual servers. These `Auth-Type` names and values are used by the modules, so they need to be created now.
263
264 # Creating Auth-Type = mschap
265 # Creating Auth-Type = digest
266 # Creating Auth-Type = eap
267 # Creating Auth-Type = PAP
268 # Creating Auth-Type = CHAP
269 # Creating Auth-Type = MS-CHAP
270
271 ### Modules
272
273 When the server read the module configuration file above (from `raddb/mods-enabled`), that meant just reding the contents of the file. It is now ready to load the dynamic library which reads that configuration, and which parses the configuration to determine what to do with it.
274
275 Each module will print out it's configuration, along with any errors or warnings it sees when it is loading itself.
276
277 radiusd: #### Instantiating modules ####
278 modules {
279
280 Here is loads the `pap` module. There are multiple lines being printed at each stage of the process.
281
282 First, it discovers it has to load the `pap` module, and decides to do that.
283
284 # Loaded module rlm_pap
285
286 Second, it tells you which files is used to read the `pap` module configuration.
287
288 # Loading module "pap" from file /etc/raddb/mods-enabled/pap
289
290 Finally, it prints out the configuration that is used by the `pap` module.
291
292 pap {
293 normalise = yes
294 }
295
296 When you are editing a module configuration, it is good to check the debug output for that module, to see:
297
298 * was the module loaded?
299 * is it using the file you edited?
300 * are the configuration changes you made showing up in the debug output?
301
302 Some modules like `expiration` do not have any configuration items, and therefore don't print out any configuration when they are loaded.
303
304 # Loaded module rlm_expiration
305 # Loading module "expiration" from file /etc/raddb/mods-enabled/expiration
306
307 This module loads the `users` file.
308
309 # Loaded module rlm_files
310 # Loading module "files" from file /etc/raddb/mods-enabled/files
311 files {
312 filename = "/etc/raddb/mods-config/files/authorize"
313 acctusersfile = "/etc/raddb/mods-config/files/accounting"
314 preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
315 }
316
317 The server loads a large number of modules, so we will omit them here.
318
319 Finally, it is done loading all modules, and prints this:
320
321 } # modules
322
323 ### Virtual Servers
324
325 Next, it loads "virtual servers".
326
327 radiusd: #### Loading Virtual Servers ####
328
329 It prints out the server, and name, along with which file it was loaded from.
330
331 server default { # from file /etc/raddb/sites-enabled/default
332
333 It then double-checks the various processing sections.
334
335 # Loading authenticate {...}
336 # Loading authorize {...}
337 # Loading preacct {...}
338 # Loading accounting {...}
339
340 The `sql` module is in the default configuration, even if the `sql` module is not enabled. This warning message is then printed out.
341
342 It can be ignored, or, in a production environment where you don't use `sql`, you can just remove references to `sql` from the virtual servers.
343
344 Ignoring "sql" (see raddb/mods-available/README.rst)
345 # Loading post-proxy {...}
346 # Loading post-auth {...}
347 } # server default
348 server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
349 # Loading authenticate {...}
350 # Loading authorize {...}
351 # Loading session {...}
352 # Loading post-auth {...}
353
354 In some situations, it tells you where the configuration can be simplified.
355
356 # Skipping contents of 'if' as it is always 'false' -- /etc/raddb/sites-enabled/inner-tunnel:335
357 } # server inner-tunnel
358
359 ### Listen Sections
360
361 After loading all of the virtual servers, it then opens the various network sockets used to read and write packets.
362
363 radiusd: #### Opening IP addresses and Ports ####
364
365 First, it prints out the configuration for the listen sections.
366
367 listen {
368 type = "auth"
369 ipaddr = *
370 port = 0
371 limit {
372 max_connections = 16
373 lifetime = 0
374 idle_timeout = 30
375 }
376 }
377 listen {
378 type = "acct"
379 ipaddr = *
380 port = 0
381 limit {
382 max_connections = 16
383 lifetime = 0
384 idle_timeout = 30
385 }
386 }
387 listen {
388 type = "auth"
389 ipv6addr = ::
390 port = 0
391 limit {
392 max_connections = 16
393 lifetime = 0
394 idle_timeout = 30
395 }
396 }
397 listen {
398 type = "acct"
399 ipv6addr = ::
400 port = 0
401 limit {
402 max_connections = 16
403 lifetime = 0
404 idle_timeout = 30
405 }
406 }
407 listen {
408 type = "auth"
409 ipaddr = 127.0.0.1
410 port = 18120
411 }
412
413 After reading all of the configuration, it opens the ports, and prints out a list of IP addresses and ports which it is using.
414
415 Listening on auth address * port 1812 bound to server default
416 Listening on acct address * port 1813 bound to server default
417 Listening on auth address :: port 1812 bound to server default
418 Listening on acct address :: port 1813 bound to server default
419 Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
420 Listening on proxy address * port 39556
421 Listening on proxy address :: port 52609
422
423 And we finally get to this line.
424
425 Ready to process requests
426
427 Once this has been printed, the debug output changes to packet processing.
428
429 Note that if *nothing* is ever printed after this line, then the server is not receiving any packets. No amount of changing the server configuration will solve that problem. Instead, you must fix the firewall, SeLinux configuration, network routing, etc. so that the OS delivers RADIUS packets to the server.
430
431 ## Packet Processing
432
433 Each line (or most of them) of the packet processing output starts with a request number, e.g. `(0)`. This number lets you track debug messages which are all for one packet. Messages from different packets may be inter-mingled, due to threading or proxying. Prefixing the messages with a number allows the messages to be easily differentiated.
434
435 ### Receiving a packet
436
437 The first message for a packet tells you what type of packet was received, what it's RADIUS ID is, and the source / destination IP / port information.
438
439 (0) Received Access-Request Id 104 from 127.0.0.1:33278 to 127.0.0.1:1812 length 73
440
441 After that, it prints out all of the attributes which were received in the packet.
442
443 (0) User-Name = "bob"
444 (0) User-Password = "wrongpassword"
445 (0) NAS-IP-Address = 127.0.1.1
446 (0) NAS-Port = 0
447 (0) Message-Authenticator = 0x3d27116b37323e4f629b4e8217fc25c8
448
449 Note that if an attribute is not printed here, then *it does not exist*. If you need the packet to contain an attribute, then you must **fix the NAS** so that the NAS sends the attribute.
450
451 Once the packet is received, it is run through the various processing sections of the server. For Access-Request packets, these are `authorize`, `authenticate`, and `post-auth`.
452
453 (0) # Executing section authorize from file /etc/raddb/sites-enabled/default
454 (0) authorize {
455
456 The `authorize` section contains a number of modules, along with unlang keywords like `if`, `update`, etc.
457
458 Each module prints out what it is doing, and why. For example, the `suffix` module here is looking for `User-Name` attributes which contain `user@domain`.
459
460 (0) suffix: Checking for suffix after "@"
461 (0) suffix: No '@' in User-Name = "bob", looking up realm NULL
462 (0) suffix: No such realm "NULL"
463
464 The server core then prints out the "return code" of the module. See `man unlang` for a deeper explanation of return codes.
465
466 (0) [suffix] = noop
467 (0) [files] = noop
468
469 The `authorize` section also has a return code.
470
471 (0) } # authorize = noop
472
473 In this case, the user is unknown, so they will be rejected.
474
475 (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = Reject
476 (0) Failed to authenticate the user
477
478 The packet is processed through the `Post-Auth-Type REJECT` section
479
480 (0) Using Post-Auth-Type Reject
481 (0) # Executing group from file /etc/raddb/sites-enabled/default
482 (0) Post-Auth-Type REJECT {
483
484 That section contains more modules and unlang statements.
485
486 Here, the `attr_filter` module is removing attributes which are forbidden from appearing in an Access-Reject packet.
487
488 (0) attr_filter.access_reject: EXPAND %{User-Name}
489 (0) attr_filter.access_reject: --> bob
490 (0) attr_filter.access_reject: Matched entry DEFAULT at line 11
491 (0) [attr_filter.access_reject] = updated
492 (0) [eap] = noop
493 (0) policy remove_reply_message_if_eap {
494 (0) if (&reply:EAP-Message && &reply:Reply-Message) {
495 (0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
496 (0) else {
497 (0) [noop] = noop
498 (0) } # else = noop
499 (0) } # policy remove_reply_message_if_eap = noop
500
501 Finally, the `Post-Auth-Type REJECT` section is done.
502
503 (0) } # Post-Auth-Type REJECT = updated
504
505 Since this is an Access-Reject, it is delayed for one second to prevent password attacks. The `reject_delay` configuration above control this delay.
506
507 (0) Delaying response for 1.000000 seconds
508
509 The server then sleeps for a while, waking up periodically to deal with internal book-keeping.
510
511 Waking up in 0.3 seconds.
512 Waking up in 0.6 seconds.
513
514 Finally after a one-second delay, the server wakes up and sends the Access-Reject packet.
515
516 (0) Sending delayed response
517
518 The IP / port printed here is the mirror of the one printed for the Access-Request, above. This indicates that it's a reply to an earlier request.
519
520 (0) Sent Access-Reject Id 104 from 127.0.0.1:1812 to 127.0.0.1:33278 length 20
521
522 If there are any attributes in the reply packet, they will be printed here. In this case, there are non.
523
524 Note that you **should** check the reply attributes to see if the server is sending the reply you expect. If it is not sending the correct reply. you will need to fix the configuration to do so.
525
526 If it is sending the correct reply, but the user is not getting the expected service, then the problem is the NAS. No amount of changing the server configuration will make the NAS behave.
527
528 The server then sleeps for a while:
529
530 Waking up in 3.9 seconds.
531
532 And then cleans up the request and it's associated response. This delay is controlled by `cleanup_delay`, which was seen earlier in the debug output.
533
534 (0) Cleaning up request packet ID 104 with timestamp +23
535
536 Since there's nothing more to do, we're back to this message.
537
538 Ready to process requests
539
540 The debug log has another packet, which we will skip, as it's largely the same as the previous one.
541
542 (1) Received Access-Request Id 146 from 127.0.0.1:40967 to 127.0.0.1:1812 length 73
543 (1) User-Name = "bob"
544 (1) User-Password = "wrongagain"
545 (1) NAS-IP-Address = 127.0.1.1
546 (1) NAS-Port = 0
547
548 The debug log then shows a successful authentication.
549
550 The input packet is largely the same, but has a different `User-Name` and `User-Password` attribute.
551
552 (2) Received Access-Request Id 135 from 127.0.0.1:40344 to 127.0.0.1:1812 length 77
553 (2) User-Name = "bob@int"
554 (2) User-Password = "test"
555 (2) NAS-IP-Address = 127.0.1.1
556 (2) NAS-Port = 0
557
558 The `Message-Authenticator` attribute is a cryptographic signature of the packet, and has no other meaning.
559
560 (2) Message-Authenticator = 0x3b3f4cf11005dcccfe78bb4a5830dd52
561
562 We start the `authorize` section again/
563
564 (2) # Executing section authorize from file /etc/raddb/sites-enabled/default
565 (2) authorize {
566
567 This time the `suffix` module does find a suffix.
568
569 (2) suffix: Checking for suffix after "@"
570 (2) suffix: Looking up realm "int" for User-Name = "bob@int"
571
572 The realm `int` is defined above in the `realm` configuration.
573
574 (2) suffix: Found realm "int"
575
576 The `suffix` module splits the `User-Name` into a `Stripped-User-Name` and `Realm` attributes. The `Stripped-User-Name` is used by subsequent modules to match the user's name.
577
578 (2) suffix: Adding Stripped-User-Name = "bob"
579 (2) suffix: Adding Realm = "int"
580 (2) suffix: Proxying request from user bob to realm int
581 (2) suffix: Preparing to proxy authentication request to realm "int"
582 (2) [suffix] = updated
583 (2) [files] = noop
584 (2) } # authorize = updated
585 (2) Starting proxy to home server (null) port 1812
586
587 This configuration has been changed from the default configuration to proxy packets to the `inner-tunnel` virtual server. This change was done here strictly for demonstration purposes. It is not necessary (and you should not do it!) in normal configurations.
588
589 Proxying to virtual server inner-tunnel
590 (2) # Executing section authorize from file /etc/raddb/sites-enabled/inner-tunnel
591 (2) authorize {
592
593 The `files` module matches the user name and realm, at `line 1` of the `users` file. This output lets you know exactly which entry was matched.
594
595 If the server does not do what you expect it to do, you should read `line 1` of the `users` file (or whatever entry matched), to verify that the entry is what you expect it to be.
596
597 (2) files: users: Matched entry bob@int at line 1
598 (2) [files] = ok
599
600 The `pap` module sees the `Cleartext-Password` which was set in the `users` file, along with the `User-Password` that came from the packet. The module then sets `Auth-Type := PAP`. This is so that the `authenticate` section will run the `pap` module, which will then authenticate the user.
601
602 (2) [pap] = updated
603 (2) } # authorize = updated
604
605 It now runs `Auth-Type PAP`
606
607 (2) Found Auth-Type = PAP
608 (2) # Executing group from file /etc/raddb/sites-enabled/inner-tunnel
609 (2) Auth-Type PAP {
610
611 The `pap` module tells you that everything is OK.
612
613 (2) pap: Login attempt with password
614 (2) pap: Comparing with "known good" Cleartext-Password
615 (2) pap: User authenticated successfully
616 (2) [pap] = ok
617 (2) } # Auth-Type PAP = ok
618
619 It now runs the normal `post-auth` section
620
621 (2) # Executing section post-auth from file /etc/raddb/sites-enabled/inner-tunnel
622 (2) post-auth {
623 (2) update reply {
624 (2) Reply-Message := "hello"
625 (2) } # update reply = noop
626 (2) if (0) {
627 (2) if (0) -> FALSE
628 (2) } # post-auth = noop
629 (2) Finished internally proxied request.
630 (2) Clearing existing &reply: attributes
631
632 Because this is a proxied request, it now runs the `post-proxy` section of the `default` virtual server.
633
634 (2) # Executing section post-proxy from file /etc/raddb/sites-enabled/default
635 (2) post-proxy {
636 (2) policy debug_reply {
637 (2) if ("%{debug_attr:reply:}" == '') {
638 (2) Attributes matching "reply:"
639 (2) EXPAND %{debug_attr:reply:}
640 (2) -->
641 (2) if ("%{debug_attr:reply:}" == '') -> TRUE
642 (2) if ("%{debug_attr:reply:}" == '') {
643 (2) [noop] = noop
644 (2) } # if ("%{debug_attr:reply:}" == '') = noop
645 (2) } # policy debug_reply = noop
646 (2) } # post-proxy = noop
647
648 This `Auth-Type = Accept` is added by the server code when proxying. Since the proxied request returned an Access-Accept, the `default` virtual server treats that as a successful authentication.
649
650 (2) Found Auth-Type = Accept
651 (2) Auth-Type = Accept, accepting the user
652
653 It then runs the `post-auth` section from the `default` virtual server.
654
655 (2) # Executing section post-auth from file /etc/raddb/sites-enabled/default
656 (2) post-auth {
657 (2) update {
658 (2) No attributes updated
659 (2) } # update = noop
660 (2) [exec] = noop
661 (2) policy remove_reply_message_if_eap {
662 (2) if (&reply:EAP-Message && &reply:Reply-Message) {
663 (2) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
664 (2) else {
665 (2) [noop] = noop
666 (2) } # else = noop
667 (2) } # policy remove_reply_message_if_eap = noop
668 (2) } # post-auth = noop
669
670 And finally returns an Access-Accept to the client. The `Reply-Message` here was take from `line 1` of the `users` file, when it matched above.
671
672 (2) Sent Access-Accept Id 135 from 127.0.0.1:1812 to 127.0.0.1:40344 length 0
673 (2) Reply-Message := "hello"
674 (2) Finished request
675 Waking up in 4.9 seconds.
676 (2) Cleaning up request packet ID 135 with timestamp +74
677 Ready to process requests
678 ^C
679
680 That is a *lot* of information to go through. We hope that this page has been useful.