]> git.sur5r.net Git - openldap/commitdiff
HDB needs its own config objectclass to avoid confusion when parsing the
authorHoward Chu <hyc@openldap.org>
Fri, 1 Jul 2005 00:17:51 +0000 (00:17 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 1 Jul 2005 00:17:51 +0000 (00:17 +0000)
config db

servers/slapd/back-bdb/config.c

index ee8e11ed09f4c106475ecb939b53ef3524048f80..ec013a251293c54269912704292b892539838988 100644 (file)
@@ -118,9 +118,16 @@ static ConfigTable bdbcfg[] = {
 };
 
 static ConfigOCs bdbocs[] = {
-       { "( OLcfgDbOc:1.1 "
+       {
+#ifdef BDB_HIER
+               "( OLcfgDbOc:1.2 "
+               "NAME 'olcHdbConfig' "
+               "DESC 'HDB backend configuration' "
+#else
+               "( OLcfgDbOc:1.1 "
                "NAME 'olcBdbConfig' "
                "DESC 'BDB backend configuration' "
+#endif
                "SUP olcDatabaseConfig "
                "MUST olcDbDirectory "
                "MAY ( olcDbCacheSize $ olcDbCheckpoint $ olcDbConfig $ "