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

unifying with back_meta for DNS



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i'm migrating my infrasturture to LDAP (what haven't been easy) and the
only solution to my DNS needs only fulfills via back_meta which sadly i
can't set properly.

i have one namingContext per client and an ou=DNS inside each
namingContext 'housing' domains of that client

dc=domain1,ou=DNS,dc=client1
dc=domain2,ou=DNS,dc=client1
dc=domain3,ou=DNS,dc=client2
etc...

ldapsearch cant search across namingContexts even if i set -b ''. it
needs a complete base to perform the search of alternativeDomain used by
ldapdns (2.06) to generate SOA answers. so i need a virtual context
joining all this domains.

dc=domain1,ou=DNS
dc=domain2,ou=DNS
dc=domain3,ou=DNS

this is what i understood i should do, but i can't get slapd to do what
i want. what am i doing wrong?

backend meta
...
database meta
rewriteEngine on

rewriteContext default
rewriteRule "(.*)dc=domain1,ou=DNS$" "%1dc=domain1,ou=DNS,dc=client1"
rewriteRule "(.*)dc=domain2,ou=DNS$" "%1dc=domain2,ou=DNS,dc=client1"
rewriteRule "(.*)dc=domain3,ou=DNS$" "%1dc=domain3,ou=DNS,dc=client2"

access to *
~~        by * read

thanks in advance,
Alejandro Mery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCVzWoTDocaafKQBARAkeCAKCoD3RjSxiXyl2MRaMMsB6asFSLfgCgvHPC
hMIQzw34/3mEgxEqjF0KjGE=
=+vFj
-----END PGP SIGNATURE-----