当前位置: 技术问答>java相关
求教LDAP高手:关于在iPlanet中添加自定义属性的方法?
来源: 互联网 发布时间:2015-06-08
本文导语: 我在JAVA编写的代码中试图添加自定义属性,总是不成功。出错信息如下:javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Object C lass Violation]; remaining name 'uid=kkk6,ou=English,dc=foo,dc=com' at com.sun....
我在JAVA编写的代码中试图添加自定义属性,总是不成功。出错信息如下:javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - Object C
lass Violation]; remaining name 'uid=kkk6,ou=English,dc=foo,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2767)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2682)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2488)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:334)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:293)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(ComponentContext.jav
a:595)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialComposit
eContext.java:182)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialComposit
eContext.java:172)
at javax.naming.InitialContext.bind(InitialContext.java:358)
at JNDIAddEnglish.main(JNDIAddEnglish.java:49)
请有这方面经验的高手指教。
lass Violation]; remaining name 'uid=kkk6,ou=English,dc=foo,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2767)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2682)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2488)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:334)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:293)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(ComponentContext.jav
a:595)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialComposit
eContext.java:182)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialComposit
eContext.java:172)
at javax.naming.InitialContext.bind(InitialContext.java:358)
at JNDIAddEnglish.main(JNDIAddEnglish.java:49)
请有这方面经验的高手指教。
|
以前曾经研究过一段时间的ldap,好长时间没看,全忘了。
记得好象往ldap里面bind一个object时,这个object的类型会有一个 schema来约束。照异常来看,是你往里面bind的object违反了该约束。
ibm的redbook里面有本关于ldap的书,不妨看看。
记得好象往ldap里面bind一个object时,这个object的类型会有一个 schema来约束。照异常来看,是你往里面bind的object违反了该约束。
ibm的redbook里面有本关于ldap的书,不妨看看。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。