Bind and OpenLDAP
Marcio Garcia
marciogarcia at gmail.com
Tue May 6 23:47:07 UTC 2008
Hi,
I already have some customers with BIND + LDAP.
My named.conf:
zone "example.pt" {
type master;
database "ldap
ldap://127.0.0.1/zoneName=example.pt,dc=DNS,dc=example,dc=pt 3600";
};
My LDIF:
dn: zoneName=example.pt,dc=DNS,dc=example,dc=pt
objectClass: top
objectClass: dNSZone
relativeDomainName: @
zoneName: example.pt
dNSTTL: 3600
dNSClass: IN
sOARecord: example.pt. root.example.pt. 2007052900 3600
1800 604800 86400
nSRecord: example.pt.
aRecord: 10.10.10.10
dn:
relativeDomainName=www,zoneName=example.pt,dc=DNS,dc=example,dc=pt
objectClass: top
objectClass: dNSZone
relativeDomainName: www
zoneName: example.pt
dNSTTL: 3600
dNSClass: IN
aRecord: 10.10.10.10
:)
Marcio Garcia
2008/5/6 Arjan Hulshoff <arjan.m.hulshoff at zonnet.nl>:
> Hi all,
> I need some explanation and someone who can check if my named.conf is
> correct.
> What needs to be explained is the database line, of course. The part
> after ldap://localhost/ou=DNS,ou=Computers,dc=example,dc=com is a bit
> strange to me. As far as I know this isn't standard LDAP, so what does
> it mean and is what I have created correct?
>
> TIA,
> Arjan.
>
>
> options {
> directory "/usr/local/var/state/bind";
> pid-file "/usr/local/var/run/named.pid";
> check-names master fail;
> check-names slave warn;
> check-names response ignore;
> };
>
> zone "example.com" in {
> type master;
> database "ldap
> ldap://localhost/ou=DNS,ou=Computers,dc=example,dc=com,o=DNS,dc=example,dc=com,dc=no
> 10800";
> };
>
> zone "56.168.192.in-addr.arpa" in {
> type master;
> database "ldap
> ldap://localhost/ou=DNS,ou=Computers,dc=example,dc=com,o=DNS,dc=56,dc=168,dc=192,dc=in-addr,dc=arpa,dc=no
> 10800";
> };
>
> zone "0.0.127.in-addr.arpa" in {
> type master;
> database "ldap
> ldap://localhost/ou=DNS,ou=Computers,dc=example,dc=com,o=DNS,dc=0,dc=0,dc=127,dc=in-addr,dc=arpa,dc=no
> 10800";
> };
>
> zone "." in {
> type hint;
> database "ldap
> ldap://localhost/ou=DNS,ou=Computers,dc=example,dc=com,o=DNS,dc=no 10800";
> };
>
>
>
>
More information about the bind-users
mailing list