Comments (3)
Hi @jelockwood
Thanks for reaching out about my LAPS script.
Having your upgrade script decode the encoded string is totally doable. You can have the secret key used to encode the password stored in the script or in an extension attribute similar to how I do it with my LAPS script. The other method you could consider, which a few other LAPS and OSupdate scripts use, is to have it stored in a local keychain item which is called and opened in the script to be used in the upgrade process.
Alternatively there is the Super script which is what I use and actually recommend to customers at the moment as it is the most comprehensive upgrade script out there. The logging is incredible and the community support out there is brilliant as well.
Hope that helps a little?
from maclaps.
I could certainly myself decode your stored value in my own script, I could then create and fill in another extension attribute with a plain text value but that is clearly undesirable.
The author of Super could potentially build this decoding in to his script, I may discuss this with him. Do you have an example script he could base this on?
What about the possibility of building shell commands in to the Jamf Policy shall script parameter so that -
--admin-password=$EXTENSIONATTRIBUTE_5
might become
--admin-password=$(echo "$EXTENSIONATTRIBUTE_5" | openssl enc -d base64)
or similar
I do not want to use the keychain because firstly this makes it more vulnerable to users finding it, and secondly my IT team need to find it before logging in to the Mac so they can login to the Mac. Therefore the keychain would be a catch22.
from maclaps.
Thats actually one of the reasons I didn't go with the Keychain version because as you say if its needed before being logged in you are stuck.
So you wouldn't need to store the value in plain text. Once its in your script you can just pass the de-coded string to your variable.
Something along these (very loose) lines:
ENCODEDSTRING=$(Curl "Encoded string in Extension attribute")
DECODEDSTRING=$(openssl enc base64 "DECODE $ENCODEDSTRING")
--admin-password=$DECODEDSTRING
This way the logic in the script decodes the encoded string and you never need to store the plain text anywhere.
from maclaps.
Related Issues (20)
- Cleaner suppress plist HOT 1
- Add securetoken to LAPS admin HOT 1
- Question about Macs with existing LAPS account HOT 25
- Question - extension attributes HOT 1
- i cant find my Encrypted API Credentials HOT 4
- Beta Testing HOT 11
- Crypt key and secret key fail HOT 3
- What is to do for updating to a newer version? HOT 6
- LAPS Last Decoded Date empty HOT 6
- Teams integration HOT 1
- swiftDialog version HOT 5
- LAPS Decode and extension attributes HOT 3
- Error Creating LAPS Admin HOT 2
- The password is NOT automatically copied to clipboard. HOT 2
- Unable to login/authenicate with LAPS account HOT 3
- Problem with encoded credentials HOT 1
- Credential issue HOT 9
- Inventory item not found HOT 3
- local admin account already exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maclaps.