I am trying to create a EA to report the status of the the following key in the Clients.plist. This is what I have so far but it is not reporting properly. Any help is appreciated. TY
if [[ ${authStatus} == "1;" ]]; then Result="Enabled by user" elif [[ ${authStatus} == "0;" ]]; then Result="Disabled by user" else Result="Not set" fi
Have you tried running this script in Terminal sudo defaults read /var/db/locationd/clients.plist 2C4E4FD5-F029-XXXX-XXXX-XXXXXXXXXXXX:icom.absolute.ctesservice.ase:Authorized
I get back The domain/default pair of sudo defaults read /var/db/locationd/clients.plist 2C4E4FD5-F029-XXXX-XXXX-XXXXXXXXXXXX:icom.absolute.ctesservice.ase:Authorized) does not exist.
I know it exist as I can pipe out the results of that file but it is a system hidden file.
I am trying to report on the Authorized = True or False line , below.
if [[ ${authStatus} == "1;" ]]; then Result="Enabled by user" elif [[ ${authStatus} == "0;" ]]; then Result="Disabled by user" else Result="Not set" fi
if [[ ${authStatus} == "1;" ]]; then Result="Enabled by user" elif [[ ${authStatus} == "0;" ]]; then Result="Disabled by user" else Result="Not set" fi