LDAP OperationNotSupportedException:错误代码 53 - WILL_NOT_PERFORM [英] LDAP OperationNotSupportedException : error code 53 - WILL_NOT_PERFORM

查看:63
本文介绍了LDAP OperationNotSupportedException:错误代码 53 - WILL_NOT_PERFORM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建一个使用 JNDI 与活动目录通信的用户时,我现在收到 LDAP 错误 53 (WILL_NOT_PERFORM).

when I create a user using JNDI to communicate to active directory , I am now getting LDAP Error 53 (WILL_NOT_PERFORM).

我正在尝试为创建的用户设置密码.我还禁用了用户下次登录时必须更改密码"选项.

I'm trying set password for the created user. Also I've disabled the 'User must change password at next logon' option.

attrs.put("unicodePwd", ""Test123"".getBytes("UTF-16LE") );
String newValue = Integer.toString(-1);  
ModificationItem mods[] = new ModificationItem[2];  
mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
                               new BasicAttribute("pwdLastSet"));  
mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE,
                               new BasicAttribute("pwdLastSet",  
                               newValue));  
ctx.modifyAttributes(userName, mods);  

创建对象的问题:

javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000001F: SvcErr: DSID-031A0FC0, problem 5003 (WILL_NOT_PERFORM), data 0 

对我做错了什么或遗漏了什么有任何想法吗?

Any ideas as to what I am doing wrong or missing?

推荐答案

您没有显示您如何连接到 Active Directory 服务器,但是如果您尝试通过连接设置密码,您将收到此错误不是 SSL/TLS.

You don't show how you're connecting to the Active Directory server, but you will get this error if you try to set a password over a connection that is not SSL/TLS.

目前,您的 A/D 服务器的 URL 可能如下所示:

Currently the URL to your A/D server probably looks like this:

ldap://(服务器地址):389

ldap://(server address):389

尝试将其更改为:

ldaps://(服务器地址):636

ldaps://(server address):636

这篇关于LDAP OperationNotSupportedException:错误代码 53 - WILL_NOT_PERFORM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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