| 1 |
server python3_test { |
| 2 |
listen { |
| 3 |
type = auth |
| 4 |
ipaddr = * |
| 5 |
port = 1234 |
| 6 |
limit { |
| 7 |
max_connections = 16 |
| 8 |
lifetime = 0 |
| 9 |
idle_timeout = 30 |
| 10 |
} |
| 11 |
} |
| 12 |
authorize { |
| 13 |
filter_username |
| 14 |
preprocess |
| 15 |
python3 |
| 16 |
chap |
| 17 |
mschap |
| 18 |
digest |
| 19 |
suffix |
| 20 |
eap { |
| 21 |
ok = return |
| 22 |
} |
| 23 |
files |
| 24 |
-sql |
| 25 |
-ldap |
| 26 |
expiration |
| 27 |
logintime |
| 28 |
pap |
| 29 |
} |
| 30 |
authenticate { |
| 31 |
Auth-Type PAP { |
| 32 |
pap |
| 33 |
} |
| 34 |
Auth-Type CHAP { |
| 35 |
chap |
| 36 |
} |
| 37 |
Auth-Type MS-CHAP { |
| 38 |
mschap |
| 39 |
} |
| 40 |
mschap |
| 41 |
digest |
| 42 |
eap |
| 43 |
} |
| 44 |
preacct { |
| 45 |
preprocess |
| 46 |
acct_unique |
| 47 |
suffix |
| 48 |
files |
| 49 |
} |
| 50 |
accounting { |
| 51 |
detail |
| 52 |
unix |
| 53 |
-sql |
| 54 |
exec |
| 55 |
attr_filter.accounting_response |
| 56 |
} |
| 57 |
session { |
| 58 |
} |
| 59 |
post-auth { |
| 60 |
if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) { |
| 61 |
update reply { |
| 62 |
&User-Name !* ANY |
| 63 |
} |
| 64 |
} |
| 65 |
update { |
| 66 |
&reply: += &session-state: |
| 67 |
} |
| 68 |
-sql |
| 69 |
exec |
| 70 |
remove_reply_message_if_eap |
| 71 |
Post-Auth-Type REJECT { |
| 72 |
-sql |
| 73 |
attr_filter.access_reject |
| 74 |
eap |
| 75 |
remove_reply_message_if_eap |
| 76 |
} |
| 77 |
Post-Auth-Type Challenge { |
| 78 |
} |
| 79 |
} |
| 80 |
pre-proxy { |
| 81 |
} |
| 82 |
post-proxy { |
| 83 |
eap |
| 84 |
} |
| 85 |
} |