LsaLookupNames()API失败,错误代码为1789 ... [英] LsaLookupNames() API failing with error code 1789...

查看:99
本文介绍了LsaLookupNames()API失败,错误代码为1789 ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在为域用户调用LsaLookupNames()API,但失败并显示错误代码1789,即不受信任的连接.在调用LsaLookupNames()之前,我已成功使用POLICY_ALL_ACCESS标志调用了LsaOpenPolicy().谁能建议我一种方法来抑制此错误或如何使此连接受信任?

谢谢
Ajesh

Hi,

I am calling LsaLookupNames() API for a domain user and it is failing with error code 1789 i.e untrusted connection. Before calling LsaLookupNames() I was succesfully calling LsaOpenPolicy() with POLICY_ALL_ACCESS flag. Can anyone suggest me a method to suppress this error or how to make this connection as trusted?

Thanks
Ajesh

推荐答案

我找到了两种解决您问题的方法.
第一 [ [ ^ ]是在Windows 7或Windows Server 2008 R2上运行时出现的问题.对于此问题,Microsoft已在修补程序上发布.阅读文章,看看它是否适合您的情况.

注意: LsaLookupNames [ ^ ]函数指定 LsaLookupNames2 [
I found two possible solutions to your problem.
The first[^] suggest that the machine you are running your program needs to be part of the domain. So check if it is.
The second[^] is that is a problem with it running on Windows 7 or Windows Server 2008 R2. For this problem Microsoft have released on hotfix. Read the article and see if it applies to your situation.

Note: The documentation for the LsaLookupNames[^] function specifies that LsaLookupNames2[^] should be be used.


这篇关于LsaLookupNames()API失败,错误代码为1789 ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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