|
Adam Tkac |
2fc1c6 |
diff -up bind-9.7.0b1/bin/Makefile.in.sdb bind-9.7.0b1/bin/Makefile.in
|
|
Adam Tkac |
2fc1c6 |
--- bind-9.7.0b1/bin/Makefile.in.sdb 2009-10-05 14:07:08.000000000 +0200
|
|
Adam Tkac |
2fc1c6 |
+++ bind-9.7.0b1/bin/Makefile.in 2009-10-20 11:01:21.011555584 +0200
|
|
Adam Tkac |
2fc1c6 |
@@ -19,8 +19,8 @@ srcdir = @srcdir@
|
|
Adam Tkac |
f12e46 |
VPATH = @srcdir@
|
|
Adam Tkac |
f12e46 |
top_srcdir = @top_srcdir@
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
2fc1c6 |
-SUBDIRS = named rndc dig dnssec tests tools nsupdate \
|
|
Adam Tkac |
2fc1c6 |
- check confgen @PKCS11_TOOLS@
|
|
Adam Tkac |
2fc1c6 |
+SUBDIRS = named named-sdb rndc dig dnssec tests tools nsupdate \
|
|
Adam Tkac |
2fc1c6 |
+ check confgen @PKCS11_TOOLS@ sdb_tools
|
|
Adam Tkac |
f12e46 |
TARGETS =
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
f12e46 |
@BIND9_MAKE_RULES@
|
|
Adam Tkac |
2fc1c6 |
diff -up bind-9.7.0b1/bin/named/Makefile.in.sdb bind-9.7.0b1/bin/named/Makefile.in
|
|
Adam Tkac |
2fc1c6 |
--- bind-9.7.0b1/bin/named/Makefile.in.sdb 2009-10-20 11:01:20.971545269 +0200
|
|
Adam Tkac |
2fc1c6 |
+++ bind-9.7.0b1/bin/named/Makefile.in 2009-10-20 11:01:35.191543713 +0200
|
|
Adam Tkac |
f12e46 |
@@ -45,7 +45,7 @@ CINCLUDES = -I${srcdir}/include -I${srcd
|
|
Adam Tkac |
f12e46 |
${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} ${ISC_INCLUDES} \
|
|
Adam Tkac |
f12e46 |
${DLZDRIVER_INCLUDES} ${DBDRIVER_INCLUDES}
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
2fc1c6 |
-CDEFINES = -DBIND9 @USE_DLZ@ @USE_PKCS11@
|
|
Adam Tkac |
2fc1c6 |
+CDEFINES = -DBIND9 @USE_PKCS11@
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
f12e46 |
CWARNINGS =
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
e99cc3 |
@@ -69,11 +69,11 @@ DEPLIBS = ${LWRESDEPLIBS} ${DNSDEPLIBS}
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
f12e46 |
LIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
|
Adam Tkac |
f12e46 |
${ISCCFGLIBS} ${ISCCCLIBS} ${ISCLIBS} \
|
|
Adam Tkac |
f12e46 |
- ${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
|
|
Adam Tkac |
f12e46 |
+ @LIBS@
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
e99cc3 |
NOSYMLIBS = ${LWRESLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
|
Adam Tkac |
e99cc3 |
${ISCCFGLIBS} ${ISCCCLIBS} ${ISCNOSYMLIBS} \
|
|
Adam Tkac |
e99cc3 |
- ${DLZDRIVER_LIBS} ${DBDRIVER_LIBS} @LIBS@
|
|
Adam Tkac |
e99cc3 |
+ @LIBS@
|
|
Adam Tkac |
e99cc3 |
|
|
Adam Tkac |
f12e46 |
SUBDIRS = unix
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
e99cc3 |
@@ -86,8 +86,7 @@ OBJS = builtin.@O@ client.@O@ config.@O
|
|
Adam Tkac |
f12e46 |
tkeyconf.@O@ tsigconf.@O@ update.@O@ xfrout.@O@ \
|
|
Adam Tkac |
f12e46 |
zoneconf.@O@ \
|
|
Adam Tkac |
f12e46 |
lwaddr.@O@ lwresd.@O@ lwdclient.@O@ lwderror.@O@ lwdgabn.@O@ \
|
|
Adam Tkac |
f12e46 |
- lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@ \
|
|
Adam Tkac |
f12e46 |
- ${DLZDRIVER_OBJS} ${DBDRIVER_OBJS}
|
|
Adam Tkac |
f12e46 |
+ lwdgnba.@O@ lwdgrbn.@O@ lwdnoop.@O@ lwsearch.@O@
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
f12e46 |
UOBJS = unix/os.@O@
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
e99cc3 |
@@ -100,8 +99,7 @@ SRCS = builtin.c client.c config.c cont
|
|
Adam Tkac |
f12e46 |
tkeyconf.c tsigconf.c update.c xfrout.c \
|
|
Adam Tkac |
f12e46 |
zoneconf.c \
|
|
Adam Tkac |
f12e46 |
lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
|
|
Adam Tkac |
f12e46 |
- lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
|
|
Adam Tkac |
f12e46 |
- ${DLZDRIVER_SRCS} ${DBDRIVER_SRCS}
|
|
Adam Tkac |
f12e46 |
+ lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
f12e46 |
MANPAGES = named.8 lwresd.8 named.conf.5
|
|
Adam Tkac |
f12e46 |
|
|
Adam Tkac |
e99cc3 |
@@ -166,5 +164,3 @@ install:: named@EXEEXT@ lwresd@EXEEXT@ i
|
|
Adam Tkac |
f12e46 |
${INSTALL_DATA} ${srcdir}/named.8 ${DESTDIR}${mandir}/man8
|
|
Adam Tkac |
f12e46 |
${INSTALL_DATA} ${srcdir}/lwresd.8 ${DESTDIR}${mandir}/man8
|
|
Adam Tkac |
f12e46 |
${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5
|
|
Adam Tkac |
f12e46 |
-
|
|
Adam Tkac |
f12e46 |
-@DLZ_DRIVER_RULES@
|
|
Adam Tkac |
2fc1c6 |
diff -up bind-9.7.0b1/bin/named-sdb/main.c.sdb bind-9.7.0b1/bin/named-sdb/main.c
|
|
Adam Tkac |
2fc1c6 |
--- bind-9.7.0b1/bin/named-sdb/main.c.sdb 2009-10-20 11:01:20.991546005 +0200
|
|
Adam Tkac |
2fc1c6 |
+++ bind-9.7.0b1/bin/named-sdb/main.c 2009-10-20 11:01:21.011555584 +0200
|
|
Adam Tkac |
e99cc3 |
@@ -75,6 +75,9 @@
|
|
Adam Tkac |
15c5cd |
* Include header files for database drivers here.
|
|
Adam Tkac |
15c5cd |
*/
|
|
Adam Tkac |
15c5cd |
/* #include "xxdb.h" */
|
|
Adam Tkac |
15c5cd |
+#include "ldapdb.h"
|
|
Adam Tkac |
15c5cd |
+#include "pgsqldb.h"
|
|
Adam Tkac |
15c5cd |
+#include "dirdb.h"
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
15c5cd |
/*
|
|
Adam Tkac |
15c5cd |
* Include DLZ drivers if appropriate.
|
|
Adam Tkac |
2fc1c6 |
@@ -766,6 +769,10 @@ setup(void) {
|
|
Adam Tkac |
15c5cd |
ns_main_earlyfatal("isc_app_start() failed: %s",
|
|
Adam Tkac |
15c5cd |
isc_result_totext(result));
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
15c5cd |
+ ldapdb_clear();
|
|
Adam Tkac |
15c5cd |
+ pgsqldb_clear();
|
|
Adam Tkac |
15c5cd |
+ dirdb_clear();
|
|
Adam Tkac |
15c5cd |
+
|
|
Adam Tkac |
15c5cd |
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
ISC_LOG_NOTICE, "starting BIND %s%s", ns_g_version,
|
|
Adam Tkac |
15c5cd |
saved_command_line);
|
|
Adam Tkac |
2fc1c6 |
@@ -849,6 +856,57 @@ setup(void) {
|
|
Adam Tkac |
15c5cd |
isc_result_totext(result));
|
|
Adam Tkac |
15c5cd |
#endif
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
15c5cd |
+ result = ldapdb_init();
|
|
Adam Tkac |
15c5cd |
+ if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
15c5cd |
+ {
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB ldap module initialisation failed: %s.",
|
|
Adam Tkac |
15c5cd |
+ isc_result_totext(result)
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB ldap zone database will be unavailable."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ }else
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_NOTICE, "SDB ldap zone database module loaded."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+
|
|
Adam Tkac |
15c5cd |
+ result = pgsqldb_init();
|
|
Adam Tkac |
15c5cd |
+ if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
15c5cd |
+ {
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB pgsql module initialisation failed: %s.",
|
|
Adam Tkac |
15c5cd |
+ isc_result_totext(result)
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB pgsql zone database will be unavailable."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ }else
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_NOTICE, "SDB postgreSQL DB zone database module loaded."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+
|
|
Adam Tkac |
15c5cd |
+ result = dirdb_init();
|
|
Adam Tkac |
15c5cd |
+ if (result != ISC_R_SUCCESS)
|
|
Adam Tkac |
15c5cd |
+ {
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB directory DB module initialisation failed: %s.",
|
|
Adam Tkac |
15c5cd |
+ isc_result_totext(result)
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_ERROR,
|
|
Adam Tkac |
15c5cd |
+ "SDB directory DB zone database will be unavailable."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+ }else
|
|
Adam Tkac |
15c5cd |
+ isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
+ ISC_LOG_NOTICE, "SDB directory DB zone database module loaded."
|
|
Adam Tkac |
15c5cd |
+ );
|
|
Adam Tkac |
15c5cd |
+
|
|
Adam Tkac |
15c5cd |
ns_server_create(ns_g_mctx, &ns_g_server);
|
|
Adam Tkac |
15c5cd |
}
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
2fc1c6 |
@@ -876,6 +934,10 @@ cleanup(void) {
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
15c5cd |
dns_name_destroy();
|
|
Adam Tkac |
15c5cd |
|
|
Adam Tkac |
15c5cd |
+ ldapdb_clear();
|
|
Adam Tkac |
15c5cd |
+ pgsqldb_clear();
|
|
Adam Tkac |
15c5cd |
+ dirdb_clear();
|
|
Adam Tkac |
15c5cd |
+
|
|
Adam Tkac |
15c5cd |
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_MAIN,
|
|
Adam Tkac |
15c5cd |
ISC_LOG_NOTICE, "exiting");
|
|
Adam Tkac |
15c5cd |
ns_log_shutdown();
|
|
Adam Tkac |
2fc1c6 |
diff -up bind-9.7.0b1/bin/named-sdb/Makefile.in.sdb bind-9.7.0b1/bin/named-sdb/Makefile.in
|
|
Adam Tkac |
2fc1c6 |
--- bind-9.7.0b1/bin/named-sdb/Makefile.in.sdb 2009-10-20 11:01:20.991546005 +0200
|
|
Adam Tkac |
2fc1c6 |
+++ bind-9.7.0b1/bin/named-sdb/Makefile.in 2009-10-20 11:01:21.011555584 +0200
|
|
Adam Tkac |
f12e46 |
@@ -28,10 +28,10 @@ top_srcdir = @top_srcdir@
|
|
Adam Tkac |
300cfc |
#
|
|
Adam Tkac |
300cfc |
# Add database drivers here.
|
|
Adam Tkac |
300cfc |
#
|
|
Adam Tkac |
300cfc |
-DBDRIVER_OBJS =
|
|
Adam Tkac |
300cfc |
-DBDRIVER_SRCS =
|
|
Adam Tkac |
300cfc |
+DBDRIVER_OBJS = ldapdb.@O@ pgsqldb.@O@ dirdb.@O@
|
|
Adam Tkac |
300cfc |
+DBDRIVER_SRCS = ldapdb.c pgsqldb.c dirdb.c
|
|
Adam Tkac |
300cfc |
DBDRIVER_INCLUDES =
|
|
Adam Tkac |
300cfc |
-DBDRIVER_LIBS =
|
|
Adam Tkac |
300cfc |
+DBDRIVER_LIBS = -lldap -llber -lpq
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
DLZ_DRIVER_DIR = ${top_srcdir}/contrib/dlz/drivers
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
e99cc3 |
@@ -77,7 +77,7 @@ NOSYMLIBS = ${LWRESLIBS} ${DNSLIBS} ${BI
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
SUBDIRS = unix
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
-TARGETS = named@EXEEXT@ lwresd@EXEEXT@
|
|
Adam Tkac |
300cfc |
+TARGETS = named-sdb@EXEEXT@
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
OBJS = builtin.@O@ client.@O@ config.@O@ control.@O@ \
|
|
Adam Tkac |
300cfc |
controlconf.@O@ interfacemgr.@O@ \
|
|
Adam Tkac |
e99cc3 |
@@ -132,7 +132,7 @@ config.@O@: config.c bind.keys.h
|
|
Adam Tkac |
f12e46 |
-DNS_SYSCONFDIR=\"${sysconfdir}\" \
|
|
Adam Tkac |
300cfc |
-c ${srcdir}/config.c
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
-named@EXEEXT@: ${OBJS} ${UOBJS} ${DEPLIBS}
|
|
Adam Tkac |
300cfc |
+named-sdb@EXEEXT@: ${OBJS} ${UOBJS} ${DEPLIBS}
|
|
Adam Tkac |
e99cc3 |
export MAKE_SYMTABLE="yes"; \
|
|
Adam Tkac |
e99cc3 |
export BASEOBJS="${OBJS} ${UOBJS}"; \
|
|
Adam Tkac |
e99cc3 |
${FINALBUILDCMD}
|
|
Adam Tkac |
e99cc3 |
@@ -157,14 +157,8 @@ statschannel.@O@: bind9.xsl.h
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
installdirs:
|
|
Adam Tkac |
300cfc |
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
|
|
Adam Tkac |
300cfc |
- $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man5
|
|
Adam Tkac |
300cfc |
- $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
-install:: named@EXEEXT@ lwresd@EXEEXT@ installdirs
|
|
Adam Tkac |
300cfc |
- ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@ ${DESTDIR}${sbindir}
|
|
Adam Tkac |
300cfc |
- (cd ${DESTDIR}${sbindir}; rm -f lwresd@EXEEXT@; @LN@ named@EXEEXT@ lwresd@EXEEXT@)
|
|
Adam Tkac |
300cfc |
- ${INSTALL_DATA} ${srcdir}/named.8 ${DESTDIR}${mandir}/man8
|
|
Adam Tkac |
300cfc |
- ${INSTALL_DATA} ${srcdir}/lwresd.8 ${DESTDIR}${mandir}/man8
|
|
Adam Tkac |
300cfc |
- ${INSTALL_DATA} ${srcdir}/named.conf.5 ${DESTDIR}${mandir}/man5
|
|
Adam Tkac |
300cfc |
+install:: named-sdb@EXEEXT@ installdirs
|
|
Adam Tkac |
300cfc |
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-sdb@EXEEXT@ ${DESTDIR}${sbindir}
|
|
Adam Tkac |
300cfc |
|
|
Adam Tkac |
300cfc |
@DLZ_DRIVER_RULES@
|
|
Adam Tkac |
2fc1c6 |
diff -up bind-9.7.0b1/configure.in.sdb bind-9.7.0b1/configure.in
|
|
Adam Tkac |
2fc1c6 |
--- bind-9.7.0b1/configure.in.sdb 2009-10-16 06:16:17.000000000 +0200
|
|
Adam Tkac |
2fc1c6 |
+++ bind-9.7.0b1/configure.in 2009-10-20 11:01:21.011555584 +0200
|
|
Adam Tkac |
2fc1c6 |
@@ -3206,6 +3206,8 @@ AC_CONFIG_FILES([
|
|
Adam Tkac |
f12e46 |
bin/confgen/unix/Makefile
|
|
Adam Tkac |
f12e46 |
bin/named/Makefile
|
|
Adam Tkac |
f12e46 |
bin/named/unix/Makefile
|
|
Adam Tkac |
f12e46 |
+ bin/named-sdb/Makefile
|
|
Adam Tkac |
f12e46 |
+ bin/named-sdb/unix/Makefile
|
|
Adam Tkac |
f12e46 |
bin/rndc/Makefile
|
|
Adam Tkac |
f12e46 |
bin/dig/Makefile
|
|
Adam Tkac |
f12e46 |
bin/nsupdate/Makefile
|
|
Adam Tkac |
2fc1c6 |
@@ -3227,6 +3229,7 @@ AC_CONFIG_FILES([
|
|
Adam Tkac |
f12e46 |
bin/tests/headerdep_test.sh
|
|
Adam Tkac |
f12e46 |
bin/tools/Makefile
|
|
Adam Tkac |
f12e46 |
bin/dnssec/Makefile
|
|
Adam Tkac |
f12e46 |
+ bin/sdb_tools/Makefile
|
|
Adam Tkac |
2fc1c6 |
bin/pkcs11/Makefile
|
|
Adam Tkac |
f12e46 |
doc/Makefile
|
|
Adam Tkac |
f12e46 |
doc/arm/Makefile
|