summaryrefslogtreecommitdiff
path: root/testprogs/win32/prepare_dcpromo/NMakefile
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-05-31 10:02:38 +0200
committerStefan Metzmacher <metze@samba.org>2010-06-22 10:47:39 +0200
commitdf96f18e8ff3400d1bb7e9743498936ad32ee005 (patch)
tree4d42d45e44bb3b38a6f723a93be9441cbc78aa7f /testprogs/win32/prepare_dcpromo/NMakefile
parentefe65cd7b707c3ba5b321016829da431d6905415 (diff)
downloadsamba-df96f18e8ff3400d1bb7e9743498936ad32ee005.tar.gz
samba-df96f18e8ff3400d1bb7e9743498936ad32ee005.tar.bz2
samba-df96f18e8ff3400d1bb7e9743498936ad32ee005.zip
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
Diffstat (limited to 'testprogs/win32/prepare_dcpromo/NMakefile')
-rwxr-xr-xtestprogs/win32/prepare_dcpromo/NMakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/testprogs/win32/prepare_dcpromo/NMakefile b/testprogs/win32/prepare_dcpromo/NMakefile
new file mode 100755
index 0000000000..6f810ee3b4
--- /dev/null
+++ b/testprogs/win32/prepare_dcpromo/NMakefile
@@ -0,0 +1,16 @@
+#
+# use nmake /f NMakefile [<target>]
+#
+INCLUDES=-I
+CFLAGS=$(INCLUDES) -Zi -nologo -Dsnprintf=sprintf_s
+LIBS=advapi32.lib
+
+PREPARE_DCPROMO = prepare_dcpromo.exe
+
+all: $(PREPARE_DCPROMO)
+
+clean:
+ del *~ *.obj *.exe
+
+prepare_dcpromo.exe: prepare_dcpromo.obj
+ $(CC) $(CFLAGS) -o prepare_dcpromo.exe prepare_dcpromo.obj $(LIBS)