homebysix / jss-filevault-reissue

A framework for re-escrowing missing or invalid FileVault keys with Jamf Pro.
Apache License 2.0
186 stars 56 forks source link

User is not prompted for password when script is run. #12

Open jhbush opened 6 years ago

jhbush commented 6 years ago

Terminal Output when run in verbose.

Prompting jbush for their Mac password (attempt 2)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 3)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 4)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
Prompting jbush for their Mac password (attempt 5)...
/bin/launchctl "$L_METHOD" "$L_ID" /usr/bin/osascript -e 'display dialog "Sorry, that password was incorrect. Please try again:" default answer "" with title "'"${PROMPT_TITLE//\"/\\\"}"'" giving up after 86400 with text buttons {"OK"} default button 1 with hidden answer with icon file "'"${LOGO_POSIX//\"/\\\"}"'"' -e 'return text returned of result'
0:224: execution error: Can’t make file "" into type number or string. (-1700)
[ERROR] Password prompt unsuccessful after 5 attempts. Displaying "forgot password" message...
🦄  Fri Nov 10 11:08:40 [jbush@LP-JHBUSH-OSX:~]# 
homebysix commented 6 years ago

@jhbush Can you let me know what you use for the LOGO variable on line 23? Thanks!