You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Guofeng Zhang <gu...@radvision.com> on 2010/03/26 06:15:14 UTC
How to add new schema to ApacheDS 1.5.6 by LDIF file
Hi,
I test how to add my specific schame into Apache DS 1.5.6.
In 1.5.5, my schema is compiled by apacheds-core-plugin, it works well.
In 1.5.6, the schema subsystem was completely refactored, so I try to
use LDIF fie to do it. I used Apache Directory Studio to export the
schema in Apache DS 1.5.5 to the LDIF file, then copy it to ldif
directory for ApacheDS 1.5.6 to load it. But I got the following error
when I launch 1.5.6. I also paste the schema LDIF file in the mail.
Your help is appreciated.
[12:58:47] WARN
[org.apache.directory.shared.ldap.schema.loader.ldif.SchemaEntityFactory
] - ERR_10026 Cannot add the AttributeType
m-oid=0.0.8.350.1.1.8.1.1,ou=attributeTypes,cn=callPreferenceURIObject,o
u=schema, as the associated schema (callpreferenceuriobject) is not
loaded
[12:58:47] INFO
[org.apache.directory.server.protocol.shared.store.LdifFileLoader] -
Could not create entry ClientEntry
dn:
m-oid=0.0.8.350.1.1.8.1.1,ou=attributeTypes,cn=callPreferenceURIObject,o
u=schema
objectclass: metaAttributeType
objectclass: metaTop
objectclass: top
m-singlevalue: FALSE
m-collective: FALSE
m-oid: 0.0.8.350.1.1.8.1.1
m-obsolete: FALSE
m-description: Labeled URI format to point to forwarded address and
type of forwarding
m-substr: caseExactSubstringsMatch
m-nousermodification: FALSE
m-usage: USER_APPLICATIONS
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15
m-name: callPreferenceURI
m-equality: caseExactMatch
org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedExce
ption: ERR_10026 Cannot add the AttributeType
m-oid=0.0.8.350.1.1.8.1.1,ou=attributeTypes,cn=callPreferenceURIObject,o
u=schema, as the associated schema (callpreferenceuriobject) is not
loaded
at
org.apache.directory.shared.ldap.schema.loader.ldif.SchemaEntityFactory.
getAttributeType(SchemaEntityFactory.java:895)
at
org.apache.directory.server.core.schema.registries.synchronizers.Attribu
teTypeSynchronizer.add(AttributeTypeSynchronizer.java:83)
at
org.apache.directory.server.core.schema.registries.synchronizers.Registr
ySynchronizerAdaptor.add(RegistrySynchronizerAdaptor.java:172)
at
org.apache.directory.server.core.schema.SchemaPartition.add(SchemaPartit
ion.java:279)
at
org.apache.directory.server.core.partition.DefaultPartitionNexus.add(Def
aultPartitionNexus.java:512)
at
org.apache.directory.server.core.interceptor.InterceptorChain$1.add(Inte
rceptorChain.java:138)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.journal.JournalInterceptor.add(JournalI
nterceptor.java:129)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.trigger.TriggerInterceptor.add(TriggerI
nterceptor.java:284)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.event.EventInterceptor.add(EventInterce
ptor.java:152)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.collective.CollectiveAttributeIntercept
or.add(CollectiveAttributeInterceptor.java:354)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.subtree.SubentryInterceptor.add(Subentr
yInterceptor.java:581)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInte
rceptor.java:1723)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.operational.OperationalAttributeInterce
ptor.add(OperationalAttributeInterceptor.java:241)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.changelog.ChangeLogInterceptor.add(Chan
geLogInterceptor.java:109)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.exception.ExceptionInterceptor.add(Exce
ptionInterceptor.java:212)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.interceptor.BaseInterceptor.add(BaseInt
erceptor.java:130)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(A
ciAuthorizationInterceptor.java:436)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.referral.ReferralInterceptor.add(Referr
alInterceptor.java:243)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.authn.AuthenticationInterceptor.add(Aut
henticationInterceptor.java:213)
at
org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.ad
d(InterceptorChain.java:1197)
at
org.apache.directory.server.core.normalization.NormalizationInterceptor.
add(NormalizationInterceptor.java:118)
at
org.apache.directory.server.core.interceptor.InterceptorChain.add(Interc
eptorChain.java:757)
at
org.apache.directory.server.core.DefaultOperationManager.add(DefaultOper
ationManager.java:261)
at
org.apache.directory.server.core.DefaultCoreSession.add(DefaultCoreSessi
on.java:145)
at
org.apache.directory.server.core.DefaultCoreSession.add(DefaultCoreSessi
on.java:122)
at
org.apache.directory.server.protocol.shared.store.LdifFileLoader.execute
(LdifFileLoader.java:203)
at
org.apache.directory.server.configuration.ApacheDS.loadLdif(ApacheDS.jav
a:363)
at
org.apache.directory.server.configuration.ApacheDS.loadLdifs(ApacheDS.ja
va:445)
at
org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.java
:167)
at
org.apache.directory.server.Service.initLdap(Service.java:140)
at org.apache.directory.server.Service.init(Service.java:79)
at
org.apache.directory.server.UberjarMain.main(UberjarMain.java:60)
the LDIF file:
version: 1
dn: cn=callPreferenceURIObject,ou=schema
objectClass: metaSchema
objectClass: top
cn: callPreferenceURIObject
m-dependencies: system
m-dependencies: core
dn: ou=comparators,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: comparators
dn: ou=normalizers,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: normalizers
dn: ou=syntaxCheckers,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: syntaxcheckers
dn: ou=syntaxes,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: syntaxes
dn: ou=matchingRules,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: matchingrules
dn: ou=attributeTypes,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: attributetypes
dn: ou=objectClasses,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: objectclasses
dn: ou=nameForms,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: nameforms
dn: ou=ditStructureRules,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: ditstructurerules
dn: ou=ditContentRules,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: ditcontentrules
dn: ou=matchingRuleUse,cn=callPreferenceURIObject,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: matchingruleuse
dn:
m-oid=0.0.8.350.1.1.8.1.1,ou=attributeTypes,cn=callPreferenceURIObject,o
u=schema
objectClass: metaAttributeType
objectClass: metaTop
objectClass: top
m-oid: 0.0.8.350.1.1.8.1.1
m-collective: FALSE
m-description: Labeled URI format to point to forwarded address and type
of
forwarding
m-equality: caseExactMatch
m-name: callPreferenceURI
m-noUserModification: FALSE
m-obsolete: FALSE
m-singleValue: FALSE
m-substr: caseExactSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15
m-usage: USER_APPLICATIONS
dn:
m-oid=0.0.8.350.1.1.8.2.1,ou=objectClasses,cn=callPreferenceURIObject,ou
=schema
objectClass: metaObjectClass
objectClass: metaTop
objectClass: top
m-oid: 0.0.8.350.1.1.8.2.1
m-description: callPreference object
m-may: callPreferenceURI
m-name: callPreferenceURIObject
m-obsolete: FALSE
m-supObjectClass: top
m-typeObjectClass: AUXILIARY