Windows Vista下的LogonUser API [英] LogonUser API Under Windows Vista

查看:63
本文介绍了Windows Vista下的LogonUser API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用LogonUser API来针对正在运行的应用程序的域上下文之外的域来验证和认证用户.

例如,从一个域(或本地工作组)下运行的Web应用程序,我提示用户凭据针对另一个不受信任的域进行身份验证.我用名称,域和密码来调用LogonUser,它以成功/失败的方式答复,并允许我获取详细的Win32代码(与内置在新的Orcas AccountManagement功能中的反馈相对,甚至从有限的反馈中获得). DirectoryServices.)

For example, from a web application running under one domain (or under the local workgroup), I am prompting for user credentials to be authenticated against another domain that is untrusted. I call the LogonUser with the name, domain, and password, and it replies with success/failure and allows me to retreive a detailed Win32 code (versus the feedback that is being built into the new Orcas AccountManagement functionality - or even the limited feedback from the DirectoryServices).

对于在XP或Windows Server 2003上使用LogonUser调用并指定要进行身份验证的域(即使它是外部,不受信任的域),我没有任何问题.但是,Windows Vista似乎忽略了域参数,仅针对本地计算机进行身份验证.

I have no problem with this being successful under XP or Windows Server 2003 using the LogonUser call and specifying the domain that I want to authenticate against (even though it is an external, untrusted domain). But, Windows Vista seems to ignore the domain parameter and only authenticate against the local computer.

因此,如果远程域上的用户名和密码与本地用户名和密码相匹配,则该函数将返回成功.否则,它将返回未知的用户名或密码.我可以在参数中输入任何内容.

So, that if the username and password on the remote domain happens to match against a local username and password, the function returns successful. Otherwise, it returns unknown user name or password. I can put whatever I want into that parameter.

我从Internet上进行的搜索中了解到,一些文档指出该功能只能用于本地身份验证,但是domain参数的意义是什么?

I understand from searches that I have performed on the Internet that some documentation states that the function can only be used to authenticate locally, but then what is the point of the domain parameter?

是否有人在Vista下成功完成了不受信任的域身份验证,或者您可以推荐另一组可能实现我想要的API调用吗?

Has anyone had success with untrusted domain authentication under Vista, or can you recommend another set of API calls that might achieve what I want?

谢谢.

推荐答案

我有完全一样的问题,您找到解决此问题的方法了吗?

关于Phil


这篇关于Windows Vista下的LogonUser API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