自定义opendj属性后无法在openam中创建新用户

时间:2014-07-30 07:44:44

标签: ldap openam

在opendj中向person添加自定义属性后,当我在openam中创建一个新用户tom时,我得到了org.forgerock.openam.idrepo.ldapDJLADPv3Repo一个LDAP异常.65

调试日志如下: org.forgerock.openam.idrepo.ldapDJLADPv3Repo包含LDAP异常.65

  DJLDAPv3Repo:07/30/2014 03:17:24:189 CST: Thread[http-8020-2,5,main] 
  ERROR: Unable to add a new entry: tom attrMap: {givenname=[tom], objectclass=           [devicePrintProfilesContainer, person, sunIdentityServerLibertyPPService,    sunFederationManagerDataStore, inetorgperson, iPlanetPreferences, iplanet-am-auth-configuration-service, organizationalperson, sunFMSAML2NameIdentifier, inetuser, forgerock-am-dashboard-service, iplanet-am-managed-person, iplanet-am-user-service, sunAMAuthAccountLockout, packt-services-user-class, top], inetuserstatus=[Active], uid=[tom], userpassword=xxx..., sn=[tom], cn=[tom]} 
  org.forgerock.opendj.ldap.ConstraintViolationException: Object Class Violation:  Entity uid=tom,ou=people,dc=example,dc=com encouter LDAP Schema configuration requirements,Cause it contains an unknown objectclass sunAMAuthAccountLockout 
  at org.forgerock.opendj.ldap.ErrorResultException.newErrorResult(ErrorResultException.java:173     ) 
at  com.forgerock.opendj.ldap.AbstractLDAPFutureResultImpl.setResultOrError(AbstractLDAPFutureR esultImpl.java:125) 
   at com.forgerock.opendj.ldap.LDAPClientFilter$1.addResult(LDAPClientFilter.java:94) 
   at com.forgerock.opendj.ldap.LDAPClientFilter$1.addResult(LDAPClientFilter.java:79) 
   at com.forgerock.opendj.ldap.LDAPReader.decodeAddResult(LDAPReader.java:310) 
   at com.forgerock.opendj.ldap.LDAPReader.decodeProtocolOp(LDAPReader.java:1149) 
   at com.forgerock.opendj.ldap.LDAPReader.decode(LDAPReader.java:166) 
   at com.forgerock.opendj.ldap.LDAPClientFilter.handleRead(LDAPClientFilter.java:499) 
   at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) 
   at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) 
   at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) 
   at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) 
   at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) 
   at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) 
   at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:837) 
   at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) 
   at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) 
  at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) 
   at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) 
   at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) 
   at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) 
   at java.lang.Thread.run(Thread.java:745) 

我将packt-services-user-class添加到扩展的opendj中,我不知道为什么sunAMAuthAccountLockout在实体中

我该如何解决?

由于

1 个答案:

答案 0 :(得分:1)

我通过根据日志和嵌入式操作数

添加所有缺少的对象类和属性来解决此问题