From df96f18e8ff3400d1bb7e9743498936ad32ee005 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 31 May 2010 10:02:38 +0200 Subject: testprogs/win32: add prepare_dcpromo tool This tool can set the DOMAIN-SID and nextRid counter in the local SAM on windows servers (tested with w2k8r2) dcpromo will use this values for the ad domain it creates. This might be useful for upgrades from a Samba3 domain. metze --- testprogs/win32/prepare_dcpromo/GNUmakefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 testprogs/win32/prepare_dcpromo/GNUmakefile (limited to 'testprogs/win32/prepare_dcpromo/GNUmakefile') diff --git a/testprogs/win32/prepare_dcpromo/GNUmakefile b/testprogs/win32/prepare_dcpromo/GNUmakefile new file mode 100755 index 00000000000..1c9561398ea --- /dev/null +++ b/testprogs/win32/prepare_dcpromo/GNUmakefile @@ -0,0 +1,21 @@ +INCLUDES=-I. +CFLAGS=$(INCLUDES) +LIBS=-ladvapi32 + +PREPARE_DCPROMO = prepare_dcpromo.exe + +all: $(PREPARE_DCPROMO) + +MINGW_CC = i586-mingw32msvc-cc +CC = $(MINGW_CC) + +.SUFFIXES: .c .obj .exe + +.c.obj: + $(CC) $(CFLAGS) -c $< -o $@ + +.obj.exe: + $(CC) $(CFLAGS) -o $@ $< $(LIBS) + +clean: + rm -f *~ *.obj *.exe -- cgit