Jamf pro server12/7/2023 ![]() When the Infrastructure Manager instance installation is complete, Jamf Pro allows you to enable the LDAP Proxy and/or enable the Healthcare Listener. Follow the onscreen instructions to complete the installation. Static func get(server: String, username: String, password: String) async throws -> JamfAuthToken catch JamfAPIError. If your Jamf Pro server is hosted in Jamf Cloud, the Jamf Infrastructure Manager server must be publicly reachable. ** Get an authentication Token from the server */ In the file list, select the JamfAuthToken file and add this function, below the properties, and above the final closing brace: I tested a custom configuration profile that does apply the settings successfully, but only if location settings are enabled. However, for the life of me, I cannot find documentation detailing how. Let's start with the JamfAuthToken: the code that gets a new JamfAuthToken is intrinsically connected to the object type and should be part of the JamfAuthToken struct definition. I read that Jamf Pro 10.26 is supposed to be able to permit enabling NTP/time zone settings without needing location services turned on. It is better to encapsulate the code in functions or methods. Having all of the code in our main function in Jamf List is neither pretty nor convenient. However, there are some things that will be worth improving, before we continue development on a SwiftUI app. ![]() With that, our command line tool has the basic functionality we had set as our goal. The sample code for part 2 is also the starting point for the code in this part. Note: You can find the sample code for both parts here. In the second part, we added the code to decode the JSON into usable Swift objects representing the Category and Computer data in Jamf Pro. In the first part, we built a command line tool that would fetch an authorization token from the Jamf API and use it to fetch JSON data from the Jamf Pro API. In part two of this technical series, we discussed decoding data objects.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |