directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DIRSERVER-2213) Importing LDIF via Apache Directory Studio generates error
Date Thu, 23 Nov 2017 22:07:00 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16264764#comment-16264764
] 

Emmanuel Lecharny edited comment on DIRSERVER-2213 at 11/23/17 10:06 PM:
-------------------------------------------------------------------------

HI Emmanuel,

So I've gotten through that error message, and I'm back to my original problem of not being
able to update a schema object. Seems like any time I try to update an existing object, it
fails. 
I've tried to add two new attributes to my schema object called gcbipb-client, and the attributes
seem to import, but it fails on the object class. It's telling me the OID is not unique, but
I know it's not, as it's already imported. I can't seem to update it.. Do you have any thoughts
as to why?

{noformat}
#!ERROR [LDAP: error code 80 - OTHER: failed for MessageType : ADD_REQUEST 
Message ID : 101     
Add Request : Entry     
dn[n]: m-oid=1.3.6.1.4.1.18060.0.4.3.3.1, ou=objectclasses, cn=gcbipb-custom, ou=schema  
  
objectclass: metaObjectClass     
objectclass: metaTop     
objectclass: top     
m-may: AccessCEHRA     
m-may: AccessBICC     
m-may: TenantPrimary     
m-may: TenantSecondary     
m-may: EntrustDN     
m-may: AccessAUDIT     
m-may: Access2000     
m-may: AccessAAFC     
m-may: AccessECCC     
m-may: AccessINFR     
m-may: AccessISEDC     
m-may: AccessPSPC     
m-may: AccessVAC     
m-may: Branch     
m-may: Region     
m-description: GCBIPB custom codes     
m-name: gcbipb-Client     
m-supObjectClass: inetorgperson     
m-oid: 1.3.6.1.4.1.18060.0.4.3.3.1 : 
ERR_335 Oid 1.3.6.1.4.1.18060.0.4.3.3.1 for new schema entity is not unique.: org.apache.directory.api.ldap.model.exception.LdapOtherException:
ERR_335 
Oid 1.3.6.1.4.1.18060.0.4.3.3.1 for new schema entity is not unique.  	
at org.apache.directory.server.core.api.schema.registries.synchronizers.AbstractRegistrySynchronizer.checkOidIsUnique(AbstractRegistrySynchronizer.java:174)
 	at org.apache.directory.server.core.api.schema.registries.synchronizers.ObjectClassSynchronizer.add(ObjectClassSynchronizer.java:102)
 	at org.apache.directory.server.core.api.schema.registries.synchronizers.RegistrySynchronizerAdaptor.add(RegistrySynchronizerAdaptor.java:177)
 	at org.apache.directory.server.core.api.schema.SchemaPartition.add(SchemaPartition.java:278)
 	at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:361)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor$1.add(BaseInterceptor.java:107)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.journal.JournalInterceptor.add(JournalInterceptor.java:139)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.trigger.TriggerInterceptor.add(TriggerInterceptor.java:297)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.event.EventInterceptor.add(EventInterceptor.java:229)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.subtree.SubentryInterceptor.add(SubentryInterceptor.java:1018)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.add(CollectiveAttributeInterceptor.java:134)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.add(OperationalAttributeInterceptor.java:310)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1081)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.hash.ConfigurableHashingInterceptor.add(ConfigurableHashingInterceptor.java:90)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:188)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(AdministrativePointInterceptor.java:1189)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:518)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:247)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:407)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:131)
 	at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:397)
 	at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:251)
 	at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:235)
 	at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:57)
 	at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:39)
 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
 	at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:243)
 	at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:216)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
 	at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)  	at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:476)
 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:430)
 	at java.lang.Thread.run(Unknown Source)  ]
{noformat}

  Jeremy Jackson
  Business Intelligence Consultant / Consultant d'intelligence d'affaires
 IBM Cognos Infrastructure Administrator/  Administrateur Infrastructure IBM Cognos
  Business Intelligence Competency Centre - Centre de compétence d'informatique décisionnelle
 613-293-4288 - Mobile
 jeremy.jackson@tpsgc-pwgsc.gc.ca 





was (Author: jeremy.jackson):
HI Emmanuel,

So I've gotten through that error message, and I'm back to my original problem of not being
able to update a schema object. Seems like any time I try to update an existing object, it
fails. 
I've tried to add two new attributes to my schema object called gcbipb-client, and the attributes
seem to import, but it fails on the object class. It's telling me the OID is not unique, but
I know it's not, as it's already imported. I can't seem to update it.. Do you have any thoughts
as to why?

{noformat}
#!ERROR [LDAP: error code 80 - OTHER: failed for MessageType : ADD_REQUEST 
Message ID : 101     
Add Request : Entry     
dn[n]: m-oid=1.3.6.1.4.1.18060.0.4.3.3.1, ou=objectclasses, cn=gcbipb-custom, ou=schema  
  objectclass: metaObjectClass     
