Opened 5 years ago

Closed 5 years ago

#539 closed Bug / Defect (wontfix)

Killing a client instance with colon in cn not possible

Reported by: thenktor Owned by:
Priority: major Milestone:
Component: Management Version: OpenVPN 2.3.4 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

Hello,

in the mangement konsole I've tried to kill a client instance with a colon in it's common name, e.g.:

kill user:somebody

The management konsole recognizes this as an IP:port and prints the error:

ERROR: error parsing IP address: user

I've also tried:

kill "user:somebody"
kill user\:somebody

Both without luck. Therefore there seems to be no way to kill this client instance by it's common name.

Change History (1)

comment:1 Changed 5 years ago by Gert Döring

Resolution: wontfix
Status: newclosed

Indeed, if "kill" encounters something with a ":" in it, it is assumed to be "IPv4_address:port" of the client - documented in doc/management-notes.txt

Why not use the client ID instead ("client-kill <id>", where <id> can be retrieved by querying "status 2" or "status 3")?

(We're not going to fix this, though - "kill" is problematic in any case, as it does not handle IPv6 either - which is why client-kill exists)

Note: See TracTickets for help on using tickets.