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

Re: Locally defined attribute rejected (ITS#957)



I can verify that slapd reads my local AT and OC files, but it does not
appear to accept attributes that I define? I am using ATTRIBUTETYPE
<attribute name>-oid ...  to define the new attributes.



On 10 Jan, Kurt D. Zeilenga wrote:

>>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.
> 
> Likely because the server is doesn't recognize the
> object class which allows this attribute.  2.0 currently
> ignores unrecognized object classes.  I corrected this in
> HEAD.

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

-- 
[what I USED to be ...]
________________________________________________________________________
SIU.EDU          - DNS Admin, Postmaster, SMTP Admin, Netnews Admin
SIUCVMB.SIU.EDU  - DNS Admin, Postmaster, SMTP Admin, Sr TCP/IP Sys Prog
SIUCMVSA.SIU.EDU - DNS Admin, Postmaster, SMTP Admin, Sr TCP/IP Sys Prog
SIUCVMB, SIUCMVSA- Senior RSCS, VTAM, NCP Systems Programmer (mainframe)
Systems Admin    - Solaris, AIX, FreeBSD, NetBSD
LDAP Admin       - FreeBSD, NetBSD, Solaris, AIX