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

Extending schema problem.



Hi all. I'm new using openldap. I googled all info related with it. I decided to extend a ldap schema. but it didn't work.  The error message is the following:

adding new entry "cn=Gerald W. Cummings,ou=people,dc=example,dc=com"
ldap_add: Undefined attribute type (17)
additional info: businessName: attribute type undefined


I had that error with the following files:

#new object schema

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 )
        )

#new attributes

# New attribute definitions:

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.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 )


Both files are inside of the schema folder with the same right that other files to run ldpap deamon without problem.


ldap.conf file

#Global section

##Include the minimum schema required.

include /usr/local/etc/openldap/schema/core.schema

##Added to support the inetOrgPerson object.
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inteorgperson.schema

#testing schemas
include /usr/local/etc/openldap/schema/new-object.schema
include /usr/local/etc/openldap/schema/new-attributes.schema


What did I wrong?

TIA


--
M.S. José M. Briseño Cortés
Universidad de Guadalajara
Instructional Technologist  Univ. Houston
Moodle Teacher Certificate
NTCM, IACEP, iNACOL, ACM  member