This ensures that we get the form and <opaque> data corresponding to the authgroup in use. Signed-off-by: Kevin Cernekee <cernekee at gmail.com> --- auth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auth.c b/auth.c index ea76fec..b6b9698 100644 --- a/auth.c +++ b/auth.c @@ -800,6 +800,11 @@ int xmlpost_initial_req(struct openconnect_info *vpninfo, char *request_body, in if (!node) goto bad; } + if (vpninfo->authgroup) { + node = xmlNewTextChild(root, NULL, XCAST("group-select"), XCAST(vpninfo->authgroup)); + if (!node) + goto bad; + } return xmlpost_complete(doc, request_body, req_len); bad: -- 1.7.9.5