Added "return" keyword
[freeradius.git] / src / tests / keywords / return
1 #
2 #  PRE: update if
3 #
4 update control {
5         Cleartext-Password := 'hello'
6 }
7
8 if (User-Name == "bob") {
9         update reply {
10                 Filter-Id := "filter"
11         }
12
13         #
14         #  We need this because the "return" below
15         #  will prevent the "pap" module from being run
16         #  in the "authorize" section.
17         #
18         update control {
19                 Auth-Type := PAP
20         }
21
22         #
23         #  Stop processing "authorize", and go to the next section.
24         #
25         return
26
27         #
28         #  Shouldn't reach this
29         #
30         update reply {
31                 Filter-Id := "fail"
32         }
33 }