java 修改AD域 LDAP 属性值时,抱错
DirContextctx=newInitialDirContext(env);ModificationItem[]mods=newModificationItem[1]...
DirContext ctx = new InitialDirContext(env);
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("cn", this.familyName));
ctx.modifyAttributes(userName, mods);
一只报错
javax.naming.directory.SchemaViolationException: [LDAP: error code 67 - 000020B1: UpdErr: DSID-030F0DF9, problem 6004 (CANT_ON_RDN), data 0 展开
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("cn", this.familyName));
ctx.modifyAttributes(userName, mods);
一只报错
javax.naming.directory.SchemaViolationException: [LDAP: error code 67 - 000020B1: UpdErr: DSID-030F0DF9, problem 6004 (CANT_ON_RDN), data 0 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询