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

Re: Glue slapd-ldap with hdb



Am Fri, 21 Sep 2012 20:17:16 +0300
schrieb Tio Teath <tioteath@gmail.com>:

> I'm trying to glue remote database, provided by ldap backend with
> local hdb. I have following settings:
> 
> dn: olcDatabase={1}hdb,cn=config
> objectClass: olcDatabaseConfig
> objectClass: olcHdbConfig
> olcDatabase: {1}hdb
> olcDbDirectory: /var/lib/ldap
> olcDbCheckpoint: 512 30
> olcDbConfig: {0}set_cachesize 0 2097152 0
> olcDbConfig: {1}set_lk_max_objects 1500
> olcDbConfig: {2}set_lk_max_locks 1500
> olcDbConfig: {3}set_lk_max_lockers 1500
> olcDbIndex: objectClass eq
> olcLastMod: TRUE
> olcRootDN: cn=admin,cn=config
> olcSuffix: dc=local
> 
> dn: olcOverlay={0}glue,olcDatabase={1}hdb,cn=config
> objectClass: olcOverlayConfig
> objectClass: olcConfig
> objectClass: top
> olcOverlay: {0}glue
> ...
> 
> dn: olcDatabase={3}ldap,cn=config
> objectClass: olcLDAPConfig
> objectClass: olcDatabaseConfig
> objectClass: olcConfig
> objectClass: top
> olcDatabase: {3}ldap
> olcDbChaseReferrals: TRUE
> olcDbRebindAsUser: TRUE
> olcDbURI: ldap://remote.server
> olcRootDN: cn=admin,cn=config
> olcSubordinate: TRUE
> olcSuffix: dc=corp,dc=local"
> 
> But when I try to load it into cn=config, I get next error:
> [LDAP: error code 80 - <olcSuffix> namingContext "dc=corp,dc=local"
> already served by a preceding hdb database]
> 
> Version: 2.4.25-1.1ubuntu4.1

Change tho order of the databases, that is primary database last, and
declare the ldap database as subordinate.

-Dieter

-- 
Dieter KlÃnter | Systemberatung
http://dkluenter.de
GPG Key ID:DA147B05
53Â37'09,95"N
10Â08'02,42"E