View previous topic :: View next topic |
Author |
Message |
leuenberger Tux's lil' helper


Joined: 13 Jul 2003 Posts: 147 Location: Zurich, ZH, Schweiz
|
Posted: Sun Nov 19, 2006 12:52 pm Post subject: BIND does not work with LDAP |
|
|
I try to setup a BIND server which gets its information from a OpenLDAP server.
Code: | emerge -vp bind
[ebuild R ] net-dns/bind-9.3.2-r4 USE="dlz doc idn ipv6 ldap ssl -berkdb -mysql -odbc -postgres (-selinux) -threads" 0 kB
|
I thought when I run emerge with the ldap flag it should run but if i start the BIND daemon I get the following error message in /var/log/message:
Code: | Nov 19 13:40:47 triggerfish named[4092]: starting BIND 9.3.2-P1 -u named -n 1
Nov 19 13:40:47 triggerfish named[4092]: loading configuration from '/etc/bind/named.conf'
Nov 19 13:40:47 triggerfish named[4092]: listening on IPv4 interface eth0, 192.168.1.10#53
Nov 19 13:40:47 triggerfish named[4092]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 19 13:40:47 triggerfish named[4092]: command channel listening on 127.0.0.1#953
Nov 19 13:40:47 triggerfish named[4092]: command channel listening on ::1#953
Nov 19 13:40:47 triggerfish named[4092]: zone 127.in-addr.arpa/IN: loaded serial 2006062502
Nov 19 13:40:47 triggerfish named[4092]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2006062504
Nov 19 13:40:47 triggerfish named[4092]: zone localhost/IN: loaded serial 2006062502
Nov 19 13:40:47 triggerfish named[4092]: unsupported database type 'ldap'
Nov 19 13:40:47 triggerfish named[4092]: zone unix.sea/IN: loading zone: creating database: not found
Nov 19 13:40:47 triggerfish named[4092]: running
|
My named.conf has the following entries:
Code: | options {
directory "/var/bind";
forward only;
forwarders { 192.168.1.1; };
listen-on { 127.0.0.1; 192.168.1.10; };
listen-on-v6 { none; };
allow-transfer { "none"; };
allow-query { localhost; 192.168.1.0/24; };
version "not available";
pid-file "/var/run/named/named.pid";
};
...
zone "unix.sea" IN {
type master;
database "ldap ldap://127.0.0.1/ou=hosts,dc=unix,dc=sea 86400";
};
|
Does somebody know where there problem is?
Thanks,
Reto |
|
Back to top |
|
 |
leuenberger Tux's lil' helper


Joined: 13 Jul 2003 Posts: 147 Location: Zurich, ZH, Schweiz
|
Posted: Tue Nov 21, 2006 7:07 am Post subject: |
|
|
Nobody?  |
|
Back to top |
|
 |
Dr.med.Zoidberg n00b

Joined: 14 Aug 2003 Posts: 2 Location: munich
|
|
Back to top |
|
 |
meka Tux's lil' helper


Joined: 16 Dec 2003 Posts: 85 Location: Novi Sad / Vojvodina / Srbija
|
Posted: Wed Oct 22, 2008 12:33 pm Post subject: |
|
|
The answer to this question is USE="sdb-ldap" which probably didn't exist at the time. Now, having that, I get new problem. Code: | Oct 22 12:27:18 zra2 named[23823]: LDAP sdb zone ldapdb_bind(): ldap_simple_bind_s(ldp, '(null)', '<secret>') failed
Oct 22 12:27:18 zra2 named[23823]: LDAP sdb zone 'my-domain.com': bind failed
Oct 22 12:27:18 zra2 named[23823]: zone my-domain.com/IN: could not find NS and/or SOA records
Oct 22 12:27:18 zra2 named[23823]: zone my-domain.com/IN: has 0 SOA records
Oct 22 12:27:18 zra2 named[23823]: zone my-domain.com/IN: has no NS records |
This is my relevant named.conf part. Code: | zone "my-domain.com" {
type master;
notify no;
database "ldap ldap://localhost/dc=my-domain,dc=com 172800";
}; |
This is output from ldapsearch -x -b dc=com. Code: | dn: dc=com
objectClass: dcObject
objectClass: organization
o: com
dc: com
dn: dc=my-domain,dc=com
objectClass: dcObject
objectClass: organization
o: my-domain
dc: my-domain
dn: relativeDomainName=@,dc=my-domain,dc=com
objectClass: dNSZone
relativeDomainName: @
zoneName: my-domain.com
dNSTTL: 3600
dNSClass: IN
sOARecord: ns.my-domain.com. hostmaster.my-domain.com. 2001030201 3600 1800 60
4800 86400
nSRecord: ns.my-domain.com.
nSRecord: ns.other-domain.com.
mXRecord: 10 mail.my-domain.com.
mXRecord: 20 mail.other-domain.com.
dn: relativeDomainName=my-hosta,dc=my-domain,dc=com
objectClass: dNSZone
relativeDomainName: my-hosta
zoneName: my-domain.com
dNSTTL: 86400
dNSClass: IN
aRecord: 10.10.10.10
mXRecord: 10 mail.my-domain.com.
mXRecord: 20 mail.other-domain.com. |
What am I doing wrong? |
|
Back to top |
|
 |
meka Tux's lil' helper


Joined: 16 Dec 2003 Posts: 85 Location: Novi Sad / Vojvodina / Srbija
|
|
Back to top |
|
 |
|