[Date Prev][Date Next] [Chronological] [Thread] [Top]

NEWBIE question about setting up address books - mozilla and schemas



I'm just getting started with OpenLDAP, and so far,
it's been going well.  There is some documentation on
YoLinux that has the basics for setting up an
addressbook.  I was planning on starting here, then
working up to roaming profiles, then authentication. 
My question has been asked many times, but the answers
don't seem to be there (at least ones that work). 
Mozilla (Netscape) email clients has successfully get
address from the OpenLDAP server, so everything is
working.  But only a few of the fields actually get
populated.  The good new is that it's the name and
email address.  I've tried several different ways to
write an extension.schema to get the other fields
working, but it doens't work.  I keep getting errors
like:

ldap_add: Object class violation (65)
additional info: attribute 'xmozillanickname' not
allowed

I figured I'd start out small and get the
xmozillanickname: working, then build from there, but
no dice.  I hope this isn't to trivial.  Thanks to
anyone who could offer some assistance.  Some
suggestions are along the lines of setting the prefs
in the client to change the request and others are
towards a schema extension to match the request.

$ 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/