directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damien Tougas <dam...@tougas.net>
Subject Re: [ApacheDS] Having problems with schemas in 1.5
Date Mon, 23 Apr 2007 13:33:23 GMT
Hello Alex,

Alex Karasulu wrote:

>> I am in the process of checking out the directory server for the first
>> time. I am by no means an LDAP expert, but so far I like what I am
>> seeing here. My end goal for this testing is to create a shared address
>> book using the mozillaAbPersonAlpha schema:
>>
>> http://wiki.mozilla.org/MailNews:Mozilla_LDAP_Address_Book_Schema
>>
>> I was able to open the schema in LDAP Studio and export it to an LDIF.
>> The first problem I encountered was that the exported LDIF had a typo
>> which caused the import to fail. The typo was in this section (note the
>> spelling of "matchingRules" in the dn):
>>
>>         dn: ou=macthingRules, cn=moz, ou=schema
>>         objectclass: organizationalUnit
>>         objectclass: top
>>         ou: matchingrules
>>
>> Once that was fixed, the import worked without any errors.
> 
> 
> Ahhh ok I think this can be fixed easily in LdapStudio or one of the shared
> libraries it depends on which probably is responsible for this typo.  Could
> you file a JIRA issue for it
> here:
> 
>   https://issues.apache.org/jira/browse/DIRSTUDIO

Done!

> The next problem I encountered was the fact that the directory server
>> didn't know what to do with the syntax lengths. This problem did not
>> show up when I did the import, but it caused exceptions to get thrown
>> when re-starting the directory server.
> 
> 
> This is not good.  Perhaps you can file a JIRA issue about this.  I think
> this may be a bug in the schema subsystem but we need to figure it out.
> Could you attach the LDIF file to the JIRA as an 'attachment'?  You can 
> file
> the JIRA issue for it here:
> 
>   https://issues.apache.org/jira/browse/DIRSERVER

Done!

> I need to narrow down what is causing this: whether it is due to LS or
> ApacheDS.  I think it's ApacheDS.  Perhaps the schema has not been enabled
> for some reason.  Do me a favor and connect to the server and look at the
> cn=moz,ou=schema entry.  Perhaps you can post it's attributes/LDIF here.
> But just checking if an m-disabled attribute is present on the entry may
> suffice.  If this m-disabled attribute is set to TRUE just modify the entry
> so it is set to FALSE or remove the m-disabled attribute altogether.

I exported the entire schema as an LDIF for you to look at, see it below.

> I think by default newly added schema are disabled.

I thought about that, but I didn't see any m-disabled attribute set when 
I did the import. For fun, I tried adding it and setting it to TRUE, but 
that didn't seem to make any difference either way.

Here is the export of my schema:

dn: cn=moz,ou=schema
objectClass: metaSchema
objectClass: top
cn: moz

dn: ou=attributeTypes,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: attributeTypes

dn: m-oid=1.3.6.1.4.1.13769.3.7,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaHomeUrl
m-oid: 1.3.6.1.4.1.13769.3.7
m-singlevalue: true
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.2.1,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-name: mozillaNickname
m-name: xmozillanickname
m-oid: 1.3.6.1.4.1.13769.2.1
m-supattributetype: name

dn: m-oid=1.3.6.1.4.1.13769.3.4,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-name: mozillaHomeState
m-oid: 1.3.6.1.4.1.13769.3.4
m-singlevalue: true
m-supattributetype: name

dn: m-oid=1.3.6.1.4.1.13769.3.8,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaWorkStreet2
m-oid: 1.3.6.1.4.1.13769.3.8
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.2.3,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-name: mozillaUseHtmlMail
m-name: xmozillausehtmlmail
m-oid: 1.3.6.1.4.1.13769.2.3
m-singlevalue: true
m-syntax: 1.3.6.1.4.1.1466.115.121.1.7

dn: m-oid=1.3.6.1.4.1.13769.3.2,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaHomeStreet2
m-oid: 1.3.6.1.4.1.13769.3.2
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.4.4,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaCustom4
m-oid: 1.3.6.1.4.1.13769.4.4
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.3.3,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-name: mozillaHomeLocalityName
m-oid: 1.3.6.1.4.1.13769.3.3
m-singlevalue: true
m-supattributetype: name

