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

Re: ldap newbie



OK... I think I figured out the answer to my own question with the help
of slapadd's debugging- It seems that maybe I'm using a v2 schema
instead of a v3 schema- I can't find any information on the specific
differences b/w the two schemas.

Can someone please tell me if I am correct, and where I might be able to
find such information.

As a side point, the documentation for openldap is very confusing...
Specifically examples in the documentation are not consistent in terms
of syntax. Also there are little to no examples of schemas that don't
base themselves on standard schemas. Just my opinion.
Yonah


On Wed, 2002-10-09 at 14:27, Yonah Russ wrote:
> Hi,
>   I'm very new to LDAP and I'm trying to extend the schema.
> I'm using RH8 with openldap-2.0.25.
> 
> I've created a local.schema file and added an include line in the
> slapd.conf file.
> 
>   First things first, the daemon would not start- it seemed to have
> problems with my schema definitions. I changed some things and the
> daemon now starts without a problem but I would appreciate it if someone
> would reassure me that I did the right thing.
> 
> The whole file is very long so here is the beginning of the original
> schema file(the daemon would give errors on the first attribute
> definition that wasn't changed to the new form:
> 
> =======================================
> objectIdentifier jctOID 1.1
> objectIdentifier jctLDAP jctOID:1
> objectIdentifier jctAttrib jctLDAP:1
> objectIdentifier jctObj jctLDAP:2
> # Attribute Type Definitions
> 
> attributetype ( jctAttrib:0 NAME ( 'jctFullName' $ 'jctFN' )
>         DESC 'Full Name Associated with a Person'
>         EQUALITY caseIgnoreMatch
>         SUBSTR caseIgnoreSubstringsMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{32768}
> )
> 
> attributetype ( jctAttrib:1 NAME ( 'jctMisparZehut' $ 'jctTZ' )
>         DESC 'Identification Number associated with a person'
>         EQUALITY numericStringMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{32768}
>         SINGLE-VALUE
> )
> ==================================================================
> the error a schema like this produced was:
> 
> jct.schema:  line 27: Expecting a name before 'jctFN' ) DESC 
> 'Full Name Associated with a Person' EQUALITY caseIgnoreMatch SUBSTR 
> caseIgnoreSubstringsMatch	SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{32768}
> AttributeTypeDescription = ....
> 
> 
> Here is the current schema:
> =======================================
> objectIdentifier jctOID 1.1
> objectIdentifier jctLDAP jctOID:1
> objectIdentifier jctAttrib jctLDAP:1
> objectIdentifier jctObj jctLDAP:2
> # Attribute Type Definitions
> 
> attributeType = ( jctAttrib:0 NAME ( 'jctFullName' 'jctFN' )
>         DESC 'Full Name Associated with a Person'
>         EQUALITY caseIgnoreMatch
>         SUBSTR caseIgnoreSubstringsMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{32768}
> )
> 
> attributeType = ( jctAttrib:1 NAME ( 'jctMisparZehut' 'jctTZ' )
>         DESC 'Identification Number associated with a person'
>         EQUALITY numericStringMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{32768}
>         SINGLE-VALUE
> )
> ====================================================================
> This gets swallowed by the daemon but it isn't exactly the same sytax as
> the other schema files, nor does it follow the extending schema examples
> on the openldap website.
> 
> Any ideas?
> Thanks in advance!
> Yonah
>