Disconnecting a vpn user via command line does not work for me.
I tried the following:
Get connection details of user schweiger:
I used the external and internal ip address. Both with no effect.
chroot /var/sec/chroot-openvpn /usr/bin/ras_update.plx ssl disconnect username schweiger 10.242.2.6
I don't receive any error message but the user's connection is still established (verfied with the openvpn_connection.sh command).
Does this need to be done from the command line? Would temporarily disabling the account through the webadmin be an option?
However, the SSL VPN client will automatically connect again a minute or so after the user is re-enabled.
If one needs to disable user schweiger at the command line:
cc change_object REF_AaaUseSchweiger status 0
To later enable:
cc change_object REF_AaaUseSchweiger status 1
Note that you must use /usr/local/bin/confd-client.plx instead of cc in a cronjob.
Cheers - Bob
THanks for this cc command. But how can I determine the REF object for a specific user?
confd-client.plx get_objects ...
cc get_user_by_name 'Duff11' |grep \'ref
Sorry, but doesn‘t work. What is the correct name or how do I get a list of all users?
thanks a lot in advance...
cc get_objects aaa user|grep \'name
If you're still having a problem, please copy the line here that failed.