#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Zomergem (Belgium)
    Posts
    149
    Rep Power
    21

    evolutionperson.schema duplicate attributeType error.


    When I start slapd I get this error.

    Code:
    Starting OpenLDAP: slapd - failed: 
    /etc/ldap/schema/evolutionperson.schema: line 130: Duplicate attributeType: "otherFacsimileTelephoneNumber"
    But:
    Code:
    slicer:/etc/ldap/schema# grep otherFacsimileTelephoneNumbe *
    evolutionperson.schema: NAME ( 'otherFacsimileTelephoneNumber' 'otherFax' )
    evolutionperson.schema:         note $ companyPhone $ callbackPhone $ otherFacsimileTelephoneNumber $
    I don't see much duplicates here... Can anybody tell me what's wrong? Because I don't know where to look further
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    can you post the schema file? something may be done incorrectly in it
  4. #3
  5. Chris Larivee
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Littleton, CO
    Posts
    72
    Rep Power
    11
    Also check your include files to make sure you are pointing to another location for schema loading.

    One other thing, even though it complains about the name of the attribute - it may really be halting on an OID conflict ... you may want to search for that as well ...
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Zomergem (Belgium)
    Posts
    149
    Rep Power
    21
    There are no includes that point to other directories in my slapd.conf.

    The evolutionperson.schema looks like this:

    Code:
    #
    # Depends upon
    #   Definition of an X.500 Attribute Type and an Object Class to Hold
    #   Uniform Resource Identifiers (URIs) [RFC2079]
    #	(core.schema)
    #   
    #   A Summary of the X.500(96) User Schema for use with LDAPv3 [RFC2256]
    #	(core.schema)
    #
    #   The COSINE and Internet X.500 Schema [RFC1274] (cosine.schema)
    #
    #   The Internet Organizational Person Schema (inetorgperson)
    #
    # OIDs are broken up into the following:
    #   1.3.6.1.4.1.8506.1.?
    #                     .1  Syntaxes
    #                     .2  Attributes
    #                     .3  Objectclasses
       
    # primaryPhone
    attributetype ( 1.3.6.1.4.1.8506.1.2.1
    	NAME 'primaryPhone'
    	DESC 'preferred phone number used to contact a person'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
    	SINGLE-VALUE )
    
    # carPhone
    attributetype ( 1.3.6.1.4.1.8506.1.2.2
    	NAME 'carPhone'
    	DESC 'car phone telephone number of the person'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50
    	SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.3
    	NAME ( 'homeFacsimileTelephoneNumber' 'homeFax' )
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.22 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.4
    	NAME 'otherPhone'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.5
    	NAME 'businessRole'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.6
    	NAME 'managerName'
    	SUP name )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.7
    	NAME 'assistantName'
    	SUP name )
    
    # spouseName
    # single valued (/me smirks)
    attributetype ( 1.3.6.1.4.1.8506.1.2.8
    	NAME 'spouseName'
    	SUP name
    	SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.9
    	NAME 'otherPostalAddress'
    	EQUALITY caseIgnoreListMatch
    	SUBSTR caseIgnoreListSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.10
    	NAME ( 'mailer' 'mua' )
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32} )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.11
    	NAME ( 'birthDate' 'dob' )
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.12
    	NAME 'anniversary'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.13
    	NAME 'note'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.14
    	NAME 'evolutionArbitrary'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )
    	)
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.15
    	NAME 'fileAs'
    	SUP name )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.16
    	NAME 'assistantPhone'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.17
    	NAME 'companyPhone'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.18
    	NAME 'callbackPhone'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.19
    	NAME ( 'otherFacsimileTelephoneNumber' 'otherFax' )
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.22 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.20
    	NAME 'radio'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.21
    	NAME 'telex'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.22
    	NAME 'tty'
    	EQUALITY telephoneNumberMatch
    	SUBSTR telephoneNumberSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
    
    # deprecated - use the multivalued category
    attributetype ( 1.3.6.1.4.1.8506.1.2.23
    	NAME 'categories'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.24
    	NAME 'contact'
            EQUALITY distinguishedNameMatch
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.25
    	NAME 'listName'
    	SUP name
    	SINGLE-VALUE )
    
    # deprecated - use calEntry and its attributes from RFC 2739
    attributetype ( 1.3.6.1.4.1.8506.1.2.26
    	NAME 'calendarURI'
            EQUALITY caseExactIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
    	SINGLE-VALUE )
    
    # deprecated - use calEntry and its attributes from RFC 2739
    attributetype ( 1.3.6.1.4.1.8506.1.2.27
    	NAME 'freeBusyURI'
            EQUALITY caseExactIA5Match
            SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
    	SINGLE-VALUE )
    
    attributetype ( 1.3.6.1.4.1.8506.1.2.28
    	NAME 'category'
    	EQUALITY caseIgnoreMatch
    	SUBSTR caseIgnoreSubstringsMatch
    	SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )
    
    
    # evolutionPerson
    objectclass	( 1.3.6.1.4.1.8506.1.3.1
        NAME 'evolutionPerson'
    	DESC 'Objectclass geared to Evolution Usage'
        SUP inetOrgPerson
        STRUCTURAL
    	MAY (
    	        fileAs $ primaryPhone $ carPhone $ homeFacsimileTelephoneNumber $ 
    		otherPhone $ businessRole $ managerName $ assistantName $ assistantPhone $
    		otherPostalAddress $ mailer $ birthDate $ anniversary $ spouseName $
    		note $ companyPhone $ callbackPhone $ otherFacsimileTelephoneNumber $
    		radio $ telex $ tty $ categories $ category $ calendarURI $ freeBusyURI )
    	)
    
    # evolutionPersonList
    objectclass	( 1.3.6.1.4.1.8506.1.3.2
        NAME 'evolutionPersonList'
    	DESC 'Objectclass geared to Evolution Contact Lists'
        SUP top
        STRUCTURAL
    	MUST (
    		listName )
    	MAY (
    		mail $ contact )
    	)
    How would I go about checking if it is an object identifier (that's what OID stands for, right?) conflict?
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Zomergem (Belgium)
    Posts
    149
    Rep Power
    21
    Nobody has any idea on how to fix this? I just demped the evolutionperson.schema atm, but I'd really like to use it because of the extra functionality it adds...

    tia
  10. #6
  11. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    search for this OID within the other schema files
    1.3.6.1.4.1.8506.1.2.19
  12. #7
  13. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    Zomergem (Belgium)
    Posts
    149
    Rep Power
    21
    Code:
    # grep -n 1.3.6.1.4.1.8506.1.2.19 *
    evolutionperson.schema:128:attributetype ( 1.3.6.1.4.1.8506.1.2.19
    I'm really getting hopeless... Are there any other things that could possibly cause such a weird problem?
  14. #8
  15. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    when you remove the evolutionperson.schema it doesn't complain right? if so maybe it's another attribute within it perhaps one nearby where it's erroring out.
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    0
    Rep Power
    0
    theBlackDragon, did you ever get a reply to this? I have a set of schemas with the evolution schema included working on a debian install of openldap but when I copy the schema across to a freeBSD box I get the same error.

IMN logo majestic logo threadwatch logo seochat tools logo