Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Trying to connect to my work. To do that in the past, I used juniper network connect w/ the following args:
- - username
- - pass
- - realm
- - certificate
- So far I have the following ...
- $ ./juniper-vpn-py/juniper-vpn.py --host work.com --username me \
- --stdin DSID=%DSID% openconnect --juniper %HOST% --cookie-on-stdin
- Password:
- Traceback (most recent call last):
- File "./juniper-vpn-py/juniper-vpn.py", line 359, in <module>
- jvpn.run()
- File "./juniper-vpn-py/juniper-vpn.py", line 166, in run
- self.action_login()
- File "./juniper-vpn-py/juniper-vpn.py", line 214, in action_login
- self.br.form['username'] = self.args.username
- File "/usr/lib64/python2.7/site-packages/mechanize/_form.py", line 2780, in __setitem__
- control = self.find_control(name)
- File "/usr/lib64/python2.7/site-packages/mechanize/_form.py", line 3101, in find_control
- return self._find_control(name, type, kind, id, label, predicate, nr)
- File "/usr/lib64/python2.7/site-packages/mechanize/_form.py", line 3185, in _find_control
- raise ControlNotFoundError("no control matching "+description)
- mechanize._form.ControlNotFoundError: no control matching name 'username'
- Terminated
- Thoughts?
Advertisement
Add Comment
Please, Sign In to add comment