diff --git a/auth-juniper.c b/auth-juniper.c index f04d49a2..30ceb3ae 100644 --- a/auth-juniper.c +++ b/auth-juniper.c @@ -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;