[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: NEWBIE question about setting up address books - mozilla and schemas
You need to add:
objectclass: YoLinuxPerson
to your ldif, otherwise it doesn't know what to do with xmozillanickname.
pwilson
>
> $ more test.ldif
> dn: cn=Test
> Guy,ou=FamilyAbook,ou=addressbook,dc=example,dc=com
> o: addressbook
> o: FamilyAbook
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> cn: Test Guy
> givenname: Test
> sn: Guy
> mail: testguy@aol.com
> xmozillanickname: duh
>
> I can add the test.ldif if I delete the
> xmozillanickname, but when I put it in, I get this:
>
> ldap_add: Object class violation (65)
> additional info: attribute 'xmozillanickname' not
> allowed
>
> My extension schema looks like this. The OpenLDAP
> server doens't complain about it when it starts, but
> it also doens't seem to do anything. :(
>
> # more extension.schema
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.90
> NAME 'personStatus'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.91
> NAME 'preferredEmail'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.92
> NAME 'mail2'
> DESC 'RFC1274: RFC822 Mailbox'
> EQUALITY caseIgnoreIA5Match
> SUBSTR caseIgnoreIA5SubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.93
> NAME 'businessName'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.94
> NAME 'xmozillanickname'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> attributetype ( 1.3.6.1.4.1.4203.666.1.95 NAME
> 'birthdate' SUP name )
>
>
> objectClass ( 1.3.6.1.4.1.4203.666.1.100
> NAME 'YoLinuxPerson'
> DESC 'X-Person'
> SUP inetOrgPerson
> STRUCTURAL
> MAY ( personStatus $ preferredEmail $ mail2 $
> businessName $ xmozillanickname $
> birthdate $ c )
> )
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/