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

Locally defined attribute rejected (ITS#957)



Full_Name: Jim Dutton
Version: 2.0.7
OS: FreeBSD-4.1
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.230.6.142)


Attempting to add a new object with a locally defined
attribute fails. Since OpenLDAP-2.0.7 returned to basic
definition of "document" attribute, Netscape (apparent)
additions used in NS DS, UMich LDAP, and OpenLDAP-1.2.7
were added in a locally defined "nsDocument" object but
the "keywords" attribute of "nsDocument" are rejected.


adding new entry "cn=Network Information,o=SIUC,c=US"
ldap_add: Object class violation
        additional info: attribute not allowed


Jan 10 11:10:17 <local4.debug> dutton3 slapd[74186]:
 conn=0 op=10 ADD dn="CN=NETWORK INFORMATION,O=SIUC,C=US" 
Jan 10 11:10:17 <local4.debug> dutton3 slapd[74186]:
 Entry (cn=Network Information,o=SIUC,c=US), attr "keywords" not allowed 
Jan 10 11:10:17 <local4.debug> dutton3 slapd[74186]:
 conn=0 op=10 RESULT tag=105 err=65 text=attribute not allowed


>From LDIF file:
dn: cn=Network Information,o=SIUC,c=US
objectclass: top
objectclass: document
objectclass: nsDocument
objectclass: documentDescription 
objectclass: localExtra
documentidentifier: LDAP-JED-1998071301
cn: Network Information
description: general data on different SIU networks
documenttitle: general data on different SIU networks
keywords: 131.230 146.163 163.191 SIUNET SIUEDW SIUMED SIU.EDU SIUE.EDU
keywords: SIUMED.EDU SIUCVMB SIUCMVSA SIUEVM VM24 VM26 VTAM Network name
keywords: Network address
abstract: ----------------------------------------(1)



>From "slapd.conf":
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/local.at.schema
include         /usr/local/etc/openldap/schema/local.oc.schema


>From "local.oc.schema":
# from NS DS (V3?)
objectclass ( nsDocument-oid
    NAME 'nsDocument'
    DESC 'Document object with Netscape additions'
    SUP document
    MAY ( abstract $
          authorCN $
          authorSN $
          documentStore $
          keywords $
          obsoletedByDocument $
          obsoletesDocument $ 
          subject $
          updatedByDocument $
          updatesDocument ))


>From "local.at.schema":
#
attributetype ( keywords-oid   
  NAME 'keywords'
  DESC 'Significant search keywords from document'
  EQUALITY caseIgnoreIA5Match
  SUBSTR caseIgnoreIA5SubstringsMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )