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

11.0.1 (20B50) - No password Popup appear #37

Closed Siggloo closed 3 years ago

Siggloo commented 3 years ago

When testing the script on 11.0.1 no popups will be shown and fails on password. Works in 10.15.7 without any issues.

From Jamf policy log: Script result: [WARNING] This script has not been tested on macOS Big Sur. Use at your own risk. Alerting user mikael.sigemo about incoming password prompt... Prompting mikael.sigemo for their Mac password... Prompting mikael.sigemo for their Mac password (attempt 2)... Prompting mikael.sigemo for their Mac password (attempt 3)... Prompting mikael.sigemo for their Mac password (attempt 4)... Prompting mikael.sigemo for their Mac password (attempt 5)... [ERROR] Password prompt unsuccessful after 5 attempts. Displaying "forgot password" message...

macgod73 commented 3 years ago

@Siggloo

I was seeing the same issue. Beginning at line 157 I added the following elif statement for macOS 11.0 to populate the $L-METHOD variable. This gets past the no popup issue, but is still failing. I am still digging into it.

Get information necessary to display messages in the current user's context.

USER_ID=$(/usr/bin/id -u "$CURRENT_USER") if [[ "$OS_MAJOR" -eq 10 && "$OS_MINOR" -le 9 ]]; then L_ID=$(/usr/bin/pgrep -x -u "$USER_ID" loginwindow) L_METHOD="bsexec" elif [[ "$OS_MAJOR" -eq 10 && "$OS_MINOR" -gt 9 ]]; then L_ID=$USER_ID L_METHOD="asuser" elif [[ "$OS_MAJOR" -eq 11 && "$OS_MINOR" -ge 0 ]]; then L_ID=$USER_ID L_METHOD="asuser" fi

homebysix commented 3 years ago

Thanks!

Siggloo commented 3 years ago

Awesome!