hello,
This is a multi feature request. I will just get to the point:
1) run as user - pretty self explanatory. I would like the ability to run a script, command, whatever as the user that is logged in. Much like a user agent. I know you can script this out, but really I would like to be able to tell a script by a check box to just say run as user, then I wouldn't have to deploy user agents. Then make them available offline, and also be able to say run at login or start up, or whatever.
2) I am surprised this isn't a feature of Casper just yet, but I would like to see a set of keychain tools. I am going through the process right now of adding keychain items and it is a pain in the butt. This feature request is sort of two fold, since if Casper had the ability to run as user, I could use that to modify a user's keychain and not need their keychain password. Also, when a user changes their password it doesn't always change the password of their keychain, which also causes issues. So I can deploy user agents but then I have scripts with passwords or have to put the password/commands in the user agent itself and well, that is just not all that well in the concept of security.
As of right now I am basically working with commands like this:
/usr/sbin/networksetup -addpreferredwirelessnetworkatindex Airport usd500_wpa 0 WPA2 mypasskey
# on this below usd500_wpa is my SSID of my wifi network
/usr/bin/security add-generic-password -a usd500_wpa -s AirPort -D "AirPort network password" -l usd500_wpa -w mypasskey -T /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -T /usr/libexec/airportd -U ~/Library/Keychains/login.keychain
This seems to work for me post image script and as a user agent, but I think Casper should make it easy for me and just add this in the framework. So I can go in and say all users get this added to their keychains and then Casper just does it for me. I am also looking at adding Internet passwords for our online text books and such, which also uses the security command.
Thoughts?
Thanks, tom