HomePhorge

(#4855) Fix group resource in OS X
90bdef6893d5Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

(#4855) Fix group resource in OS X

The group provider on OS X uses “dseditgroup” to manage group
membership. Due to Apple bug 8481241 (“dseditgroup can’t remove unknown
users from groups”), however, if the puppet group provider needs to
remove a non-existant user from a group it manages, it will fail.

To remedy this, in the meantime, the provider will call dscl to delete
the non-existant member from the group. If that fails then the error
is rescued and feedback is provided.

Details

Provenance
Gary Larizza <gary@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUfe795377f547: Merge pull request #323 from glarizza/bug/2.7.x/fix_launchd_spec
Branches
Unknown
Tags
Unknown

Event Timeline

Gary Larizza <gary@puppetlabs.com> committed rPU90bdef6893d5: (#4855) Fix group resource in OS X (authored by Gary Larizza <gary@puppetlabs.com>).Jan 11 2012, 5:31 AM