PezzaD84 / macLAPS

LAPS solution for macOS managed with Jamf
40 stars 9 forks source link

i cant find my Encrypted API Credentials #8

Closed fabu1987 closed 1 year ago

fabu1987 commented 1 year ago

where do I find my Encrypted API credentials exactly? no matter what I give in the parameter there, it doesn't work

PezzaD84 commented 1 year ago

hi @fabu1987

You can use this script here to encode your API account. https://github.com/PezzaD84/macOSLAPS/blob/main/Encode%20API%20Credentials

You need to save and run it locally on your device and not run it from jamf or as part of the LAPS scripts. Run the script from terminal and it will echo out a random string which is your encoded API credentials

fabu1987 commented 1 year ago

hello pezzD84

thank you for your fast answer!!! now it's clear to me i'll procure this one.... now i see the following in the jamf on the client.....

image

and the password remains empty :-( image

do you have any idea :-/

fabu1987 commented 1 year ago

Sorry ..... but I can't find why the password is always empty

PezzaD84 commented 1 year ago

Hi @fabu1987

Sorry I've taken so long to reply work has been hectic!

It looks like the API credentials are not working as the encoded credentials are not being populated in the extension attributes. Can you share the logs from JAMF and the local log in /Library/.LAPS/Logs/

Sometimes JAMF also requires you to log in at least once to the JAMF portal with the API account just incase it needs to reset the password or make sure it meets security requirements.