Ask Your Question
1

Active Directory The specified account name is already a member of the group

asked 2014-05-14 11:30:59 -0500

FreshRob gravatar image

I am using puppet version 3.4.2 when adding a domain user to a local user group I get the following Errors

Active Directory The specified account name is already a member of the group

And

change from Domain Users,Example-Service Accounts to Administrators,Domain Users,Example-Service Accounts failed: (in OLE method `Add': ) OLE error code:80070562 in Active Directory The specified account name is already a member of the group

The Code is

             user { 'remote-user':
                    name => $remoteUser,    
                    ensure => present,
                    groups => "Administrators"
            }

$remoteUser is from hiera { "remoteUser" : "Domain\\example-service"}

According to this ticket https://projects.puppetlabs.com/issues/17031 This issue should be fixed, can anyone see what I have missed.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-03 17:07:58 -0500

I believe groups should be specified as groups => ['Administrators'], but I'm not completely sure that would resolve your problem.

Based on https://docs.puppetlabs.com/puppet/latest/reference/resourcesusergroup_windows.html, when it comes to domain users, we mention in our documentation that you can not use user or group resources to manage domain accounts/groups. So we recommend you use the group resource to ensure a domain user is in the 'Administrators' group.

Please note that we do have a ticket open addressing a bug where you need to specify complete list of members versus being additive. Please vote, comment, and/or watch that here https://tickets.puppetlabs.com/browse/PUP-2628.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-14 11:30:59 -0500

Seen: 3,301 times

Last updated: Oct 03 '14