Skip to content

Conversation

@rustymyers
Copy link
Contributor

With the API changes to Jamf requiring a token, this pull request updates the code to the new format. Additionally, a config file can be used to store and retrieve the credentials and other information for the script. Generalized some of the code and used Black python formatter, too. Switched from etree to defusedxml for security reasons.

Adding sync_path in missing spots
Removing empty config file creation so script won't fail subsequent runs.
Comments fixed for configparser
Adding configparser notes
Fixing configparser creating empty file
Updating configparser section to try each value, but fail gracefully. Moved default sync_path to prior so it will be set before parser and configparser values are read.
Updating configparser and export_path to allow default to be set before parser and configparser
Adding template folder and files for validate_files_and_folders.sh. Fixing issues with script variables finding files.
Fixing validatexml.sh for testing xml downloads.
Updated verifyEA to use tokens and allow for variable smart group testing.
All code has ElementTree replaced with defusedxml for security, except lxml which is for prettyprint.
Fixing extra pass and if statement comparing to True.
Adding file_path variable to use with functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant