# config vdom4)Import the FortiToken to new VDOM using the bellow CLI commands.
edit <source_vdom_name>
# config user fortitoken
delete <FortiToken_Serial_Number>
end
end
# conf vdom5)Once FortiToken Mobile has been moved to new VDOM, it will be possible to assign it to users in the new VDOM as usual using either GUI or CLI.
edit <destination_vdom_name>
# conf user fortitoken
edit <FortiToken_Serial_Number>
end
end
# conf user localIn this example, FortiToken Mobile with serial number FTKMOB8A1020XXXX will be moved from VDOM 'root' to VDOM 'test'. User 'vpn_user' will be then created and assign it to the migrated FortiToken FTKMOB8A1020XXXX .
edit vpn_user
set email-to <user_email_address>
set two-factor fortitoken
set fortitoken <FortiToken_Serial_Number>
next
end
# config vdomNote.
edit root
# config user fortitoken
delete FTKMOB8A1020XXXX
end
end
# conf vdom
edit test
# conf user fortitoken
edit FTKMOB8A1020XXXX
end
# conf user local
edit vpn_user
set email-to user@example.com
set two-factor fortitoken
set fortitoken FTKMOB8A1020XXXX
next
end
# show user fortitoken <FortiToken_Serial_Number> | grep activation-code