CTK/SmartAuth Question
Closed this issue · 5 comments
Summary
I have only tested on a few machines in our fleet, but it does not seem to work if the account that logs in is using enforced SmartAuth login with CTK. The local admin account logs in and it works, but my account with CTK enforcement gives these errors:
"ERROR: fdesetup terminated with a non-zero exit status: 11"
"fdesetup Standard Error: Optional("Error: User could not be authenticated.\nError: Unable to unlock or authenticate to FileVault.\n"
"Caught error trying to generate a new key: The operation couldn't be completed. (Escrow.Buddy.Invoke.FileVaultError error 0.)"
Steps to Reproduce
Log out and log back in with a two-factor enabled account (so username/PIN instead of username/password) and it won't work. Log out and log back in with a local account that does not have two-factor enforced (can log in with username/password) and it works. Additionally, if I disable the enforcement of CTK and log in with the username/password on my personal account, it works, as well. I have attached the output from that machine (ran log show --predicate 'subsystem == "com.netflix.Escrow-Buddy"' --style syslog --debug --info --last 24h and ported to a ".log" file)
logCapture.log
Expected Behavior
I would expect that it would work, but it is not.
Environment
- Escrow Buddy version: [e.g. 1.0.0] - 1.0.0
- macOS version: [e.g. Ventura 13.4] - macOS 14.0 Sonoma
- MDM version: [e.g. Jamf 10.46.0] - Jamf Pro 10.50.0
Additional Context
Add any screenshots, logs, or additional details about the problem here. Include which troubleshooting steps you've already taken.
Thanks for reporting this. We don't use SmartAuth / CryptoTokenKit, so our ability to build support for this may be limited.
Two questions:
- If I understand correctly, the fdesetup error does not prevent a successful login from occurring. Is that right?
- After logging in with a SmartAuth user, what output does
sudo fdesetup changerecovery -personal -verbose
produce in the Terminal?
Understood, thank you. I'm happy to hear that you're not prevented from logging in — Escrow Buddy is designed to "fail open" for these types of situations.
I'll seek some advice from peers who use SmartAuth and see if there's a way to solve this.
Hi @elstalk - Unfortunately, we're not able to commit the development resources needed to support smart cards at this time. This could be one situation in which a user-facing password prompt might still be appropriate, for now.
Pull requests are welcome if anybody wants to add this feature, but doing so would also require ongoing testing commitment that we're not able to provide as we don't use smart cards for Mac authentication.