From e88f21cf65347bff19eda562e8f0bae89b0a5f7b Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Fri, 29 Apr 2016 17:33:57 +0200 Subject: swanctl: --list-conns shows eap_id, xauth_id and aaa_id --- src/swanctl/commands/list_conns.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/swanctl/commands/list_conns.c') diff --git a/src/swanctl/commands/list_conns.c b/src/swanctl/commands/list_conns.c index b73a9f7e7..00a11c795 100644 --- a/src/swanctl/commands/list_conns.c +++ b/src/swanctl/commands/list_conns.c @@ -135,9 +135,22 @@ CALLBACK(conn_sn, int, } printf(" %s %s authentication:\n", strpfx(name, "local") ? "local" : "remote", class); + if (auth->get(auth, "id")) { printf(" id: %s\n", auth->get(auth, "id")); } + if (auth->get(auth, "eap_id")) + { + printf(" eap_id: %s\n", auth->get(auth, "eap_id")); + } + if (auth->get(auth, "xauth_id")) + { + printf(" xauth_id: %s\n", auth->get(auth, "xauth_id")); + } + if (auth->get(auth, "aaa_id")) + { + printf(" aaa_id: %s\n", auth->get(auth, "aaa_id")); + } if (auth->get(auth, "groups")) { printf(" groups: %s\n", auth->get(auth, "groups")); -- cgit v1.2.3