Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2009 22:28:59 -0500
From:      Angela <vvv25c@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   bind-sdb ldap loading zone: creating database: failure
Message-ID:  <fba07e7b0904272028oad7432eia4908a34731cfe4e@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Have anyone been able to successfully setup bind-sdb with ldap backend?

I've tried for couple days without luck! I have a fully working ldap server,
and a working traditional bind/dns setup.

I installed bind-sdb (rpm package); changed my named.conf according to the
docs; but I am not able to get the
bind-sdb to connnect to my ldap server. Below is my named.conf:


.... cut ...

zone "example.com" IN {
        type master;
        database "ldap ldap://
127.0.0.1/zoneName=example.com,ou=dns,dc=mydomain,dc=com";
};

zone "1.168.192.in-addr.arpa" IN {
        type master;
        database "ldap ldap://
127.0.0.1/zoneName=1.168.192.in-addr.arpa,ou=dns,dc=mydomain,dc=com";
};

When I start named-sdb (bind-sdb), its log shows it loaded the db-drivers
fine ...

.... cut ...

27-Apr-2009 22:19:15.884 starting BIND 9.5.0b2 -d 3 -u named -g
27-Apr-2009 22:19:15.888 found 1 CPU, using 1 worker thread
27-Apr-2009 22:19:15.930 Registering DLZ postgres driver.
27-Apr-2009 22:19:15.930 Registering SDLZ driver 'postgres'
27-Apr-2009 22:19:15.930 Registering DLZ driver 'postgres'
27-Apr-2009 22:19:15.931 Registering DLZ mysql driver.
27-Apr-2009 22:19:15.931 Registering SDLZ driver 'mysql'
27-Apr-2009 22:19:15.931 Registering DLZ driver 'mysql'
27-Apr-2009 22:19:15.931 Registering DLZ filesystem driver.
27-Apr-2009 22:19:15.931 Registering SDLZ driver 'filesystem'
27-Apr-2009 22:19:15.931 Registering DLZ driver 'filesystem'
27-Apr-2009 22:19:15.931 Registering DLZ ldap driver.
27-Apr-2009 22:19:15.931 Registering SDLZ driver 'ldap'
27-Apr-2009 22:19:15.932 Registering DLZ driver 'ldap'
27-Apr-2009 22:19:15.932 Registering DLZ odbc driver.
27-Apr-2009 22:19:15.932 Registering SDLZ driver 'odbc'
27-Apr-2009 22:19:15.932 Registering DLZ driver 'odbc'
27-Apr-2009 22:19:15.932 SDB ldap zone database module loaded.
27-Apr-2009 22:19:15.932 SDB postgreSQL DB zone database module loaded.
27-Apr-2009 22:19:15.932 SDB sqlite3 DB zone database module loaded.
27-Apr-2009 22:19:15.932 SDB directory DB zone database module loaded.
27-Apr-2009 22:19:15.942 loading configuration from '/etc/named.conf'

.... cut ...

BUT, when it gets to loading zone "example.com", it logged:

27-Apr-2009 22:19:16.005 zone gis.com/IN: loading zone: creating database:
failure

Same failure for ARPA of zone gis.com/IN:

27-Apr-2009 22:19:16.003 zone 1.168.192.in-addr.arpa/IN: loading zone:
creating database: failure

I checked my LDAP server's log and NO contact attemp was made by named-sdb
(bind-sdb).

I can retrieve my LDAP's zone entries fine with ldapsearch.

???

Thanks



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fba07e7b0904272028oad7432eia4908a34731cfe4e>