blob: 49779a515a1c30c9643cdb0f2e4329a08bfcb057 (
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
|
#
# PRE: update if
#
update control {
Cleartext-Password := 'hello'
}
if (User-Name == "bob") {
update reply {
Filter-Id := "filter"
}
#
# We need this because the "return" below
# will prevent the "pap" module from being run
# in the "authorize" section.
#
update control {
Auth-Type := PAP
}
#
# Stop processing "authorize", and go to the next section.
#
return
#
# Shouldn't reach this
#
update reply {
Filter-Id := "fail"
}
}
|