- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1
我知道“52e”代码是用户名有效但密码无效的情况。我在 apache studio 中使用相同的用户名和密码,我能够成功建立与 LDAP 的连接。
这是我的java代码
String userName = "*******";
String password = "********";
String base ="DC=PSLTESTDOMAIN,DC=LOCAL";
String dn = "cn=" + userName + "," + base;
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://******");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, dn);
env.put(Context.SECURITY_CREDENTIALS, password);
LDAPAuthenticationService ldap = new LDAPAuthenticationService();
// LdapContext ctx;
DirContext ctx = null;
try {
ctx = new InitialDirContext(env);
我的错误在这一行:ctx = new InitialDirContext(env);
我不知道到底是什么导致了这个错误。
最佳答案
数据 52e - Returns when username is valid but password/credential is invalid.
你可能需要类似的东西
String dn = "cn=" + userName + "," + "CN=Users," + base;
关于authentication - LDAP:错误代码 49 - 80090308:LdapErr:DSID-0C0903A9,注释:AcceptSecurityContext 错误,数据 52e,v1db1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31411665/
我正在尝试在基于 http.sys 的服务器(使用 IOCP)中实现单点登录,但我遇到了 AcceptSecurityContext 的奇怪问题,它会随机失败并返回 SEC_E_LOGON_DENIE
我有一个简单的 HTTP 服务器,它使用协商协议(protocol)对客户端进行身份验证。它使用 SSPI 调用来获取服务器凭据并建立安全上下文。服务器在域中并代表域用户运行。一切正常,如果我以控制台
我有问题 。这是我使用 ldap 进行身份验证的代码 在 Spring ,但它有错误告诉我 AcceptSecurityContext。 javax.naming.AuthenticationExce
这是设置。在 ASP.Net 站点上,我们希望在特定页面上进行 NTLM 身份验证。这将工作的方式是将有一个模块只响应那些页面,然后执行 NTLM 身份验证所需的来回请求/响应。 NTLM 并不是那么
我正在将 LDAP 身份验证添加到 spring-boot 应用程序中。所有设置均已相应设置,即使在提供正确的凭据后,我仍收到“LDAP 错误代码 49 AcceptSecurityContext 错
我使用 Java 的 LdapContext 向一台 AD 服务器进行身份验证。它在Windows7家庭普通版、企业版、专业版上运行良好。但是当客户端在Windows7旗舰版和Vista旗舰版上运行时
LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 5
LDAP: error code 49 - 80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 5
LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 5
我在日志中收到以下错误。尽管我们提供了正确的用户名和密码来登录网站。 LDAP 出现此错误。 : [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09
我是一名优秀的程序员,十分优秀!