Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being able to connect with a --cookie parameter #46

Closed
fretn opened this issue Jan 28, 2016 · 5 comments
Closed

Being able to connect with a --cookie parameter #46

fretn opened this issue Jan 28, 2016 · 5 comments

Comments

@fretn
Copy link

fretn commented Jan 28, 2016

It would be nice if you are able to connect with a --cookie parameter.

I'm working on a wrapper gui for openfortivpn which does the fortinet http auth to catch the SVPNCOOKIE, it would be nice if openfortivpn could create a connection if it receives the cookie

then in ps -ef the password wouldn't show up, and the password wouldn't be exposed in a openfortivpn config file

Ofcourse its possible to specify the password through an interactive prompt, but this is a bit complex to handle when you spawn openfortivpn in a background process

@mrbaseman
Copy link
Collaborator

@fretn I'm just looking through old tickets. Is this still relevant? Wouldn't be an exported environment variable for the cookie be better than a --cookie command line option which again would be visible from ps -ef?

@fretn
Copy link
Author

fretn commented Oct 13, 2017

yeah an environment variable would be better

but this is not really relevant anymore

@mrbaseman
Copy link
Collaborator

with an environment variable it's not much effort to implement either. can you try this branch? You can set an environment variable called SVPNCOOKIE which then taken instead of performing the login procedure. I have tried to test, but with my two factor authentication and client certificate password I guess I'm simply too slow when typing in the passwords.... At least the debug output shows the correct cookie, but I get a "403 Forbidden"

@fretn
Copy link
Author

fretn commented Oct 13, 2017

Okay, Somewhere next week I'll try this. I'll have to dig up what and how I was trying to do this, the memory is a bit fuzzy in my brain :)

mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Apr 20, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Apr 20, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
@DimitriPapadopoulos
Copy link
Collaborator

@fretn I shall close this issue for now, since it is now possible to supply a cookie using the SVPNCOOKIE environment variable. Do not hesitate to reopen if you still encounter problems.

mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Jun 15, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Jun 29, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Jul 4, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
mrbaseman added a commit to mrbaseman/openfortivpn that referenced this issue Jul 4, 2018
if the SVPNCOOKIE is set in the enviroment authentication is skipped and
the cookie is taken from the environment instead. (addresses adrienverge#46)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants