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

Re: Bizarre error while initializing a DIT

Maykel Moya wrote:
On jue, 2008-08-21 at 22:43 +0200, Pierangelo Masarati wrote:

Chris G. Sellers wrote:
I'm curious why the error says "DC= " yet your file says "dc=" The case mismatch is interesting, however, should not matter.

PROXIED attribute DC inserted is more of what I'm interested in. Is this server setup with replication by chance already? If so, you will want to turn that off before you initialize it otherwise that could get in the way. Or, do you have referrals setup already? (didn't see them in the config).
The fact that DC is proxied means that the server did not get fed with appropriate schema info.


I though it would has something to do with some db corruption. I'd have to cold reboot my machine in some ocassions.

After a db4.2_recover with exit status 0 I was more intrigued.

Then I regenerate another cn=config and did a diff. Most of diff chunk
are related to {create,modify}Timestamp operation attributes. Other are
sustitutions like s/ and so.

These ones called my attention.

diff -urN slapd.d-200809151220/cn=config/cn=schema.ldif
--- slapd.d-200809151220/cn=config/cn=schema.ldif       2008-08-05
15:24:49.000000000 -0400
+++ slapd.d/cn=config/cn=schema.ldif    2008-09-15 12:20:44.000000000
@@ -106,9 +106,9 @@
 olcAttributeTypes: ( NAME 'monitorContext'
DESC 'mon
  itor context' SYNTAX SINGLE-VALUE
  ICATION USAGE dSAOperation )
-olcAttributeTypes: ( NAME 'configContext'
DESC 'co
- nfig context' SYNTAX SINGLE-VALUE
- ICATION USAGE dSAOperation )
+olcAttributeTypes: ( NAME 'configContext'
DESC 'conf
+ ATION USAGE dSAOperation )

@@ -725,7 +714,7 @@
  d configuration' SUP olcDatabaseConfig STRUCTURAL )
 olcObjectClasses: ( OLcfgOvOc:1.1 NAME 'olcSyncProvConfig' DESC
'SyncRepl Prov
  ider configuration' SUP olcOverlayConfig STRUCTURAL MAY
( olcSpCheckpoint $ o
- lcSpSessionlog $ olcSpNoPresent ) )
+ lcSpSessionlog $ olcSpNoPresent $ olcSpReloadHint ) )
 olcObjectClasses: ( OLcfgOvOc:4.1 NAME 'olcAccessLogConfig' DESC
'Access log c
  onfiguration' SUP olcOverlayConfig STRUCTURAL MUST olcAccessLogDB MAY
( olcAc
  cessLogOps $ olcAccessLogPurge $ olcAccessLogSuccess $ olcAccessLogOld
$ olcA

Does the trailing '/' here is relevant?
diff -urN slapd.d-200809151220/cn=config.ldif slapd.d/cn=config.ldif
--- slapd.d-200809151220/cn=config.ldif 2008-08-26 13:02:55.000000000
+++ slapd.d/cn=config.ldif      2008-09-15 12:20:44.000000000 -0400
@@ -1,8 +1,8 @@
 dn: cn=config
 objectClass: olcGlobal
 cn: config
-olcConfigFile: slapd.conf
-olcConfigDir: slapd.d/
+olcConfigFile: __slapd.__conf
+olcConfigDir: slapd.d

    Red Telematica de Salud - Cuba
    	  CNICM - Infomed

Most of those differences seem to be related to upgrading across non-trivial database upgrades (schema promoted from experimental to release (s/666/1/) and so. I am unsure about how backward-compatible back-config is, especially in those cases. It shouldn't care, since most of the above issues are related to hardcoded pieces of schema, which cannot be overridden by their on-disk representation. Probably, the whole thing should be audited, to assess if there is any issue.


Ing. Pierangelo Masarati OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Fax:     +39 0382 476497
Email:   ando@sys-net.it