nix-gscheits/pkgs/fablab/freeradius-anon-access/raddb/mods-config/sql/moonshot-targeted-ids/mysql/queries.conf
2022-08-03 02:29:50 +00:00

15 lines
514 B
Text

# -*- text -*-
#
# moonshot-targeted-ids/mysql/queries.conf -- Queries to update a MySQL Moonshot-Targeted-Ids table.
#
# $Id: 68306db5a6c67f70804dc019e19daba5e938b4a9 $
post-auth {
# Query to store the Moonshot-*-TargetedId
query = "\
INSERT IGNORE INTO ${..moonshot_tid_table} \
(gss_acceptor, namespace, username, targeted_id) \
VALUES \
('%{control:Moonshot-MSTID-GSS-Acceptor}', '%{control:Moonshot-MSTID-Namespace}', \
'%{tolower:%{User-Name}}', '%{control:Moonshot-MSTID-TargetedId}')"
}