summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-05-15 01:48:55 +0200
committerMichael Adam <obnox@samba.org>2009-05-15 11:46:53 +0200
commit6d82b5975598f1742c53ebdaa2fa89f7cf148b85 (patch)
tree248e5243954145322fb8de489e7c956d5a439479 /source3/Makefile.in
parent4dce2dfb5b547d90b13597672abc2cae1a062b53 (diff)
downloadsamba-6d82b5975598f1742c53ebdaa2fa89f7cf148b85.tar.gz
samba-6d82b5975598f1742c53ebdaa2fa89f7cf148b85.tar.bz2
samba-6d82b5975598f1742c53ebdaa2fa89f7cf148b85.zip
s3:first cut at dbwrap_tool - a tdb tool that is CTDB-aware.
This tool (in contrast to tdbtool) reads Samba's configuration and if clustering = yes, it talks to CTDB instead of accessing the TDB data bases directly. This is done by simply using the dbwrap mechanim, just like the Samba daemons. This first version can read and write int32 and uint32 values and delete records from a (c)tdb database. More operations will follow. This tool can already be useful in CTDB environments, e.g. when "net idmap restore" fails to set the USER and GROUP HWM keys, because the methods are deliberately not implemented in idmap_tdb2.c. You can manually set the high water marks with "dbwrap_tool store idmap_tdb2.tdb 'USER HWM' int32 12345" and "dbwrap_tool store idmap_tdb2.tdb 'GROUP HWM' int32 67890" Michael
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 1e6f681da1..4447da98d3 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -1217,6 +1217,10 @@ RPC_OPEN_TCP_OBJ = torture/rpc_open_tcp.o \
../librpc/rpc/binding.o \
$(LIBMSRPC_GEN_OBJ)
+DBWRAP_STORE_INT32_OBJ = utils/dbwrap_tool.o \
+ $(PARAM_OBJ) \
+ $(LIB_NONSMBD_OBJ) \
+ $(LIBSAMBA_OBJ)
######################################################################
# now the rules...
@@ -2866,6 +2870,13 @@ bin/test_lp_load@EXEEXT@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LI
$(LDAP_LIBS) \
$(POPT_LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
+bin/dbwrap_tool@EXEEXT@: $(DBWRAP_STORE_INT32_OBJ) @LIBTALLOC_TARGET@ @LIBTDB_TARGET@
+ @echo "Linking $@"
+ @$(CC) -o $@ $(DBWRAP_STORE_INT32_OBJ)\
+ $(LDFLAGS) $(DYNEEXP) $(LIBS) \
+ $(LDAP_LIBS) \
+ $(LIBTALLOC_LIBS) $(LIBTDB_LIBS)
+
install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \
installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \
@INSTALL_PAM_MODULES@ installlibs installmo