server staff { authorize { mschap sql-webmailsso eap-staff pap } authenticate { Auth-Type PAP{ pap } Auth-Type MSCHAP { mschap } Auth-Type eap-staff { eap-staff } } preacct { } accounting { } session { } post-auth { if ( "%{RESTENA-Service-Type}" == "Staff-AAI" ) { %{sql-webmailsso:INSERT INTO check_webmailsso_staff (user,token,timeout) VALUES('%{User-Name}','%{control:RESTENA-Rand-Source}',TIMESTAMPADD(hour, 12, NOW())) ON DUPLICATE KEY UPDATE token='%{control:RESTENA-Rand-Source}', timeout=TIMESTAMPADD(hour, 12, NOW())} } } pre-proxy { } post-proxy { } }