]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Don't treat Juniper 'realm' field as authgroup
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Aug 2018 10:27:08 +0000 (11:27 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Aug 2018 10:27:08 +0000 (11:27 +0100)
The only point in the authgroup thing for the UI is to allow OpenConnect
to re-request the set of query fields for the new group. But the Juniper
protocol doesn't do that, and it's causing problems.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
auth-juniper.c

index 30ceb3aee80c5bf7c74df81a93bd5c2490d0fd62..f04d49a22fda1f2bf3e7f5047f88ce94775b19db 100644 (file)
@@ -188,8 +188,6 @@ static int parse_select_node(struct openconnect_info *vpninfo, struct oc_auth_fo
        xmlnode_get_prop(node, "name", &opt->form.name);
        opt->form.label = strdup(opt->form.name);
        opt->form.type = OC_FORM_OPT_SELECT;
-       if (!strcmp(opt->form.name, "realm"))
-               form->authgroup_opt = opt;
 
        for (child = node->children; child; child = child->next) {
                struct oc_choice **new_choices;