objectclass: metaTop     
objectclass: top     
m-may: AccessCEHRA     
m-may: AccessBICC     
m-may: TenantPrimary     
m-may: TenantSecondary     
m-may: EntrustDN     
m-may: AccessAUDIT     
m-may: Access2000     
m-may: AccessAAFC     
m-may: AccessECCC     
m-may: AccessINFR     
m-may: AccessISEDC     
m-may: AccessPSPC     
m-may: AccessVAC     
m-may: Branch     
m-may: Region     
m-description: GCBIPB custom codes     
m-name: gcbipb-Client     
m-supObjectClass: inetorgperson     
m-oid: 1.3.6.1.4.1.18060.0.4.3.3.1 : 
ERR_335 Oid 1.3.6.1.4.1.18060.0.4.3.3.1 for new schema entity is not unique.: org.apache.directory.api.ldap.model.exception.LdapOtherException:
ERR_335 
Oid 1.3.6.1.4.1.18060.0.4.3.3.1 for new schema entity is not unique.  	
at org.apache.directory.server.core.api.schema.registries.synchronizers.AbstractRegistrySynchronizer.checkOidIsUnique(AbstractRegistrySynchronizer.java:174)
 	at org.apache.directory.server.core.api.schema.registries.synchronizers.ObjectClassSynchronizer.add(ObjectClassSynchronizer.java:102)
 	at org.apache.directory.server.core.api.schema.registries.synchronizers.RegistrySynchronizerAdaptor.add(RegistrySynchronizerAdaptor.java:177)
 	at org.apache.directory.server.core.api.schema.SchemaPartition.add(SchemaPartition.java:278)
 	at org.apache.directory.server.core.shared.partition.DefaultPartitionNexus.add(DefaultPartitionNexus.java:361)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor$1.add(BaseInterceptor.java:107)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.journal.JournalInterceptor.add(JournalInterceptor.java:139)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.trigger.TriggerInterceptor.add(TriggerInterceptor.java:297)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.event.EventInterceptor.add(EventInterceptor.java:229)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.subtree.SubentryInterceptor.add(SubentryInterceptor.java:1018)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.collective.CollectiveAttributeInterceptor.add(CollectiveAttributeInterceptor.java:134)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.add(OperationalAttributeInterceptor.java:310)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1081)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.hash.ConfigurableHashingInterceptor.add(ConfigurableHashingInterceptor.java:90)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:188)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(AdministrativePointInterceptor.java:1189)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:518)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:247)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:407)
 	at org.apache.directory.server.core.api.interceptor.BaseInterceptor.next(BaseInterceptor.java:341)
 	at org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:131)
 	at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:397)
 	at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:251)
 	at org.apache.directory.server.core.shared.DefaultCoreSession.add(DefaultCoreSession.java:235)
 	at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:57)
 	at org.apache.directory.server.ldap.handlers.request.AddRequestHandler.handle(AddRequestHandler.java:39)
 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:207)
 	at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56)
 	at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:243)
 	at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:216)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
 	at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
 	at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74)  	at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63)
 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:476)
 	at org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:430)
 	at java.lang.Thread.run(Unknown Source)  ]
{noformat}

  Jeremy Jackson
  Business Intelligence Consultant / Consultant d'intelligence d'affaires
 IBM Cognos Infrastructure Administrator/  Administrateur Infrastructure IBM Cognos
  Business Intelligence Competency Centre - Centre de compétence d'informatique décisionnelle
 613-293-4288 - Mobile
 jeremy.jackson@tpsgc-pwgsc.gc.ca 




> Importing LDIF via Apache Directory Studio generates error
> ----------------------------------------------------------
>
>                 Key: DIRSERVER-2213
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2213
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 2.0.0-M23
>         Environment: Windows server 2012
>            Reporter: Jeremy Jackson
>            Priority: Blocker
>
> After installing Apcheds on windows and using Directory Studio to import LDIF, I continually
receive the following type error messages:
> {noformat}
> # nga-admin, bicc_admin, groups, gcbipb
> #!RESULT ERROR
> #!CONNECTION ldap://160.106.131.42:10389
> #!DATE 2017-11-09T14:08:19.252
> #!ERROR [LDAP: error code 32 - NO_SUCH_OBJECT: failed for MessageType : 
> ADD_REQUEST 
> Message ID : 15     
> Add Request : Entry     
> dn[n]: uid=nga-admin,cn=bicc_admin,ou=groups,o=gcbipb     
> objectClass: top    
> objectClass: person     
> objectClass: organizationalPerson    
>  objectClass: inetOrgPerson     
> objectClass: gcbipb-Client     
> TenantPrimary: 1000     
> cn: Nga Tran     
> creatorsName: 0.9.2342.19200300.100.1.1=admin,2.5.4.11=system     
> subschemaSubentry: cn=schema     
> userPassword: 0x7B 0x53 0x53 0x48 0x41 0x7D 0x7A 0x74 0x6C 0x6F 0x66 0x7A 0x41 0x45 0x55
0x2F ...     
> entryUUID: bfcc7260-f921-4a50-9b49-8f2a519bfd6d     
> uid: nga-admin     
> pwdHistory: 0x32 0x30 0x31 0x37 0x31 0x31 0x30 0x38 0x32 0x31 0x30 0x31 0x30 0x33 0x2E
0x31 ...     
> TenantSecondary: 9993     
> nbSubordinates: 0     
> entryParentId: 3a33a4c1-5ad2-46f7-81ba-0653dd943fb4     
> nbChildren: 0     
> createTimestamp: 20171108210103.102Z     
> entryCSN: 20171108210103.102000Z#000000#001#000000     
> sn: Tran     
> entryDN: uid=nga-admin,cn=bicc_admin,ou=groups,o=gcbipb
> : ERR_251_PARENT_NOT_FOUND Parent cn=bicc_admin,ou=groups,o=gcbipb not found]
> {noformat}
> .
> I'm trying to create a backup and restore procedure, but I'm unable to import an exported
ldif file.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message