vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
280 stars 119 forks source link

AttributeError: 'NoneType' object has no attribute 'password' #50

Closed jwiechmann closed 3 years ago

jwiechmann commented 3 years ago

If I start the script (version 0.7.1) without the option -u to prevent the first "Initiating autologin" I got this error. The version 0.7.0 is working well.

openconnect-sso --server myServer
Traceback (most recent call last):
 File "/nix/store/pqzf8bpv74s309hlnv0iis09760f4107-python3.8-openconnect-sso-0.7.1/bin/.openconnect-sso-wrapped", line 9, in <module>
   sys.exit(main())
 File "/nix/store/pqzf8bpv74s309hlnv0iis09760f4107-python3.8-openconnect-sso-0.7.1/lib/python3.8/site-packages/openconnect_sso/cli.py", line 169, in main
   return app.run(args)
 File "/nix/store/pqzf8bpv74s309hlnv0iis09760f4107-python3.8-openconnect-sso-0.7.1/lib/python3.8/site-packages/openconnect_sso/app.py", line 34, in run
   auth_response, selected_profile = asyncio.get_event_loop().run_until_complete(
 File "/nix/store/v72cj06nk69cynckz2s12rhar25k1h7v-python3-3.8.5/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
   return future.result()
File "/nix/store/pqzf8bpv74s309hlnv0iis09760f4107-python3.8-openconnect-sso-0.7.1/lib/python3.8/site-packages/openconnect_sso/app.py", line 112, in _run
   if not credentials.password:
AttributeError: 'NoneType' object has no attribute 'password'
vlaci commented 3 years ago

Nice catch!