Issue #15560 has been updated by Josh Cooper. Status changed from In Topic Branch Pending Review to Merged - Pending Release
Merged into 2.7.x in commit 2495505 <pre> Previously, specifying `managehome => true` on a user resource would have no effect even though the Windows ADSI user provider claimed to support the `manages_homedir` feature. On Windows, a user's homedir (profile) is not created when the user account is created, but when the user logs in for the first time. As a result, if Puppet created the user account, and then tried to apply another resource that depended on the existence of the user's home directory, such as ssh keys, then Puppet would fail. This commit changes the Windows ADSI user provider such that if `managehome` is enabled, then it will load and unload the user's profile. This will create the profile if necessary and apply the appropriate DACL to the profile and subdirectories. This commit follows the Microsoft recommended way of creating a user profile: http://support.microsoft.com/kb/196070/en-us Previously, if Puppet deleted a user account and `managehome` was true, then Puppet would leave behind the user profile on disk, e.g. C:\Users\%USERNAME%. In keeping with the semantics of the `manage_homedir` feature, this commit modifies the Windows ADSI user provider to delete the user profile when `managehome` is true. On systems before Vista SP1, the Win32_UserProfile class does not exist. Worse, there is no reliable and built-in way to delete user profiles. There is the widely used delprof.exe utility included in the 2003 Resource Kit, but it's not part of the core OS and it doesn't work in later versions of Windows. As a result, the Windows ADSI provider will make a best effort to delete the user profile, and that should work on Vista SP1 and later systems. On earlier systems, we will warn that it's not supported. This commit also adds an acceptance test to verify the home directory gets created, and deleted (on systems that support it). </pre> ---------------------------------------- Bug #15560: Puppet on Windows doesn't automatically create user home directories when managehome=>true https://projects.puppetlabs.com/issues/15560#change-70697 Author: Adam Roben Status: Merged - Pending Release Priority: Normal Assignee: Josh Cooper Category: windows Target version: 2.7.x Affected Puppet version: 2.7.6 Keywords: windows user managehome Branch: https://github.com/puppetlabs/puppet/pull/1088 The user type provider on Windows claims to support the managehome property. But setting managehome=>true doesn't actually create the user's home directory. In fact, it seems to have no effect at all. The user's home directory path gets set in the user itself, but no directory is created on disk. -- 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://projects.puppetlabs.com/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.
