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

Re: Issue when injecting a new AttributeTypes in OpenLdap



Emmanuel Lecharny writes:
> #!ERROR [LDAP: error code 21 - attributeTypes: value #0 invalid per syntax]
> dn: cn=schema
> changetype: modify
> add: attributeTypes
> attributeTypes: ( 1.3.6.1.4.1.18060.0.4.1.2.10001 NAME 'type1' SUP name )

See the admin guide.  In OpenLDAP you add schema by modifying a schema
below cn=schema,cn=config, and you set 'olcAttributeTypes' rather than
'attributeTypes'.

OTOH you can *read* the full schema controlling an entry from the DN
named by that entry's subschemaSubentry attribute.  In OpenLDAP, that
defaults to cn=subschema, not cn=schema.

-- 
Hallvard