HomePhorge

Do not fail if ShadowHashData doesn't exist
9ff9a804d88fUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Do not fail if ShadowHashData doesn't exist

It's possible that a user account on a 10.7 or 10.8 machine
could still have an old-style password hash that's been stored
on-disk versus being stored in the user's plist (this occurs
if a machine has been upgraded from 10.6 to 10.7 or 10.8).
With this edge-case, the ShadowHashData key would be absent
in the user's plist, and thus the shadow_hash_data variable would
be false and not a Hash (as is expected). Previously, there was
no check for if the shadow_hash_data key was a Hash (it was assumed).
This commit adds that check and handles a false value without failing.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
Jeff McCune <jeff@puppetlabs.com>Committed on Dec 5 2012, 12:49 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUa0e4d13a83fe: Wrap user plist retrieval into get_users_plist()
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPU9ff9a804d88f: Do not fail if ShadowHashData doesn't exist (authored by Gary Larizza <gary@puppetlabs.com>).Dec 5 2012, 12:49 AM