Jira (PUP-11121) LogonAccount in Service Resource doesn't detect AD account

1 view
Skip to first unread message

Bartosz Blizniak (Jira)

unread,
Jun 17, 2021, 5:48:02 AM6/17/21
to puppe...@googlegroups.com
Bartosz Blizniak created an issue
 
Puppet / Bug PUP-11121
LogonAccount in Service Resource doesn't detect AD account
Issue Type: Bug Bug
Affects Versions: PUP 7.6.0
Assignee: Unassigned
Attachments: Screenshot 2021-06-15 195925.png, Screenshot 2021-06-15 200107.png, Screenshot 2021-06-16 093333.png, Screenshot 2021-06-16 093414.png, mysql.pp, mysql.yaml
Components: Windows
Created: 2021/06/17 2:47 AM
Due Date: 2021/06/22
Labels: support
Priority: Major Major
Reporter: Bartosz Blizniak

Puppet Version: 7.6.0
Puppet Server Version: 2021.1
OS Name/Version: Primary RHEL8 & Agent(issues) Windows Server 2019

The customer is having issues with running MSSQL service by passing `logonaccount` parameters. 

Error: Failed to apply catalog: Parameter logonpassword failed on Service[MSSQLSERVER]: Failed to update service configuration: The account name is invalid or does not exist, or the password is invalid for the account name specified. (file: /etc/puppetlabs/code/modules/profiles/manifests/windows/mssql.pp, line: 32)

I have attached the code provided by the customer and also a screenshot of their AD structure. 

The customer has tried to insert different combinations of LogonAccount (also trying to pass full path):

1. PILOT\rma_sql_svc
2. PILOT
rma_sql_svc
3. pilot.usda.lab\rma_sql_svc
4. pilot.usda.lab
rma_sql_svc
6. rma_s...@pilot.usda.lab

Code snippet:

service {'MSSQLSERVER':
   logonaccount => 'pilot.usda.lab
rma_sql_svc',

   logonpassword => 'Password1234', #sensitive
   ensure => 'running'}

**The puppet service account was given both Domain administrator and local administrator rights and nothing has worked. 

The customer has also stated:

"When we install puppet, it is not yet joined to the domain. Puppet will join the server to the domain after the first run of its agent. Until then it has a local service account assigned.

When I try to tell puppet to change its account from local service to the domain account, I get an access denied (assuming the local account is unable to do the lookup of the domain account)."

Desired Behavior: Run the MSSQL with a specific account without giving puppet service administrator rights.

Actual Behavior: Fails to find the domain account specified.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Luchian Nemes (Jira)

unread,
Jun 17, 2021, 6:16:01 AM6/17/21
to puppe...@googlegroups.com

Luchian Nemes (Jira)

unread,
Jun 17, 2021, 6:16:02 AM6/17/21
to puppe...@googlegroups.com

Bartosz Blizniak (Jira)

unread,
Jun 17, 2021, 6:24:02 AM6/17/21
to puppe...@googlegroups.com
Bartosz Blizniak updated an issue
Change By: Bartosz Blizniak
*Puppet Version: 7.6.0*
*Puppet Server Version: 2021.1*
*OS Name/Version: Primary RHEL8 & Agent(issues) Windows Server 2019*


The customer is having issues with running MSSQL service by passing `logonaccount` parameters. 

{{Error: Failed to apply catalog: Parameter logonpassword failed on Service[MSSQLSERVER]: Failed to update service configuration: The account name is invalid or does not exist, or the password is invalid for the account name specified. (file: /etc/puppetlabs/code/modules/profiles/manifests/windows/mssql.pp, line: 32)}}

I have attached the code provided by the customer and also a screenshot of their AD structure. 

The customer has tried to insert different combinations of LogonAccount (also trying to pass full path):

1. PILOT\rma_sql_svc
2. PILOT
\\
rma_sql_svc
3. pilot.usda.lab\rma_sql_svc
4. pilot.usda.lab
\\
rma_sql_svc
6. [rma_s...@pilot.usda.lab|mailto:rma_s...@pilot.usda.lab]


Code snippet:

{{service {'MSSQLSERVER':}}
{{   logonaccount => 'pilot.usda.lab
\\ }}
{{
rma_sql_svc',}}

{{   logonpassword => 'Password1234', #sensitive}}
{{   ensure => 'running'}}{{}}}

**The puppet service account was given both Domain administrator and local administrator rights and nothing has worked. 

The customer has also stated:

"When we install puppet, it is not yet joined to the domain. Puppet will join the server to the domain after the first run of its agent. Until then it has a local service account assigned.

When I try to tell puppet to change its account from local service to the domain account, I get an access denied (assuming the local account is unable to do the lookup of the domain account)."

*Desired Behavior:* Run the MSSQL with a specific account without giving puppet service domain administrator rights (just local) .

*Actual Behavior:* Fails to find the domain account specified.

 

Austin Boyd (Jira)

unread,
Jun 17, 2021, 6:25:01 AM6/17/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 44707

Austin Boyd (Jira)

unread,
Jun 17, 2021, 6:25:01 AM6/17/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Labels: jira_escalated support
Reply all
Reply to author
Forward
0 new messages