- Download original code from Launchpad PPA openconnect/openconnect (https://code.launchpad.net/~openconnect/openconnect/trunk) using command
bzr branch lp:~openconnect/openconnect/trunk
- find auth-juniper.c and add code like this (this patch https://bugzilla.redhat.com/attachment.cgi?id=1239286&action=diff) from this bug report https://bugzilla.redhat.com/show_bug.cgi?id=1412021 by francois
ret = -ENOMEM;
goto out;
}
+ } else if (!strcasecmp(type, "username")) {
+ opt->type = OC_FORM_OPT_TEXT;
+ xmlnode_get_prop(node, "name", &opt->name);
+ if (asprintf(&opt->label, "%s:", opt->name) == -1) {
+ ret = -ENOMEM;
+ goto out;
+ }
} else if (!strcasecmp(type, "submit")) {
xmlnode_get_prop(node, "name", &opt->name);
if (opt->name && (!strcmp(opt->name, submit_button) ||
- compile and install
./autogen.sh
./configure
make
sudo make install
sudo cp .libs/libopenconnect*so* /usr/lib/x86_64-linux-gnu/
- run
4.1 if using Network Manager plugin (network-manager-openconnect)
need to install package openconnect first (then delete the binary from /usr/sbin/openconnect)
then do the make install
again.
4.2. if run from command line, make install
will put the binary in /usr/local/sbin/openconnect
sudo /usr/local/sbin/openconnect -v --juniper https://vpn.xxxxxxxxxxx