Issue 8524 - cn=config + ditContentRule
Summary: cn=config + ditContentRule
Status: UNCONFIRMED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: documentation (show other issues)
Version: 2.4.44
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-26 06:54 UTC by dieter@dkluenter.de
Modified: 2023-11-02 16:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description dieter@dkluenter.de 2016-10-26 06:54:59 UTC
Full_Name: Dieter Kluenter
Version: 2.4.44
OS: openSUSE
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (93.214.226.147)


It seems that the config backend provides schema information only after
configuration data, this leads to following error:
./slapd -h "ldap://:9007/ ldapi:///" -F ../etc/openldap/slapd.d -d256
580f76bd config error processing cn=config: olcDitContentRules:
ObjectClass not found: "2.16.840.1.113730.3.2.2" 580f76bd slapd stopped.
ile
While the same process only with information based on slapd.conf is successful:
./slapd -h "ldap://:9007/ ldapi:///" -f ../etc/openldap/slapd.conf -d256
580f76e4 slapd starting
The slapd.configuration:
include /opt/openldap/etc/openldap/schema/core.schema
include /opt/openldap/etc/openldap/schema/cosine.schema
include /opt/openldap/etc/openldap/schema/inetorgperson.schema
include /opt/openldap/etc%2pepenldap/schema/nis.schema
ditcontentrule ( 2.16.840.1.113730.3.2.2
                NAME 'sys4Person'
                AUX ( posixAccount )
                )
[more configuration parameter]

slapd.d
dn: cn=config
objectClass: olcGlobal
cn: config
...
olcToolThreads: 1
olcWriteTimeout: 0
olcDitContentRules: {0}( 2.16.840.1.113730.3.2.2 NAME 'sys4Person' AUX posix
 Account )
...

-Dieter
Comment 1 Quanah Gibson-Mount 2017-03-17 23:36:23 UTC
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2021-02-22 18:18:40 UTC
DIT content rule handling needs reworking for OpenLDAP 2.6 when cn=config is in use.
Comment 3 Ondřej Kuzník 2022-03-07 16:11:41 UTC
Just like with attribute and objectclass definitions, these are stored under cn=schema,cn=config as the file that defined them or directly in cn=config if defined in slapd.conf directly (as you're doing here). Maybe keep them in a file that you also include.

Don't know if we should document this behaviour or change it in some way.
Comment 4 Quanah Gibson-Mount 2023-11-02 16:57:28 UTC
Need to document how to correctly include this type of configuration as a part of an additional schema include.