LDAP:错误代码67-NOT_ALLOWED_ON_RDN:修改请求失败

问题描述

我无法修改eclipse中的属性修改操作尝试删除条目2.5.4.3 =某人2,2.5.4.11 = company1,2.5.4.6 =瑞典人,0.9.2342.19200300.100.1.25 = jayway,0.9.2342.19200300.100.1上用于2.5.4.3的RDN属性值.25 = se并违反架构约束

使用此代码修改属性属性attr = new BasicAttribute(“ cn”,“ new”); ModificationItem项目=新的ModificationItem(DirContext.REPLACE_ATTRIBUTE,attr); lt.modifyAttributes(dn,new ModificationItem [] {item});

        lt.modifyAttributes(context);
        

使用https://docs.spring.io/spring-ldap/docs/2.3.3.RELEASE/reference/#spring-ldap-testing-unboundid创建本地ldap服务器。 setup-data.ldif中的数据 dn:cn = Some Person2,ou = company1,c = Sweden,dc = jayway,dc = se 对象类:顶部 对象类:人 对象类:organizationalPerson 对象类:inetorgPerson uid:some.person2 userPassword:密码 cn:Some Person2 sn:Person2 描述:瑞典,公司1,某人2 电话号码:+46 555-654321

<ldap:context-source id="contextSource"
                     password="${sample.ldap.password}"
                     url="${sample.ldap.url}"
                     username="${sample.ldap.userDn}"
                     base="${sample.ldap.base}" />

<ldap:ldap-template id="ldapTemplate" context-source-ref="contextSource"/>
    <!--
        This is for test and demo purposes only - EmbeddedLdapServerfactorybean launches an in-process
        LDAP server.
    -->
    <bean id="embeddedLdapServer" class="org.springframework.ldap.test.EmbeddedLdapServerfactorybean">
        <property name="partitionName" value="example"/>
        <property name="partitionSuffix" value="${sample.ldap.base}" />
        <property name="port" value="18880" />
    </bean>
</beans>

<beans profile="no-apacheds">
    <!-- Populates the LDAP server with initial data -->
    <bean class="org.springframework.ldap.test.LdifPopulator">
        <property name="contextSource" ref="contextSource" />
        <property name="resource" value="classpath:/setup_data.ldif" />
        <property name="base" value="${sample.ldap.base}" />
        <property name="clean" value="${sample.ldap.clean}" />
        <property name="defaultBase" value="dc=jayway,dc=se" />
    </bean>
</beans>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...