macOSLAPS icon indicating copy to clipboard operation
macOSLAPS copied to clipboard

Suggestion: Native Password Verification

Open PicoMitchell opened this issue 2 years ago • 3 comments

At https://github.com/joshua-d-miller/macOSLAPS/blob/a906d5bb7a16d872864c223276123dbf904e55d8/macOSLAPS/main.swift#L81 the native verifyPassword OpenDirectory method could be used instead of shelling out to dscl . -authonly.

The setup required to use this method would be very similar to what is already done when using the changePassword method at https://github.com/joshua-d-miller/macOSLAPS/blob/a906d5bb7a16d872864c223276123dbf904e55d8/macOSLAPS/Password%20Tools/LocalPasswordTools.swift#L56 but you would need to use kODNodeTypeAuthentication instead of kODNodeTypeLocalNodes.

PicoMitchell avatar Mar 07 '23 06:03 PicoMitchell

I believe this is addressed in the current prerelease. Please test and let me know.

Thanks!

joshua-d-miller avatar Feb 28 '24 21:02 joshua-d-miller

Awesome, thank you! I will not be able to test though. Feel free to close the issue if you've deemed it fixed.

PicoMitchell avatar Feb 29 '24 03:02 PicoMitchell

I will close this after 4.0.0.0 becomes a full release

joshua-d-miller avatar Feb 29 '24 12:02 joshua-d-miller