windows AD 返回 8009030C:LdapErr:DSID-0C09043E,注释:AcceptSecurityContext 错误,数据 0,vece

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6068239/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 16:53:03  来源:igfitidea点击:

AD return 8009030C: LdapErr: DSID-0C09043E, comment: AcceptSecurityContext error, data 0, vece

javawindowsactive-directoryldap

提问by tangjie

I use Java's LdapContext to authenticate to one AD server. It works well on Windows7 home basic,enterprise, professional version.But AD throws resultcode 49 when the client is running on Windows7 ultimate and Vista ultimate. What's wrong with these two operating system? And how I fix that?

我使用 Java 的 LdapContext 对一台 AD 服务器进行身份验证。它在 Windows7 家庭基础版、企业版、专业版上运行良好。但是当客户端在 Windows7 Ultimate 和 Vista Ultimate 上运行时,AD 会抛出 resultcode 49。这两个操作系统有什么问题?我如何解决这个问题?

回答by Kirill Kovalenko

Error 49 is invalid credentials. It's a common mistake to use Windows logon name (e.g. JohnS) instead of LDAP DN (e.g. cn=John Smith, ou=Users, dc=example, dc=com). AD may also accept user principal name e.g. [email protected].

错误 49 是无效的凭据。使用 Windows 登录名(例如 JohnS)而不是 LDAP DN(例如 cn=John Smith、ou=Users、dc=example、dc=com)是一个常见的错误。AD 还可以接受用户主体名称,例如 [email protected]