Am 02.09.2013 18:56, schrieb Mónico Briseño:
> 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

since you didn't provide businessName in your schema, openldap cannot
know about it and thus says "attribute type undefined"

Beware: some more attributes of your objectclass YoLinuxPerson are not
defined either.

Cheers,

Peter


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


-- 

Peter Gietz, CEO

DAASI International GmbH        
Europaplatz 3                   
D-72072 Tübingen                
Germany                    

phone: +49 7071 407109-0
fax:   +49 7071 407109-9  
email: [email protected]
web:   www.daasi.de

Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz


Reply via email to