Open rmacian opened 8 months ago
Please use meaningful names. I suspect the foo
and bar
in foo@bar.xyz
and https://foo/bar
are different, aren't they?
yes its user@domain.com and https://anotherdomain.com/context
Try;
openfortivpn -u 'user@domain.com' --realm=context anotherdomain.com
However, 2FA is not directly supported. You would have to connect to https://anotherdomain.com/context
using a web browser, retrieve the cookie, and feed it to openfortivpn:
openfortivpn -u 'user@domain.com' --realm=context --cookie =... anotherdomain.com
My Forticlient is connecting with a user like foo@bar.xyz and the host is shown has https://foo/bar (I have two vpns on different context, the other is foo/qux)
I have also activated a 2FA where I get a code from Microsoft authenticator
How does is translated in the config file ? I tried
I get
If omit the context I get
Help does not explain, also the 2FA is not even clear ..