juniper-vpn-py icon indicating copy to clipboard operation
juniper-vpn-py copied to clipboard

Unknown form type frm

Open TTimo opened this issue 9 years ago • 3 comments

I am getting the following error when running the script, any suggestions?

Traceback (most recent call last):
  File "./juniper-vpn.py", line 359, in <module>
    jvpn.run()
  File "./juniper-vpn.py", line 162, in run
    action = self.next_action()
  File "./juniper-vpn.py", line 155, in next_action
    raise Exception('Unknown form type:', form.name)
Exception: ('Unknown form type:', 'frm')

TTimo avatar Jul 26 '16 13:07 TTimo

I also get this exact error.

ghost avatar Jul 26 '16 19:07 ghost

If I patch up the code to skip the unknown forms rather than abort, I get an endless loop of

skip unknown form type: frm
skip unknown form type: frmwelcome
skip unknown form type: frmcompat
skip unknown form type: frm
[..]

The first form to fail looks like this:

<frm GET https://[VPNHOST]/dana-na/auth/remediate.cgi application/x-www-form-urlencoded
  <HiddenControl(action=) (readonly)>
  <HiddenControl(signinId=url_0) (readonly)>
  <HiddenControl(realmId=) (readonly)>
  <HiddenControl(executedStep=preauth) (readonly)>
  <HiddenControl(stateId=) (readonly)>
  <HiddenControl(p=) (readonly)>
  <HiddenControl(showContinue=1) (readonly)>
  <HiddenControl(showRemedOption=0) (readonly)>
  <HiddenControl(hostcheckTS=) (readonly)>
  <HiddenControl(totalseconds=) (readonly)>
  <HiddenControl(executedAction=) (readonly)>>

I see 'preauth' .. is that step screwing me up?

TTimo avatar Jul 28 '16 15:07 TTimo

There is a commit in one of the forks that fixes this. https://github.com/pavelkogan/juniper-vpn-py/commit/ee20a42a64526981d5581e50677bb864095f8ab9

ntunes avatar Feb 13 '19 12:02 ntunes