This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
server='jamf.jamfcloud.com' | |
port='443' | |
echo "[start] Script will export the certificate chain for ${server} running on port ${port}..." | |
echo | |
# echo "The certificate trust chain for this server is:" | |
# echo | openssl s_client -connect "${server}:${port}" 2>&1 | sed -ne '/Certificate chain/,/---/p' | sed '$d' | sed '1d' | |
# echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BaseURL='https://your.jamfcloud.com' | |
UserPass='api:apipass' | |
deviceID='1024' | |
command='ClearPasscode' | |
URL="${BaseURL}/JSSResource/mobiledevicecommands/command/${command}/id/${deviceID}" | |
echo "Sending \"${URL}\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ============================================================== | |
-- SQL to export selected data for reporting. | |
-- Main interests at this point are MD denormalized, apps, | |
-- ============================================================== | |
-- A lot of the fields could be omitted. Just dump what you really need. | |
-- ============================================================== | |
-- Dates to be exported in this format... | |
SET @EUR=GET_FORMAT(DATETIME,'EUR'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Jamf Customer API to create a Jamf Mobile Device record then delete it. | |
# v1 osl/jamf 2018-03-26 | |
# Settings... | |
$ErrorActionPreference = "Stop" | |
$printDebugInfo = $true # $true or $false | |
# An extension attribute name into which we will save a dummy value. | |
# This must exist in the target JSS | |
$ExtensionAttributeName="CA_ActiveSync-ExchangeID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Some command line LDAP examples: | |
#used ldap utils in macOS 10.14.3 | |
#ldap test bind to check user/pass | |
#Lookup user info | |
#Check if user exists | |
# [!] Be safe... | |
# You would never want to sent these commands without SSL. Otherwise, credentials go in cleartext. | |
# Likewise, never put credentials on command line or they'll show up in process history. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is triggered when an enrollment webhook is recieved. | |
// ////////////////////////////////////////////////////////////// | |
// /////////// Start of user-defined runtime vars ///////////// | |
// ////////////////////////////////////////////////////////////// |