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

database meta question



Hi all,

I am having a terrible time trying to get the meta backend to work
with my setup.  If I do not have meta things work as expected.  As
soon as I add the meta backend thing go south.

Partial slapd.conf:

database      ldap
suffix        "o=a.y.x,o=y"
uri           ldap://a.y.z:389/
idassert-authzFrom "dn:*"
idassert-bind bindmethod=simple
 binddn="uid=foo,ou=people,o=a.y.z,o=y"
 credentials="**********"
 mode=none

database        bdb
suffix          "o=b.y.z,o=bcit"
checkpoint      32      30 # <kbyte> <min>
rootdn          "cn=Manager,o=b.y.z,o=y"
rootpw          {MD5}********==
directory       /var/lib/openldap-data
index   objectClass     eq

database            meta
suffix                 "o=y.z,o=y"

uri                 "ldap://foo.bar.star:389/o=a.y.z,o=y";
rwm-rewriteEngine   on
rwm-rewriteContext  default
twm-rewriteRule     "(.*)o=y.z,o=y" "%1o=a,y.z,o=y"
rwm-rewriteContext  searchResult
rwm-rewriteRule     "(.*)o=a.y.z,o=y" "%1o=y.z,o=y"
rwm-map             attribute * *

uri                 "ldap://foo.bar.com:389/o=b.y.z,o=y";
rwm-rewriteEngine   on
rwm-rewriteContext  default
twm-rewriteRule     "(.*)o=y.z,o=y" "%1o=b,y.z,o=y"
rwm-rewriteContext  searchResult
rwm-rewriteRule     "(.*)o=b.y.z,o=y" "%1o=y.z,o=y"
rwm-map             attribute * *

When I run slapd with -d -1 I get (in part):

config_back_db_open
backend_startup_one: starting "o=a.y.z,o=y"
ldap_back_db_open: URI=ldap://a.y.z:389
backend_startup_one: starting "o=b.y.z,o=y"
bdb_db_open: o=b.y.z,o=y
bdb_db_open: dbenv_open(/var/lib/openldap-data)
backend_startup_one: starting "o=y.z,o=y"
meta_back_db_open: no targets defined
backend_startup_one: bi_db_open failed! (1)

So, it seems that "meta" is finding no targets...

Any ideas?

Thanks,

..darcy