Jira (PUP-10898) Retrieve current user by using the fully-qualified username and domain on Windows

7 views
Skip to first unread message

Luchian Nemes (Jira)

unread,
Mar 11, 2021, 7:08:03 AM3/11/21
to puppe...@googlegroups.com
Luchian Nemes updated an issue
 
Puppet / Improvement PUP-10898
Retrieve current user by using the fully-qualified username and domain on Windows
Change By: Luchian Nemes
Summary: Get Retrieve current user by using the fully - qualified current username and domain user name on Windows
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Austin Boyd (Jira)

unread,
Mar 1, 2022, 4:14:03 AM3/1/22
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1 2
Zendesk Ticket IDs: 42708 ,47445
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Selvakumar Azhagarsami (Jira)

unread,
Mar 1, 2022, 4:22:02 AM3/1/22
to puppe...@googlegroups.com

Selvakumar Azhagarsami (Jira)

unread,
Mar 1, 2022, 4:24:02 AM3/1/22
to puppe...@googlegroups.com
Selvakumar Azhagarsami commented on Improvement PUP-10898
 
Re: Retrieve current user by using the fully-qualified username and domain on Windows

luchian.nemes / josh DBS bank reported the same issue https://puppetlabs.zendesk.com/agent/tickets/47445, we have tried to upgrade the agent to the 6.22 version and still facing the same error. 

 [0;36mDebug: Facter: fact "facterversion" has resolved to "3.14.17". [0m
 [0;36mDebug: Facter: fact "aio_agent_version" has resolved to "6.22.1". [0m 

attaching the puppet debug trace output here for more details puppetagent_trace_debug_47445-01-03-22.loglink_attachment_7.gif

 [0;36mDebug: Could not retrieve raw SID bytes from 'Administrator': Failed to convert string SID: Administrator:  The security ID structure is invalid.  [0m [0;36mDebug: Failed to call LookupAccountNameW with account: Administrator:  No mapping between account names and security IDs was done.  [0m [0;36mDebug: Could not retrieve raw SID bytes from 'EC2AMAZ-NAUKKA2\Administrator': Failed to convert string SID: EC2AMAZ-NAUKKA2\Administrator:  The security ID structure is invalid.  [0m [0;36mDebug: Failed to call LookupAccountNameW with account: EC2AMAZ-NAUKKA2\Administrator:  No mapping between account names and security IDs was done.  [0m [1;31mError: Failed to apply catalog: undefined method `bytesize' for nil:NilClassC:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/api_types.rb:125:in `from_wide_string'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/api_types.rb:26:in `from_string_to_wide_string'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/sid.rb:184:in `string_to_sid_ptr'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/security.rb:431:in `add_access_allowed_ace'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/security.rb:659:in `block (7 levels) in set_security_descriptor'C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/puppet/util/windows/access_control_list.rb:28:in `block in each' 

Please check and let me know if we have any workaround to recommend to customer.

Reply all
Reply to author
Forward
0 new messages