Jira (PUP-10057) User resource on Windows confuses domain and local accounts

26 views
Skip to first unread message

Kevin Reeuwijk (JIRA)

unread,
Oct 1, 2019, 5:12:03 AM10/1/19
to puppe...@googlegroups.com
Kevin Reeuwijk created an issue
 
Puppet / Bug PUP-10057
User resource on Windows confuses domain and local accounts
Issue Type: Bug Bug
Affects Versions: PUP 6.4.3
Assignee: Unassigned
Components: Types and Providers, Windows
Created: 2019/10/01 2:11 AM
Priority: Normal Normal
Reporter: Kevin Reeuwijk

Puppet Version: 6.4.3 (PE Agent from PE 2019.1.1)
Puppet Server Version: PE 2019.1.1
OS Name/Version: Tested against Windows 2016

Behavior of the user resource goes wonky when an AD account exists that has the same name as the local user account you’re trying to manage on a Windows server that is domain-joined.

Desired Behavior:

Enforcing configuration of local user accounts on Windows domain-member servers works normally.

Actual Behavior:

When a user account exists locally on a member server, and a user account with the same name also exists in the Active Directory domain, this happens when setting `ensure=>absent` on that local user account:

  • The first puppet run, the local user account is detected, and removed
  • The second puppet run, the provider seems to detect the domain user account, and tries to delete the account again (from the local user database), which fails with this error:

Could not set 'absent' on ensure: (in OLE method `Delete': )
OLE error code:800708AD in Active Directory
The user name could not be found.
HRESULT error code:0x80020009
Exception occurred. (file: /etc/puppetlabs/code/environments/development/site-modules/profile/manifests/base.pp, line: 98)
Wrapped exception:
(in OLE method `Delete': )
OLE error code:800708AD in Active Directory
The user name could not be found.
HRESULT error code:0x80020009
Exception occurred.
 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Oct 1, 2019, 9:15:03 AM10/1/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 1, 2019, 9:15:03 AM10/1/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 16, 2019, 5:05:06 AM10/16/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage , PR - Triage

Mihai Buzgau (JIRA)

unread,
Oct 30, 2019, 6:25:02 AM10/30/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Oct 30, 2019, 6:25:03 AM10/30/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage, PR NW - Triage 2019-11-13

Gabriel Nagy (JIRA)

unread,
Nov 6, 2019, 4:51:02 AM11/6/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Nov 14, 2019, 5:28:08 AM11/14/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage, NW - 2019-11-13 , 2019-11-27

Mihai Buzgau (JIRA)

unread,
Nov 27, 2019, 4:51:09 AM11/27/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: PR - Triage, NW - 2019-11-13, 2019-11-27 , 2019-12-11

Josh Cooper (JIRA)

unread,
Jan 6, 2020, 6:17:03 PM1/6/20
to puppe...@googlegroups.com

Josh Cooper (JIRA)

unread,
Jan 6, 2020, 6:17:04 PM1/6/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 6.12.0
Fix Version/s: PUP 6.4.5
Fix Version/s: PUP 5.5.18

Steven Towill (JIRA)

unread,
Jan 6, 2020, 11:57:03 PM1/6/20
to puppe...@googlegroups.com
Steven Towill commented on Bug PUP-10057
 
Re: User resource on Windows confuses domain and local accounts

6.12.0 is not fixed and I suspect the other versions will have the same issue.

It breaks the user resource when creating and maintaining a user.

See comment placed in PA-30363 here: https://tickets.puppetlabs.com/browse/PA-3063?focusedCommentId=710339&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-710339

 

Jean Bond (JIRA)

unread,
Jan 8, 2020, 2:47:04 PM1/8/20
to puppe...@googlegroups.com
Jean Bond updated an issue
 
Change By: Jean Bond
Release Notes Summary: Puppet no longer checks for domain users or groups when managing local resources on Windows. This fixes a local user management issue where an AD Active Directory account existed with the same name as the local user.
Reply all
Reply to author
Forward
0 new messages