On Sun, Dec 19, 2010 at 9:45 PM, James Turnbull <[email protected]>wrote:
> Sean Millichamp wrote: > > The useradd provider can't create/modify/delete users in LDAP but > > if LDAP is configured on the host where Puppet is running the > > getpwent function used to obtain the list of current users for > > the instances method will list both local and LDAP users. > > > > This causes problems when trying to use the resources metatype to > > purge unmanaged resources on an LDAP-enabled system since userdel > > will never be able to remove them (even if you wanted it to). > > > > This patch overrides the NSS-based getpwent call in the inherited > > instances method to parse /etc/passwd to ensure all of the > > users found for useradd are local regardless of the configuration > > in nsswitch.conf. > > +1. > > James > > +1 from me too. This is really annoying, and a great fix to get in. Thanks Sean. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