dn: m-oid=1.3.6.1.4.1.13769.4.3,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaCustom3
m-oid: 1.3.6.1.4.1.13769.4.3
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.3.5,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaHomePostalCode
m-oid: 1.3.6.1.4.1.13769.3.5
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.4.1,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaCustom1
m-oid: 1.3.6.1.4.1.13769.4.1
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.3.6,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-name: mozillaHomeCountryName
m-oid: 1.3.6.1.4.1.13769.3.6
m-singlevalue: true
m-supattributetype: name

dn: m-oid=1.3.6.1.4.1.13769.3.9,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaWorkUrl
m-oid: 1.3.6.1.4.1.13769.3.9
m-singlevalue: true
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.2.2,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreIA5Match
m-name: mozillaSecondEmail
m-name: xmozillasecondemail
m-oid: 1.3.6.1.4.1.13769.2.2
m-singlevalue: true
m-substr: caseIgnoreIA5SubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.26

dn: m-oid=1.3.6.1.4.1.13769.3.1,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaHomeStreet
m-oid: 1.3.6.1.4.1.13769.3.1
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: m-oid=1.3.6.1.4.1.13769.2.4,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: telephoneNumberMatch
m-name: nsAIMid
m-name: nscpaimscreenname
m-oid: 1.3.6.1.4.1.13769.2.4
m-substr: telephoneNumberSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.50

dn: m-oid=1.3.6.1.4.1.13769.4.2,ou=attributeTypes,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaAttributeType
objectClass: top
m-equality: caseIgnoreMatch
m-name: mozillaCustom2
m-oid: 1.3.6.1.4.1.13769.4.2
m-singlevalue: true
m-substr: caseIgnoreSubstringsMatch
m-syntax: 1.3.6.1.4.1.1466.115.121.1.15

dn: ou=comparators,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: comparators

dn: ou=ditContentRules,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: ditContentRules

dn: ou=ditStructureRules,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: ditStructureRules

dn: ou=matchingRules,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: matchingRules

dn: ou=matchingRuleUse,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: matchingRuleUse

dn: ou=nameForms,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: nameForms

dn: ou=normalizers,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: normalizers

dn: ou=objectClasses,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: objectClasses

dn: m-oid=1.3.6.1.4.1.13769.9.1,ou=objectClasses,cn=moz,ou=schema
objectClass: metaTop
objectClass: metaObjectclass
objectClass: top
m-may: c
m-may: description
m-may: displayName
m-may: fax
m-may: givenName
m-may: homePhone
m-may: l
m-may: mail
m-may: mobile
m-may: mozillaCustom1
m-may: mozillaCustom2
m-may: mozillaCustom3
m-may: mozillaCustom4
m-may: mozillaHomeCountryName
m-may: mozillaHomeLocalityName
m-may: mozillaHomePostalCode
m-may: mozillaHomeState
m-may: mozillaHomeStreet
m-may: mozillaHomeStreet2
m-may: mozillaHomeUrl
m-may: mozillaNickname
m-may: mozillaSecondEmail
m-may: mozillaUseHtmlMail
m-may: mozillaWorkStreet2
m-may: mozillaWorkUrl
m-may: nsAIMid
m-may: o
m-may: ou
m-may: pager
m-may: postalCode
m-may: postOfficeBox
m-may: sn
m-may: st
m-may: street
m-may: telephoneNumber
m-may: title
m-must: cn
m-name: mozillaAbPersonAlpha
m-oid: 1.3.6.1.4.1.13769.9.1
m-supobjectclass: top
m-typeobjectclass: AUXILIARY

dn: ou=syntaxCheckers,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: syntaxCheckers

dn: ou=syntaxes,cn=moz,ou=schema
objectClass: organizationalUnit
objectClass: top
ou: syntaxes

Thanks for your help!

-- 
Damien Tougas

Mime
View raw message