Issue #935 has been updated by jamtur01.

Target version deleted (unplanned)


----------------------------------------
Bug #935: Enhance user type to ignore NIS & other pwnam directories when adding 
local accounts
http://reductivelabs.com/redmine/issues/show/935

Author: whaymand
Status: Closed
Priority: Normal
Assigned to: community
Category: 
Target version: 
Keywords: 
Complexity: Unknown
Patch: None
Affected version: 


When I go to add a user with the Puppet user type, it checks for the presence 
of the user by way of Puppet::Provider::NameService.  This is turn calls 
Etc.getpwnam.

If the user exists in the external directory (NIS, LDAP, whatever), it is 
returned, so the useradd provider goes to usermod to modify the user.  The user 
is not in /etc/passwd so usermod barfs (with a rubbish error message I must 
add).

Since the useradd provider only operates on local files, this (low-priority) 
request is to enhance Puppet to ignore external directories when checking for 
presence.

Presumably you need to call fgetpwent(3) rather than getpwent(3).  I do wonder 
even if Ruby has an interface to fgetpwent(3).  Or, shock horror, turn 
/etc/{passwd,shadow} into [[ParsedFiles]] with an alternative provider.





----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to