summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-23 16:23:31 +0200
committerMichael Adam <obnox@samba.org>2008-07-23 18:02:44 +0200
commitdb36f37b8f324ca2a45b05800d4abfb72c566447 (patch)
tree3c7cedbf2e8bb6a958bb69754024feff4c056aff /source4
parentc71030bd04eee5f50be56ac2460393dfbe2fdd23 (diff)
downloadsamba-db36f37b8f324ca2a45b05800d4abfb72c566447.tar.gz
libnet_become_dc: send msDS_Behavior_Version == 3 (win2k8) in DsAddEntry
instead of version 2 (win2k3). This makes the NET-API-BECOME-DC test work against windows 2003 and 2008. Michael (This used to be commit a7bfa1fb1bc6fb8e412990b7ff4c3ce9bc55099d)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/common/flags.h1
-rw-r--r--source4/libnet/libnet_become_dc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/common/flags.h b/source4/dsdb/common/flags.h
index 36111418e20..e8802fdf9c1 100644
--- a/source4/dsdb/common/flags.h
+++ b/source4/dsdb/common/flags.h
@@ -122,3 +122,4 @@
#define DS_BEHAVIOR_WIN2000 0
#define DS_BEHAVIOR_WIN2003_INTERIM 1
#define DS_BEHAVIOR_WIN2003 2
+#define DS_BEHAVIOR_WIN2008 3
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 8b7fd57780c..1ce067c3219 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -2104,7 +2104,7 @@ static void becomeDC_drsuapi1_add_entry_send(struct libnet_BecomeDC_state *s)
vd[0] = data_blob_talloc(vd, NULL, 4);
if (composite_nomem(vd[0].data, c)) return;
- SIVAL(vd[0].data, 0, DS_BEHAVIOR_WIN2003);
+ SIVAL(vd[0].data, 0, DS_BEHAVIOR_WIN2008);
vs[0].blob = &vd[0];