Open jstaubr opened 1 year ago
What is the exact key you have set that contains the HTTP auth? Do you see the proper config when you run sudo munkireport-runner --show-config
when running MunkiReport 5.8?
This is the config:
AdditionalHttpHeaders: (
"Authorization: Basic xxxxxxxxxxxxx="
) [MANAGED]
BaseUrl: 'https://xxxxxx.cz/' [/Library/Preferences/MunkiReport.plist]
FollowHTTPRedirects: False [/Library/Preferences/MunkiReport.plist]
HttpConnectionTimeout: 60 [/Library/Preferences/MunkiReport.plist]
LogFile: '/Library/MunkiReport/Logs/MunkiReport.log' [/Library/Preferences/MunkiReport.plist]
LogToSyslog: False [/Library/Preferences/MunkiReport.plist]
Passphrase: None [not set]
UseAdditionalHttpHeaders: False [/Library/Preferences/MunkiReport.plist]
scriptTimeOut: 30 [/Library/Preferences/MunkiReport.plist]
...
The profile:
<dict>
<key>PayloadContent</key>
<dict>
<key>MunkiReport</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>UseMunkiAdditionalHttpHeaders</key>
<true/>
<key>AdditionalHttpHeaders</key>
<array>
<string>Authorization: Basic xxxxxxxxxxxxx =</string>
</array>
</dict>
</dict>
</array>
</dict>
</dict>
....
There is a bug with this. Add the following to the mcx_preference_settings
dict and it'll work correctly. A pull request for this has been filed.
<true/>```
Hi,
after upgrading to the latest release with newer python I'm unable to upload new data to the server from my test client because I get 401 unauthorized. I'm using an MDM profile with MunkiReport payload containing the http basic token.
Downgrading back to 5.7.1 with python 2.7 makes the authentication and upload work.
5.8.0 client
Server log
5.7.1 client
Server log
Thanks :)