vlaci / openconnect-sso

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

Crash on MacOS 12.1: NSBluetoothAlwaysUsageDescription permission issue #77

Open AdrienPoupa opened 2 years ago

AdrienPoupa commented 2 years ago

Hello,

I tried to install this following the readme's instructions (pip/pipx), but when I try to connect with openconnect-sso --server someserver.com/somegroup --user myuser@mydomain.com the script force closes.

MacOS shows a problem report, apparently the app is requesting Bluetooth access:

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.

The only dependency using Bluetooth seems to be PyQt5 as far as I can tell. They have some tickets about it: https://bugreports.qt.io/browse/QTBUG-98090?jql=text%20~%20%22NSBluetoothAlwaysUsageDescription%22

I tried to change /usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/Resources/Info.plist to include the NSBluetoothAlwaysUsageDescription permission to no avail.

If bluetooth is not required, maybe it's an import issue? https://github.com/winpython/winpython/issues/592#issuecomment-408290186

https://github.com/vlaci/openconnect-sso/pull/76 looks promising, I will check it out

Full log:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               Python [7863]
Path:                  /usr/local/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            org.python.python
Version:               3.9.9 (3.9.9)
Code Type:             X86-64 (Native)
Parent Process:        Python [7861]
Responsible:           iTerm2 [766]
User ID:               501

Date/Time:             2022-02-07 10:18:35.2780 -0500
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Bridge OS Version:     6.1 (19P647)
Anonymous UUID:        09FD8929-CF60-DD25-25F1-4733F4474C8D

Time Awake Since Boot: 5400 seconds

System Integrity Protection: enabled

Crashed Thread:        1  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace TCC, Code 0 
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothAlwaysUsageDescription key with a string value explaining to the user how the app uses this data.