]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
swanctl: --list-conns shows eap_id, xauth_id and aaa_id
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 29 Apr 2016 15:33:57 +0000 (17:33 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 4 May 2016 16:13:52 +0000 (18:13 +0200)
src/swanctl/commands/list_conns.c

index b73a9f7e71de48232f180942bba6b7dcdfc5141c..00a11c7956d9784ed1017aa2ea4b0490db04eba0 100644 (file)
@@ -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"));