when I create a user using JNDI to communicate to active directory , I am now getting LDAP Error 53 (WILL_NOT_PERFORM)
"
当我创建一个使用JNDI来与active directory通信的用户时,我现在得到了LDAP错误53 (WILL_NOT_PERFORM)”
I'm trying set password for the created user, Also I've disabled 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);
Problem creating object:
问题创建对象:
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?
关于我做错了什么或遗漏了什么?
1 个解决方案
#1
0
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.
您没有显示如何连接到活动目录服务器,但是如果您试图在非SSL/TLS的连接上设置密码,您将会得到这个错误。
Currently the URL to your A/D server probably looks like this:
目前,您的A/D服务器的URL可能是这样的:
ldap://(server address):389
ldap:/ /(服务器地址):389
Try changing it to:
试着改变它:
ldaps://(server address):636
ldap:/ /(服务器地址):636
#1
0
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.
您没有显示如何连接到活动目录服务器,但是如果您试图在非SSL/TLS的连接上设置密码,您将会得到这个错误。
Currently the URL to your A/D server probably looks like this:
目前,您的A/D服务器的URL可能是这样的:
ldap://(server address):389
ldap:/ /(服务器地址):389
Try changing it to:
试着改变它:
ldaps://(server address):636
ldap:/ /(服务器地址):636