В портах исчез порт bind97-sdb, есть bind96, bind98, bind99.
Берём порт например bind99, включаем поддержку ldap
Код: Выделить всё
test# make showconfig
===> The following configuration options are available for bind99-9.9.2.2:
FIXED_RRSET=off: Enable fixed rrset ordering
IDN=off: International Domain Names support
IPV6=off: IPv6 protocol support
LARGE_FILE=off: 64-bit file support
LINKS=on: Create conf file symlinks in /usr/local
REPLACE_BASE=off: Replace base BIND with this version
RPZRRL_PATCH=off: RPZ improvements + RRL patch (experimental)
RPZ_NSDNAME=off: Enable RPZ NSDNAME policy records
RPZ_NSIP=off: Enable RPZ NSIP trigger rules
SIGCHASE=off: dig/host/nslookup will do DNSSEC validation
SSL=on: Build with OpenSSL (Required for DNSSEC)
THREADS=on: Threading support
XML=on: Support for xml statistics output
====> Options available for the group DLZ
DLZ_POSTGRESQL=off: DLZ Postgres driver
DLZ_MYSQL=off: DLZ MySQL driver (no threading)
DLZ_BDB=off: DLZ BDB driver
DLZ_LDAP=on: DLZ LDAP driver
DLZ_FILESYSTEM=off: DLZ filesystem driver
DLZ_STUB=off: DLZ stub driver
===> Use 'make config' to modify these settings
Код: Выделить всё
test# pkg_info |grep ldap
openldap-client-2.4.35 Open source LDAP client implementation
Код: Выделить всё
test# /usr/local/sbin/named -V
BIND 9.9.2-P2 built with '--localstatedir=/var' '--disable-linux-caps' '--disable-symtable' '--with-randomdev=/dev/random' '--without-python' '--with-openssl=/usr' '--without-libxml2' '--without-idn' '--with-dlz-bdb=yes' '--with-dlz-ldap=yes' '--with-dlz-filesystem=yes' '--with-dlz-stub=yes' '--enable-threads' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd9.1' 'build_alias=i386-portbld-freebsd9.1' 'CC=cc' 'CFLAGS=-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing' 'LDFLAGS= -Wl,-rpath=/usr/lib:/usr/local/lib' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing'
using OpenSSL version: OpenSSL 0.9.8x 10 May 2012
А при старте он выдаёт:
Код: Выделить всё
Apr 24 13:22:38 test named[1830]: starting BIND 9.9.2-P2 -c /etc/namedb/named.conf -t /var/named -u bind
Apr 24 13:22:38 test named[1830]: built with '--localstatedir=/var' '--disable-linux-caps' '--disable-symtable' '--with-randomdev=/dev/random' '--without-python' '--with-openssl=/usr' '--without-libxml2' '--without-idn' '--with-dlz-bdb=yes' '--with-dlz-ldap=yes' '--with-dlz-filesystem=yes' '--with-dlz-stub=yes' '--enable-threads' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd9.1' 'build_alias=i386-portbld-freebsd9.1' 'CC=cc' 'CFLAGS=-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing' 'LDFLAGS= -Wl,-rpath=/usr/lib:/usr/local/lib' 'CPPFLAGS=' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing'
Apr 24 13:22:38 test named[1830]: ----------------------------------------------------
Apr 24 13:22:38 test named[1830]: BIND 9 is maintained by Internet Systems Consortium,
Apr 24 13:22:38 test named[1830]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
Apr 24 13:22:38 test named[1830]: corporation. Support and training for BIND 9 are
Apr 24 13:22:38 test named[1830]: available at https://www.isc.org/support
Apr 24 13:22:38 test named[1830]: ----------------------------------------------------
Apr 24 13:22:38 test named[1830]: command channel listening on 127.0.0.1#953
Apr 24 13:22:38 test named[1830]: the working directory is not writable
Apr 24 13:22:38 test named[1830]: unsupported database type 'ldap'
Apr 24 13:22:38 test named[1830]: zone test.local/IN: loading zone: creating database: not found
Apr 24 13:22:38 test named[1830]: all zones loaded
Apr 24 13:22:38 test named[1830]: running
Код: Выделить всё
Apr 24 13:22:38 test named[1830]: unsupported database type 'ldap'
Apr 24 13:22:38 test named[1830]: zone test.local/IN: loading zone: creating database: not found
bind97-sdb, там всё ОК!
Рылся в документации на сайте ISC у меня всё правильно настроено, и по идеи вопросов не должно быть.
Вопрос старый но блин что то надо делать ведь ldap-перов не мало живёт на земле…
У кого есть какие соображения и он знает больше меня прошу поделиться или направить.
В гугле был не чего полезного, тролей порошу совсем не писать!
Спасибо за внимание.