]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Revert "Don't treat Juniper 'realm' field as authgroup"
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Aug 2018 19:44:15 +0000 (20:44 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Aug 2018 19:44:15 +0000 (20:44 +0100)
This reverts commit b0a50a7e80e9b6a2d8aaa44c74b350a4aab51dc7.

auth-juniper.c

index f04d49a22fda1f2bf3e7f5047f88ce94775b19db..30ceb3aee80c5bf7c74df81a93bd5c2490d0fd62 100644 (file)
@@ -188,6 +188,8 @@ 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;