-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.Security.Principal.Windows outerloop tests fail if run as non-admin #58207
Comments
Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks Issue Details
|
All of those corresponds exceptions goes to
And LogonUser ... calls the following function
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-logonusera The account specified by lpszUsername, must have the necessary account rights. For example, to log on a user with the LOGON32_LOGON_INTERACTIVE flag, the user (or a group to which the user belongs) must have the SE_INTERACTIVE_LOGON_NAME account right. For a list of the account rights that affect the various logon operations, see Account Rights Constants. So, SeInteractiveLogonRight is required. My guess is that the user account that the test is running doesn't have this right. 1. Restrict this user right to legitimate users who must log on to the console of the device. |
@krwq I think we have no protection against tests that require admin, right? as test runs are all run elevated. |
Sometimes we guard tests with |
It looks like this got fixed by #62559. The failing tests are now conditioned on Given that I think this can be closed. |
The text was updated successfully, but these errors were encountered: