Win32 LogonUser 函数需要什么权限?
假设我想在代码中为具有 uid Bob 的用户运行 LogonUser 函数,那么 Bob 必须拥有什么权限才能调用此函数以 Bob 身份成功登录?
Suppose that I want to run the LogonUser function in my code for a user with uid Bob, what permissions must Bob have for me to be able to call this function to log in as Bob successfully?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道是否有一个列表,因为安全系统的某些部分可以使用自定义“插件”(身份验证包,安全支持提供商接口/安全包 和 GINA/凭据提供程序)他们可能还有其他要求。
在默认系统上,它可能是这样的:
如果您只想以另一个用户身份启动进程,您可能需要使用 CreateProcessWithLogonW,如果您只想验证凭据此知识库文章 a> 有一个不使用 LogonUser 的代码示例(不过,它似乎可能存在一些来宾帐户问题)
I don't know if there is a list anywhere since parts of the security system can use custom "plugins" (Authentication Packages, Security Support Provider Interface/Security packages and GINA/Credential Providers) and they might have other requirements.
On a default system it probably goes something like this:
If you just want to start a process as another user you might want to use CreateProcessWithLogonW, if you just want to validate the credentials this KB article has a code example that does not use LogonUser (It seems like it might have some guest account issues though)