https://bugs.openldap.org/show_bug.cgi?id=9611
Issue ID: 9611 Summary: no structural objectclass in configuration table Product: OpenLDAP Version: 2.5.5 Hardware: x86_64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: jb00356987@techmahindra.com Target Milestone: ---
Dears,
When I tried to start sldap 2.5.5 I get following error :
60eff599.06749e9d 0x7fb62750f740 <<< dnNormalize: <cn=manager,cn=config> 60eff599.0674bad5 0x7fb62750f740 <= str2entry(cn=module{0}) -> 0x1193828 60eff599.06752650 0x7fb62750f740 : config_add_internal: DN="cn=module{0},cn=config" no structural objectClass in configuration table 60eff599.06753c3c 0x7fb62750f740 config error processing cn=module{0},cn=config: 60eff599.0675a8bc 0x7fb62750f740 send_ldap_result: conn=-1 op=0 p=0 60eff599.067611e4 0x7fb62750f740 build-corp-M1 destroy: freeing system resources. 60eff599.06767673 0x7fb62750f740 slapd stopped. 60eff599.06770970 0x7fb62750f740 connections_destroy: nothing to destroy.
I don't understand why I get it as I'm able to run slapd 2.4.59 with same config/DB.
Can you advice ?
Thx, J-L.
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- At a guess, you failed to compile 2.5.5 with module support, whereas your existing 2.4 build includes module support.
Usage questions such as this belong on the openldap-technical list.
https://bugs.openldap.org/show_bug.cgi?id=9611
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
https://bugs.openldap.org/show_bug.cgi?id=9611
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #2 from Jean-Luc jb00356987@techmahindra.com --- Hello,
Since then I've downloaded version 2.5.6 and compiled with following options
./configure --enable-modules --enable-ldap --enable-dynlist --enable-ppolicy --enable-unique --with-gnu-ld --enable-refint
but when I want to start it I get following error messages :
610b943a.0a47354f 0x7f03f1ded740 <<< dnNormalize: <cn=manager,cn=config> 610b943a.0a475e53 0x7f03f1ded740 <= str2entry(olcOverlay={3}dynlist) -> 0x2726928 610b943a.0a47ad20 0x7f03f1ded740 : config_add_internal: DN="olcOverlay={3}dynlist,olcDatabase={2}mdb,cn=config" no structural objectClass in configuration table 610b943a.0a47ce89 0x7f03f1ded740 config error processing olcOverlay={3}dynlist,olcDatabase={2}mdb,cn=config:
if I remove the olcOverlay={3}dynlist.ldif file, I'm able to start the slapd but as I used the dynlist overlay, what can be the issue to not support it ?
Thx, Jean-Luc.
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to Jean-Luc from comment #2)
Hello,
Since then I've downloaded version 2.5.6 and compiled with following options
./configure --enable-modules --enable-ldap --enable-dynlist --enable-ppolicy --enable-unique --with-gnu-ld --enable-refint
There is no --enable-dynamic here to enable dynamic modules.
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #4 from Jean-Luc jb00356987@techmahindra.com --- Hello,
I compiled it with this --enable-dynamic parameter added to my list and tried again to start slapd with my dynlist overlay ldif file but I still get this following error :
10c27cd.2305563d 0x7fa06811e740 <<< dnNormalize: <cn=manager,cn=config> 610c27cd.23058195 0x7fa06811e740 <= str2entry(olcOverlay={3}dynlist) -> 0xffffe8 610c27cd.2305d3f4 0x7fa06811e740 : config_add_internal: DN="olcOverlay={3}dynlist,olcDatabase={2}mdb,cn=config" no structural objectClass in configuration table 610c27cd.2305f406 0x7fa06811e740 config error processing olcOverlay={3}dynlist,olcDatabase={2}mdb,cn=config:
This is strange because I used the same parameter list to compile 2.4.59 version and I didn't get this error even if dynlist overlay ldif file is present on some DB !!??
What can I check more ?
Thx? J-L.
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #5 from Quanah Gibson-Mount quanah@openldap.org --- It sounds like your cn=config LDIF is invalid and is missing a structural objectClass
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #6 from Jean-Luc jb00356987@techmahindra.com --- Hello,
Following your latest comments, I did check the config file and I found the issue. In the olcOverlay={3}dynlist.ldif file, the structuralObjectClass used in 2.4.x version was olcDynamicList and in 2.5.x it's olcDynListConfig, after having adapted the config, I was able to start slapd without any issue.
Thx for help and advice.
Brgds, Jean-Luc.
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #7 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to Jean-Luc from comment #6)
Hello,
Following your latest comments, I did check the config file and I found the issue. In the olcOverlay={3}dynlist.ldif file, the structuralObjectClass used in 2.4.x version was olcDynamicList and in 2.5.x it's olcDynListConfig, after having adapted the config, I was able to start slapd without any issue.
Ok, that may be a valid bug as olcDynamicList is supposed to be an alias for olcDynListConfig:
static ConfigOCs dlocs[] = { { "( OLcfgOvOc:8.1 " "NAME ( 'olcDynListConfig' 'olcDynamicList' ) " "DESC 'Dynamic list configuration' " "SUP olcOverlayConfig " "MAY olcDynListAttrSet )", Cft_Overlay, dlcfg, NULL, NULL }, { NULL, 0, NULL } };
https://bugs.openldap.org/show_bug.cgi?id=9611
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|bugs@openldap.org |hyc@openldap.org Target Milestone|--- |2.5.7 Resolution|INVALID |--- Status|VERIFIED |CONFIRMED
--- Comment #8 from Quanah Gibson-Mount quanah@openldap.org --- bconfig.c needs to be fixed to honor aliases for structural objectClasses
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #9 from Jean-Luc jb00356987@techmahindra.com --- OK, thx for your feedback & help.
https://bugs.openldap.org/show_bug.cgi?id=9611
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |TEST
--- Comment #10 from Howard Chu hyc@openldap.org --- fixed in master
https://bugs.openldap.org/show_bug.cgi?id=9611
--- Comment #11 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • 6237ae17 by Howard Chu at 2021-08-06T22:13:47+01:00 ITS#9611 bconfig: canonicalize structuralObjectclass
https://bugs.openldap.org/show_bug.cgi?id=9611
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED
--- Comment #12 from Quanah Gibson-Mount quanah@openldap.org ---
RE25 Commits: • dffa47ed by Howard Chu at 2021-08-06T21:21:16+00:00 ITS#9611 bconfig: canonicalize structuralObjectclass
https://bugs.openldap.org/show_bug.cgi?id=9611
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED