HomePhorge

Access user password hash in OS X 10.7
11b8c5ad3fb9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Access user password hash in OS X 10.7

A first attempt at accessing the user's password hash in 10.7 by
inspecting the user's plist in
/var/db/dslocal/nodes/Default/users/test.plist. This method requires
saving a binary plist to /tmp/username.plist in order to use plutil
-convert xml1 to convert it to xml (as Plist::parse_xml can only read
XML plists).

Use Puppet::Util::Package.versioncmp()

Because we're comparing OS X versions that are ultimately strings,
we need a method to catch the scenario where '10.10' < '10.7'.
Puppet::Util::Package.versioncmp() does this well, so we will use
it in favor of simple string comparison.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUac8b408e1839: Merge branch '2.6.x' into 2.7.x
Branches
Unknown
Tags
Unknown
Reverted By
rPUc751e01802d6: Revert "Access user password hash in OS X 10.7"