[Feature Request] Please allow us to kill all sessions for a particular username through VPNCMD
Apologies in advance if this can be achieved, but I have yet to be able to.
At the time of writing, it seems like vpncmd can be used to kill a particular session for a particular user by doing:
./vpncmd localhost:port /SERVER /ADMINHUB:hubname /CMD SessionDisconnect SID-USERNAME-[SSTP]-3
This works as intended. However, there seems to be no way to only list (all) the connections from only a particular username.
This creates a difficulty in killing a particular session, depending on setup. Example of my scenario:
VPN configured for SSTP connections. Multiple users with single connections. A particular user's password is changed, and the desired behavior in my setup is that on pwd change, the particular user be disconnected in order to force a reauth. At this point I should mention that this entire flow is (or should be) automated server side. However, because the SessionDisconnect function only accepts the session name; this means that I must somehow iterate through all existing connections and filter out the connection(s) from the specific username I require to be disconnected.
My request is that the SessionDisconnect function also accept a separate param (UserName) instead of just (or exclusively) the Session name, in order to more effectively allow a disconnection for a particular user from the command line.
Thank you in advance for your consideration!
Source: SoftEtherVPN/SoftEtherVPN