Skip to content

Fix 68578 runas domain#68711

Draft
harshang03 wants to merge 2 commits intosaltstack:masterfrom
harshang03:fix-68578-runas-domain
Draft

Fix 68578 runas domain#68711
harshang03 wants to merge 2 commits intosaltstack:masterfrom
harshang03:fix-68578-runas-domain

Conversation

@harshang03
Copy link

What does this PR do?

Fixes Windows cmd.script runas handling for domain/UPN users by resolving logon credentials via Win32 APIs, normalizing DOMAIN/user and user@domain forms, and using the resolved SAM name for permissions. Adds a small unit test for the username parser.

What issues does this PR fix or reference?

Fixes #68578

Previous Behavior

cmd.script rejected domain/UPN users as “Invalid user” because validation only checked local accounts.

New Behavior

cmd.script resolves domain/UPN users and proceeds with runas execution using the correct SAM/logon name.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: windows minion cmdmod.script runas does not work with domain users anymore.

1 participant