Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 Jamf API Updates and New Features #41

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

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